119 return(X509v3_add_ext(&(x->
tbsRequest->requestExtensions),ex,loc) != NULL);
156 return X509V3_get_d2i(x->singleRequestExtensions, nid, crit, idx);
162 return X509V3_add1_i2d(&x->singleRequestExtensions, nid, value, crit, flags);
167 return(X509v3_add_ext(&(x->singleRequestExtensions),ex,loc) != NULL);
215 return(X509v3_add_ext(&(x->
tbsResponseData->responseExtensions),ex,loc) != NULL);
263 return(X509v3_add_ext(&(x->singleExtensions),ex,loc) != NULL);
272 unsigned char *
p, *
b = NULL;
276 if ((i=i2d(data,NULL)) <= 0)
goto err;
279 if (i2d(data, &p) <= 0)
goto err;
320 unsigned char *tmpval;
336 memcpy(tmpval, val, len);
354 return ocsp_add1_nonce(&req->
tbsRequest->requestExtensions, val, len);
361 return ocsp_add1_nonce(&resp->
tbsResponseData->responseExtensions, val, len);
387 int req_idx, resp_idx;
392 if((req_idx < 0) && (resp_idx < 0))
395 if((req_idx >= 0) && (resp_idx < 0))
398 if((req_idx < 0) && (resp_idx >= 0))
419 if (req_idx < 0)
return 2;
429 if (!(cid = OCSP_CRLID_new()))
goto err;
432 if (!(cid->
crlUrl = ASN1_IA5STRING_new()))
goto err;
437 if (!(cid->
crlNum = ASN1_INTEGER_new()))
goto err;
442 if (!(cid->
crlTime = ASN1_GENERALIZEDTIME_new()))
goto err;
448 if (cid) OCSP_CRLID_free(cid);
461 while (oids && *oids)
479 if (!(gt = ASN1_GENERALIZEDTIME_new()))
goto err;
483 if (gt) ASN1_GENERALIZEDTIME_free(gt);
498 if (!(sloc = OCSP_SERVICELOC_new()))
goto err;
501 while (urls && *urls)
503 if (!(ad = ACCESS_DESCRIPTION_new()))
goto err;
505 if (!(ad->
location = GENERAL_NAME_new()))
goto err;
506 if (!(ia5 = ASN1_IA5STRING_new()))
goto err;
515 if (sloc) OCSP_SERVICELOC_free(sloc);