How to get nonce from OCSP response ?

2006-06-05 Thread Stefan Vatev
What I want is only the nonce, not the whole ASN1 structure. I don't know which is the best way to parse it. First, I get the X509_EXTENSION from the OCSP_RESPONSE bs = OCSP_response_get1_basic(response) resp_idx = OCSP_BASICRESP_get_ext_by_NID(bs, NID_id_pkix_OCSP_Nonce, -1) resp_ext = OCSP_B

Re: How to get nonce from OCSP response ?

2006-06-05 Thread Dr. Stephen Henson
On Mon, Jun 05, 2006, Stefan Vatev wrote: > What I want is only the nonce, not the whole ASN1 structure. > I don't know which is the best way to parse it. > > > First, I get the X509_EXTENSION from the OCSP_RESPONSE > > bs = OCSP_response_get1_basic(response) > > resp_idx = OCSP_BASICRESP_get_