Lines Matching refs:NULL
207 {NULL}
212 BIO *acbio = NULL, *cbio = NULL, *derbio = NULL, *out = NULL; in ocsp_main()
213 EVP_MD *cert_id_md = NULL, *rsign_md = NULL; in ocsp_main()
214 STACK_OF(OPENSSL_STRING) *rsign_sigopts = NULL; in ocsp_main()
216 CA_DB *rdb = NULL; in ocsp_main()
217 EVP_PKEY *key = NULL, *rkey = NULL; in ocsp_main()
218 OCSP_BASICRESP *bs = NULL; in ocsp_main()
219 OCSP_REQUEST *req = NULL; in ocsp_main()
220 OCSP_RESPONSE *resp = NULL; in ocsp_main()
221 STACK_OF(CONF_VALUE) *headers = NULL; in ocsp_main()
222 STACK_OF(OCSP_CERTID) *ids = NULL; in ocsp_main()
223 STACK_OF(OPENSSL_STRING) *reqnames = NULL; in ocsp_main()
224 STACK_OF(X509) *sign_other = NULL, *verify_other = NULL, *rother = NULL; in ocsp_main()
225 STACK_OF(X509) *issuers = NULL; in ocsp_main()
226 X509 *issuer = NULL, *cert = NULL; in ocsp_main()
227 STACK_OF(X509) *rca_certs = NULL; in ocsp_main()
228 EVP_MD *resp_certid_md = NULL; in ocsp_main()
229 X509 *signer = NULL, *rsigner = NULL; in ocsp_main()
230 X509_STORE *store = NULL; in ocsp_main()
231 X509_VERIFY_PARAM *vpm = NULL; in ocsp_main()
232 const char *CAfile = NULL, *CApath = NULL, *CAstore = NULL; in ocsp_main()
233 char *header, *value, *respdigname = NULL; in ocsp_main()
234 char *host = NULL, *port = NULL, *path = "/", *outfile = NULL; in ocsp_main()
236 char *opt_proxy = NULL; in ocsp_main()
237 char *opt_no_proxy = NULL; in ocsp_main()
239 char *rca_filename = NULL, *reqin = NULL, *respin = NULL; in ocsp_main()
240 char *reqout = NULL, *respout = NULL, *ridx_filename = NULL; in ocsp_main()
241 char *rsignfile = NULL, *rkeyfile = NULL; in ocsp_main()
242 char *passinarg = NULL, *passin = NULL; in ocsp_main()
243 char *sign_certfile = NULL, *verify_certfile = NULL, *rcertfile = NULL; in ocsp_main()
244 char *signfile = NULL, *keyfile = NULL; in ocsp_main()
245 char *thost = NULL, *tport = NULL, *tpath = NULL; in ocsp_main()
255 if ((reqnames = sk_OPENSSL_STRING_new_null()) == NULL in ocsp_main()
256 || (ids = sk_OCSP_CERTID_new_null()) == NULL in ocsp_main()
257 || (vpm = X509_VERIFY_PARAM_new()) == NULL) in ocsp_main()
285 thost = tport = tpath = NULL; in ocsp_main()
286 if (!OSSL_HTTP_parse_url(opt_arg(), &use_ssl, NULL /* userinfo */, in ocsp_main()
287 &host, &port, NULL /* port_num */, in ocsp_main()
288 &path, NULL /* qry */, NULL /* frag */)) { in ocsp_main()
426 if (issuer == NULL) in ocsp_main()
428 if (issuers == NULL) { in ocsp_main()
429 if ((issuers = sk_X509_new_null()) == NULL) in ocsp_main()
439 if (cert == NULL) in ocsp_main()
441 if (cert_id_md == NULL) in ocsp_main()
451 if (cert_id_md == NULL) in ocsp_main()
492 if (rsign_sigopts == NULL) in ocsp_main()
494 if (rsign_sigopts == NULL in ocsp_main()
501 if (value == NULL) { in ocsp_main()
537 if (!opt_check_rest_arg(NULL)) in ocsp_main()
546 if (respdigname != NULL) { in ocsp_main()
552 if (req == NULL && reqin == NULL in ocsp_main()
553 && respin == NULL && !(port != NULL && ridx_filename != NULL)) in ocsp_main()
556 if (req == NULL && (add_nonce != 2)) in ocsp_main()
559 if (req == NULL && reqin != NULL) { in ocsp_main()
561 if (derbio == NULL) in ocsp_main()
563 req = d2i_OCSP_REQUEST_bio(derbio, NULL); in ocsp_main()
565 if (req == NULL) { in ocsp_main()
571 if (req == NULL && port != NULL) { in ocsp_main()
574 if (acbio == NULL) in ocsp_main()
582 if (rsignfile != NULL) { in ocsp_main()
583 if (rkeyfile == NULL) in ocsp_main()
586 if (rsigner == NULL) { in ocsp_main()
590 if (!load_certs(rca_filename, 0, &rca_certs, NULL, "CA certificates")) in ocsp_main()
592 if (rcertfile != NULL) { in ocsp_main()
593 if (!load_certs(rcertfile, 0, &rother, NULL, in ocsp_main()
597 if (!app_passwd(passinarg, NULL, &passin, NULL)) { in ocsp_main()
601 rkey = load_key(rkeyfile, FORMAT_UNDEF, 0, passin, NULL, in ocsp_main()
603 if (rkey == NULL) in ocsp_main()
607 if (ridx_filename != NULL in ocsp_main()
608 && (rkey == NULL || rsigner == NULL || rca_certs == NULL)) { in ocsp_main()
614 if (ridx_filename != NULL) { in ocsp_main()
615 rdb = load_index(ridx_filename, NULL); in ocsp_main()
616 if (rdb == NULL || index_index(rdb) <= 0) { in ocsp_main()
626 if (n_responders != 0 && acbio != NULL) in ocsp_main()
628 if (acbio != NULL && req_timeout > 0) in ocsp_main()
632 if (acbio != NULL) in ocsp_main()
638 if (acbio != NULL) { in ocsp_main()
641 CA_DB *newrdb = load_index(ridx_filename, NULL); in ocsp_main()
643 if (newrdb != NULL && index_index(newrdb) > 0) { in ocsp_main()
655 req = NULL; in ocsp_main()
660 if (req == NULL) { in ocsp_main()
664 NULL); in ocsp_main()
671 if (req == NULL in ocsp_main()
672 && (signfile != NULL || reqout != NULL in ocsp_main()
673 || host != NULL || add_nonce || ridx_filename != NULL)) { in ocsp_main()
678 if (req != NULL && add_nonce) { in ocsp_main()
679 if (!OCSP_request_add1_nonce(req, NULL, -1)) in ocsp_main()
683 if (signfile != NULL) { in ocsp_main()
684 if (keyfile == NULL) in ocsp_main()
687 if (signer == NULL) { in ocsp_main()
691 if (sign_certfile != NULL) { in ocsp_main()
692 if (!load_certs(sign_certfile, 0, &sign_other, NULL, in ocsp_main()
696 key = load_key(keyfile, FORMAT_UNDEF, 0, NULL, NULL, in ocsp_main()
698 if (key == NULL) in ocsp_main()
701 if (!OCSP_request_sign(req, signer, key, NULL, in ocsp_main()
709 if (out == NULL) in ocsp_main()
712 if (req_text && req != NULL) in ocsp_main()
715 if (reqout != NULL) { in ocsp_main()
717 if (derbio == NULL) in ocsp_main()
723 if (rdb != NULL) { in ocsp_main()
727 if (resp == NULL) in ocsp_main()
729 if (cbio != NULL) in ocsp_main()
731 } else if (host != NULL) { in ocsp_main()
735 if (resp == NULL) in ocsp_main()
742 } else if (respin != NULL) { in ocsp_main()
744 if (derbio == NULL) in ocsp_main()
746 resp = d2i_OCSP_RESPONSE_bio(derbio, NULL); in ocsp_main()
748 if (resp == NULL) { in ocsp_main()
759 if (respout != NULL) { in ocsp_main()
761 if (derbio == NULL) in ocsp_main()
779 if (cbio != NULL) { in ocsp_main()
786 cbio = NULL; in ocsp_main()
788 req = NULL; in ocsp_main()
790 resp = NULL; in ocsp_main()
793 if (ridx_filename != NULL) { in ocsp_main()
798 if (store == NULL) { in ocsp_main()
806 if (verify_certfile != NULL) { in ocsp_main()
807 if (!load_certs(verify_certfile, 0, &verify_other, NULL, in ocsp_main()
813 if (bs == NULL) { in ocsp_main()
821 if (req != NULL && ((i = OCSP_check_nonce(req, bs)) <= 0)) { in ocsp_main()
889 if (rdb != NULL && stat(rdb->dbfname, &sb) != -1) { in index_changed()
909 if (issuer == NULL) { in add_ocsp_cert()
913 if (*req == NULL) in add_ocsp_cert()
915 if (*req == NULL) in add_ocsp_cert()
918 if (id == NULL || !sk_OCSP_CERTID_push(ids, id)) in add_ocsp_cert()
938 if (issuer == NULL) { in add_ocsp_serial()
942 if (*req == NULL) in add_ocsp_serial()
944 if (*req == NULL) in add_ocsp_serial()
948 sno = s2i_ASN1_INTEGER(NULL, serial); in add_ocsp_serial()
949 if (sno == NULL) { in add_ocsp_serial()
955 if (id == NULL || !sk_OCSP_CERTID_push(ids, id)) in add_ocsp_serial()
977 if (req == NULL || !sk_OPENSSL_STRING_num(names)) in print_ocsp_summary()
980 if (bs == NULL || !sk_OCSP_CERTID_num(ids)) in print_ocsp_summary()
1036 ASN1_TIME *thisupd = NULL, *nextupd = NULL; in make_ocsp_response()
1038 OCSP_BASICRESP *bs = NULL; in make_ocsp_response()
1040 EVP_MD_CTX *mctx = NULL; in make_ocsp_response()
1041 EVP_PKEY_CTX *pkctx = NULL; in make_ocsp_response()
1047 OCSP_response_create(OCSP_RESPONSE_STATUS_MALFORMEDREQUEST, NULL); in make_ocsp_response()
1052 thisupd = X509_gmtime_adj(NULL, 0); in make_ocsp_response()
1054 nextupd = X509_time_adj_ex(NULL, ndays, nmin * 60, NULL); in make_ocsp_response()
1065 OCSP_CERTID *cid_resp_md = NULL; in make_ocsp_response()
1070 OCSP_id_get0_info(NULL, &cert_id_md_oid, NULL, NULL, cid); in make_ocsp_response()
1073 if (cert_id_md == NULL) { in make_ocsp_response()
1075 NULL); in make_ocsp_response()
1080 OCSP_CERTID *ca_id = OCSP_cert_to_id(cert_id_md, NULL, ca_cert); in make_ocsp_response()
1084 if (resp_md != NULL) in make_ocsp_response()
1085 cid_resp_md = OCSP_cert_to_id(resp_md, NULL, ca_cert); in make_ocsp_response()
1089 OCSP_id_get0_info(NULL, NULL, NULL, &serial, cid); in make_ocsp_response()
1093 cid = (cid_resp_md != NULL) ? cid_resp_md : cid; in make_ocsp_response()
1098 0, NULL, thisupd, nextupd); in make_ocsp_response()
1101 if (inf == NULL) { in make_ocsp_response()
1104 0, NULL, thisupd, nextupd); in make_ocsp_response()
1108 0, NULL, thisupd, nextupd); in make_ocsp_response()
1110 ASN1_OBJECT *inst = NULL; in make_ocsp_response()
1111 ASN1_TIME *revtm = NULL; in make_ocsp_response()
1112 ASN1_GENERALIZEDTIME *invtm = NULL; in make_ocsp_response()
1120 if (single == NULL) { in make_ocsp_response()
1122 NULL); in make_ocsp_response()
1125 if (invtm != NULL) in make_ocsp_response()
1128 else if (inst != NULL) in make_ocsp_response()
1142 if (mctx == NULL || !EVP_DigestSignInit(mctx, &pkctx, rmd, NULL, rkey)) { in make_ocsp_response()
1143 *resp = OCSP_response_create(OCSP_RESPONSE_STATUS_INTERNALERROR, NULL); in make_ocsp_response()
1153 NULL); in make_ocsp_response()
1179 BIGNUM *bn = NULL; in lookup_serial()
1182 row[i] = NULL; in lookup_serial()
1183 bn = ASN1_INTEGER_to_BN(ser, NULL); in lookup_serial()
1204 (ASN1_VALUE **)preq, NULL, pcbio, acbio, in do_responder()
1205 NULL /* found_keep_alive */, in do_responder()
1210 *preq = NULL; in do_responder()
1237 SSL_CTX *ctx = NULL; in process_responder()
1238 OCSP_RESPONSE *resp = NULL; in process_responder()
1242 if (ctx == NULL) { in process_responder()
1255 if (resp == NULL) in process_responder()