Lines Matching refs:NULL
242 {NULL}
251 if (ret == NULL) { in load_content_info()
253 return NULL; in load_content_info()
260 ci = PEM_read_bio_CMS(in, &ret, NULL, NULL); in load_content_info()
269 if (ci == NULL) { in load_content_info()
276 return NULL; in load_content_info()
281 CONF *conf = NULL; in cms_main()
282 ASN1_OBJECT *econtent_type = NULL; in cms_main()
283 BIO *in = NULL, *out = NULL, *indata = NULL, *rctin = NULL; in cms_main()
284 CMS_ContentInfo *cms = NULL, *rcms = NULL; in cms_main()
285 CMS_ReceiptRequest *rr = NULL; in cms_main()
286 ENGINE *e = NULL; in cms_main()
287 EVP_PKEY *key = NULL; in cms_main()
288 EVP_CIPHER *cipher = NULL, *wrap_cipher = NULL; in cms_main()
289 EVP_MD *sign_md = NULL; in cms_main()
290 STACK_OF(OPENSSL_STRING) *rr_to = NULL, *rr_from = NULL; in cms_main()
291 STACK_OF(OPENSSL_STRING) *sksigners = NULL, *skkeys = NULL; in cms_main()
292 STACK_OF(X509) *encerts = sk_X509_new_null(), *other = NULL; in cms_main()
293 X509 *cert = NULL, *recip = NULL, *signer = NULL, *originator = NULL; in cms_main()
294 X509_STORE *store = NULL; in cms_main()
296 char *certfile = NULL, *keyfile = NULL, *contfile = NULL; in cms_main()
297 const char *CAfile = NULL, *CApath = NULL, *CAstore = NULL; in cms_main()
298 char *certsoutfile = NULL, *digestname = NULL, *wrapname = NULL; in cms_main()
300 char *digesthex = NULL; in cms_main()
301 unsigned char *digestbin = NULL; in cms_main()
303 char *infile = NULL, *outfile = NULL, *rctfile = NULL; in cms_main()
304 char *passinarg = NULL, *passin = NULL, *signerfile = NULL; in cms_main()
305 char *originatorfile = NULL, *recipfile = NULL, *ciphername = NULL; in cms_main()
306 char *to = NULL, *from = NULL, *subject = NULL, *prog; in cms_main()
307 cms_key_param *key_first = NULL, *key_param = NULL; in cms_main()
314 unsigned char *pwri_pass = NULL, *pwri_tmp = NULL; in cms_main()
315 unsigned char *secret_key = NULL, *secret_keyid = NULL; in cms_main()
321 if (encerts == NULL || vpm == NULL) in cms_main()
505 if (rr_from == NULL in cms_main()
506 && (rr_from = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
511 if (rr_to == NULL in cms_main()
512 && (rr_to = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
524 if (secret_key != NULL) { in cms_main()
530 if (secret_key == NULL) { in cms_main()
537 if (secret_keyid != NULL) { in cms_main()
543 if (secret_keyid == NULL) { in cms_main()
553 if (econtent_type != NULL) { in cms_main()
559 if (econtent_type == NULL) { in cms_main()
587 if (signerfile != NULL) { in cms_main()
588 if (sksigners == NULL in cms_main()
589 && (sksigners = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
592 if (keyfile == NULL) in cms_main()
594 if (skkeys == NULL in cms_main()
595 && (skkeys = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
598 keyfile = NULL; in cms_main()
607 if (keyfile != NULL) { in cms_main()
608 if (signerfile == NULL) { in cms_main()
612 if (sksigners == NULL in cms_main()
613 && (sksigners = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
616 signerfile = NULL; in cms_main()
617 if (skkeys == NULL in cms_main()
618 && (skkeys = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
632 if (cert == NULL) in cms_main()
636 cert = NULL; in cms_main()
650 if (keyfile != NULL || signerfile != NULL) in cms_main()
652 if (skkeys != NULL) in cms_main()
659 if (key_param == NULL || key_param->idx != keyidx) { in cms_main()
662 if ((nparam->param = sk_OPENSSL_STRING_new_null()) == NULL) { in cms_main()
667 nparam->next = NULL; in cms_main()
668 if (key_first == NULL) in cms_main()
691 if (conf == NULL) in cms_main()
708 if (digestname != NULL) { in cms_main()
714 if (wrapname != NULL) { in cms_main()
723 if ((rr_allorfirst != -1 || rr_from != NULL) && rr_to == NULL) { in cms_main()
728 if (!(operation & SMIME_SIGNERS) && (rr_to != NULL || rr_from != NULL)) { in cms_main()
732 if (!(operation & SMIME_SIGNERS) && (skkeys != NULL || sksigners != NULL)) { in cms_main()
752 if (keyfile != NULL && signerfile == NULL) { in cms_main()
757 if (signerfile != NULL) { in cms_main()
758 if (sksigners == NULL in cms_main()
759 && (sksigners = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
762 if (skkeys == NULL && (skkeys = sk_OPENSSL_STRING_new_null()) == NULL) in cms_main()
764 if (keyfile == NULL) in cms_main()
768 if (sksigners == NULL) { in cms_main()
772 signerfile = NULL; in cms_main()
773 keyfile = NULL; in cms_main()
775 if (recipfile == NULL && keyfile == NULL in cms_main()
776 && secret_key == NULL && pwri_pass == NULL) { in cms_main()
782 if (*argv == NULL && secret_key == NULL in cms_main()
783 && pwri_pass == NULL && sk_X509_num(encerts) <= 0) { in cms_main()
792 if (!app_passwd(passinarg, NULL, &passin, NULL)) { in cms_main()
806 if ((operation & SMIME_IP) == 0 && contfile != NULL) in cms_main()
809 if (operation != SMIME_ENCRYPT && *argv != NULL) in cms_main()
820 if ((operation & SMIME_IP) != 0 && contfile == NULL) in cms_main()
832 for (; *argv != NULL; argv++) { in cms_main()
835 if (cert == NULL) in cms_main()
839 cert = NULL; in cms_main()
843 if (certfile != NULL) { in cms_main()
844 if (!load_certs(certfile, 0, &other, NULL, "certificate file")) { in cms_main()
850 if (recipfile != NULL && (operation == SMIME_DECRYPT)) { in cms_main()
852 "recipient certificate file")) == NULL) { in cms_main()
858 if (originatorfile != NULL) { in cms_main()
860 "originator certificate file")) == NULL) { in cms_main()
868 "receipt signer certificate file")) == NULL) { in cms_main()
875 if (keyfile == NULL) in cms_main()
878 if (keyfile == NULL) in cms_main()
881 keyfile = NULL; in cms_main()
884 if (keyfile != NULL) { in cms_main()
886 if (key == NULL) in cms_main()
890 if (digesthex != NULL) { in cms_main()
896 if (infile != NULL in cms_main()
904 if (digestbin == NULL) { in cms_main()
912 if (in == NULL) in cms_main()
918 if (cms == NULL) in cms_main()
920 if (contfile != NULL) { in cms_main()
922 if ((indata = BIO_new_file(contfile, "rb")) == NULL) { in cms_main()
927 if (certsoutfile != NULL) { in cms_main()
940 if (rctfile != NULL) { in cms_main()
943 if ((rctin = BIO_new_file(rctfile, rctmode)) == NULL) { in cms_main()
948 rcms = load_content_info(rctformat, rctin, 0, NULL, "receipt"); in cms_main()
949 if (rcms == NULL) in cms_main()
955 if (out == NULL) in cms_main()
960 CAstore, noCAstore)) == NULL) in cms_main()
978 cms = CMS_encrypt_ex(NULL, in, cipher, flags, libctx, app_get0_propq()); in cms_main()
979 if (cms == NULL) in cms_main()
996 if (ri == NULL) in cms_main()
1000 if (kparam != NULL) { in cms_main()
1007 EVP_CIPHER_get_nid(cipher), NULL); in cms_main()
1012 && wrap_cipher != NULL) { in cms_main()
1015 if (EVP_EncryptInit_ex(wctx, wrap_cipher, NULL, NULL, NULL) != 1) in cms_main()
1020 if (secret_key != NULL) { in cms_main()
1024 NULL, NULL, NULL)) in cms_main()
1027 secret_key = NULL; in cms_main()
1028 secret_keyid = NULL; in cms_main()
1030 if (pwri_pass != NULL) { in cms_main()
1032 if (pwri_tmp == NULL) in cms_main()
1036 pwri_tmp, -1, NULL) == NULL) in cms_main()
1038 pwri_tmp = NULL; in cms_main()
1041 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1049 CMS_ContentInfo *srcms = NULL; in cms_main()
1053 if (sis == NULL) in cms_main()
1057 if (srcms == NULL) in cms_main()
1069 if ((flags & CMS_DETACHED) != 0 && digestbin == NULL) { in cms_main()
1074 cms = CMS_sign_ex(NULL, NULL, other, in, flags, libctx, app_get0_propq()); in cms_main()
1075 if (cms == NULL) in cms_main()
1077 if (econtent_type != NULL) in cms_main()
1080 if (rr_to != NULL in cms_main()
1082 == NULL)) { in cms_main()
1097 if (signer == NULL) { in cms_main()
1102 if (key == NULL) { in cms_main()
1114 if (si == NULL) in cms_main()
1116 if (kparam != NULL) { in cms_main()
1122 if (rr != NULL && !CMS_add1_ReceiptRequest(si, rr)) in cms_main()
1125 signer = NULL; in cms_main()
1127 key = NULL; in cms_main()
1130 if (operation == SMIME_SIGN && digestbin != NULL in cms_main()
1133 if (!CMS_final_digest(cms, digestbin, digestlen, NULL, flags)) in cms_main()
1136 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1141 if (cms == NULL) { in cms_main()
1149 CMS_decrypt(cms, NULL, NULL, NULL, NULL, flags); in cms_main()
1151 if (secret_key != NULL) { in cms_main()
1160 if (key != NULL) { in cms_main()
1167 if (pwri_pass != NULL) { in cms_main()
1174 if (!CMS_decrypt(cms, NULL, NULL, indata, out, flags)) { in cms_main()
1206 if (signerfile != NULL) { in cms_main()
1230 ASN1_PCTX *pctx = NULL; in cms_main()
1233 if (pctx != NULL) { /* Print anyway if malloc failed */ in cms_main()
1314 if (signerfile == NULL) in save_certs()
1317 if (tmp == NULL) in save_certs()
1392 if (rlist != NULL) { in receipt_request_print()
1413 GENERAL_NAMES *gens = NULL; in STACK_OF()
1414 GENERAL_NAME *gen = NULL; in STACK_OF()
1416 if (ret == NULL) in STACK_OF()
1420 gen = a2i_GENERAL_NAME(NULL, NULL, NULL, GEN_EMAIL, str, 0); in STACK_OF()
1421 if (gen == NULL) in STACK_OF()
1424 if (gens == NULL) in STACK_OF()
1428 gen = NULL; in STACK_OF()
1431 gens = NULL; in STACK_OF()
1440 return NULL; in STACK_OF()
1447 STACK_OF(GENERAL_NAMES) *rct_to = NULL, *rct_from = NULL; in make_receipt_request()
1451 if (rct_to == NULL) in make_receipt_request()
1453 if (rr_from != NULL) { in make_receipt_request()
1455 if (rct_from == NULL) in make_receipt_request()
1458 rct_from = NULL; in make_receipt_request()
1460 rr = CMS_ReceiptRequest_create0_ex(NULL, -1, rr_allorfirst, rct_from, in make_receipt_request()
1462 if (rr == NULL) in make_receipt_request()
1468 return NULL; in make_receipt_request()