Lines Matching refs:NULL

29     EVP_PKEY *pubkey = NULL;  in verify_signature()
33 if (!ossl_assert(cmp_ctx != NULL && msg != NULL && cert != NULL)) in verify_signature()
37 if (bio == NULL) in verify_signature()
47 if (pubkey == NULL) { in verify_signature()
57 &prot_part, NULL, pubkey, cmp_ctx->libctx, in verify_signature()
80 ASN1_BIT_STRING *protection = NULL; in verify_PBMAC()
84 if ((protection = ossl_cmp_calc_protection(ctx, msg)) == NULL) in verify_PBMAC()
87 valid = msg->protection != NULL && msg->protection->length >= 0 in verify_PBMAC()
110 X509_STORE_CTX *csc = NULL; in OSSL_CMP_validate_cert_path()
113 if (ctx == NULL || cert == NULL) { in OSSL_CMP_validate_cert_path()
118 if (trusted_store == NULL) { in OSSL_CMP_validate_cert_path()
123 if ((csc = X509_STORE_CTX_new_ex(ctx->libctx, ctx->propq)) == NULL in OSSL_CMP_validate_cert_path()
148 if (ts == NULL || (verify_cb = X509_STORE_get_verify_cb(ts)) == NULL) in verify_cb_cert()
150 if ((csc = X509_STORE_CTX_new()) != NULL in verify_cb_cert()
151 && X509_STORE_CTX_init(csc, ts, cert, NULL)) { in verify_cb_cert()
167 if (expect_name == NULL) in check_name()
171 if (actual_name == NULL) { in check_name()
175 str = X509_NAME_oneline(actual_name, NULL, 0); in check_name()
177 if (log_success && str != NULL) in check_name()
184 if (str != NULL) in check_name()
187 if ((str = X509_NAME_oneline(expect_name, NULL, 0)) != NULL) in check_name()
200 if (skid == NULL) in check_kid()
204 if (ckid == NULL) { in check_kid()
208 str = i2s_ASN1_OCTET_STRING(NULL, ckid); in check_kid()
210 if (str != NULL) in check_kid()
216 if (str != NULL) in check_kid()
219 if ((str = i2s_ASN1_OCTET_STRING(NULL, skid)) != NULL) in check_kid()
253 X509_VERIFY_PARAM *vpm = ts != NULL ? X509_STORE_get0_param(ts) : NULL; in cert_acceptable()
258 if ((str = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0)) != NULL) in cert_acceptable()
262 str = X509_NAME_oneline(X509_get_issuer_name(cert), NULL, 0); in cert_acceptable()
263 if (str != NULL) in cert_acceptable()
282 if (ctx->log_cb != NULL /* logging not temporarily disabled */ in cert_acceptable()
335 if ((store = X509_STORE_new()) == NULL in check_cert_path_3gpp()
372 cert, NULL, NULL, msg) in check_msg_given_cert()
388 int in_extraCerts = already_checked1 == NULL; in check_msg_with_certs()
400 if (!ossl_assert(cert != NULL)) in check_msg_with_certs()
436 NULL, NULL, msg, mode_3gpp)) in check_msg_all_certs()
439 msg->extraCerts, NULL, msg, mode_3gpp)) in check_msg_all_certs()
442 if (ctx->trusted == NULL) { in check_msg_all_certs()
466 char *sname = NULL; in check_msg_find_cert()
467 char *skid_str = NULL; in check_msg_find_cert()
472 if (sender == NULL || msg->body == NULL) in check_msg_find_cert()
485 ctx->log_cb = NULL; /* temporarily disable logging */ in check_msg_find_cert()
491 if (scrt != NULL) { in check_msg_find_cert()
498 (void)ossl_cmp_ctx_set1_validatedSrvCert(ctx, NULL); in check_msg_find_cert()
516 sname = X509_NAME_oneline(sender->d.directoryName, NULL, 0); in check_msg_find_cert()
517 skid_str = skid == NULL ? NULL : i2s_ASN1_OCTET_STRING(NULL, skid); in check_msg_find_cert()
518 if (ctx->log_cb != NULL) { in check_msg_find_cert()
520 if (sname != NULL) in check_msg_find_cert()
522 if (skid_str != NULL) in check_msg_find_cert()
532 if (sname != NULL) { in check_msg_find_cert()
533 ERR_add_error_txt(NULL, "for msg sender name = "); in check_msg_find_cert()
534 ERR_add_error_txt(NULL, sname); in check_msg_find_cert()
536 if (skid_str != NULL) { in check_msg_find_cert()
538 ERR_add_error_txt(NULL, skid_str); in check_msg_find_cert()
568 if (ctx == NULL || msg == NULL in OSSL_CMP_validate_msg()
569 || msg->header == NULL || msg->body == NULL) { in OSSL_CMP_validate_msg()
574 if (msg->header->protectionAlg == NULL /* unprotected message */ in OSSL_CMP_validate_msg()
575 || msg->protection == NULL || msg->protection->data == NULL) { in OSSL_CMP_validate_msg()
583 if (ctx->secretValue == NULL) { in OSSL_CMP_validate_msg()
602 if (ctx->trusted != NULL) { in OSSL_CMP_validate_msg()
634 if (scrt == NULL) { in OSSL_CMP_validate_msg()
635 if (ctx->trusted == NULL && ctx->secretValue != NULL) { in OSSL_CMP_validate_msg()
663 if (expected != NULL in check_transactionID_or_nonce()
664 && (actual == NULL || ASN1_OCTET_STRING_cmp(expected, actual) != 0)) { in check_transactionID_or_nonce()
668 expected_str = i2s_ASN1_OCTET_STRING(NULL, expected); in check_transactionID_or_nonce()
669 actual_str = actual == NULL ? NULL: i2s_ASN1_OCTET_STRING(NULL, actual); in check_transactionID_or_nonce()
672 expected_str == NULL ? "?" : expected_str, in check_transactionID_or_nonce()
673 actual == NULL ? "(none)" : in check_transactionID_or_nonce()
674 actual_str == NULL ? "?" : actual_str); in check_transactionID_or_nonce()
710 if (!ossl_assert(ctx != NULL && msg != NULL && msg->header != NULL)) in ossl_cmp_msg_check_update()
716 if (expected_sender == NULL && ctx->srvCert != NULL) in ossl_cmp_msg_check_update()
718 if (expected_sender != NULL) { in ossl_cmp_msg_check_update()
734 str = X509_NAME_oneline(actual_sender, NULL, 0); in ossl_cmp_msg_check_update()
736 str != NULL ? str : "<unknown>"); in ossl_cmp_msg_check_update()
756 num_untrusted = ctx->untrusted == NULL ? 0 : sk_X509_num(ctx->untrusted); in ossl_cmp_msg_check_update()
761 num_added = (ctx->untrusted == NULL ? 0 : sk_X509_num(ctx->untrusted)) in ossl_cmp_msg_check_update()
769 if (hdr->protectionAlg != NULL) in ossl_cmp_msg_check_update()
772 || (cb != NULL && (*cb)(ctx, msg, 1, cb_arg) > 0); in ossl_cmp_msg_check_update()
775 res = cb != NULL && (*cb)(ctx, msg, 0, cb_arg) > 0; in ossl_cmp_msg_check_update()
786 if (hdr->protectionAlg != NULL) in ossl_cmp_msg_check_update()
823 if (ctx->first_senderNonce == NULL in ossl_cmp_msg_check_update()
836 if (ctx->transactionID == NULL in ossl_cmp_msg_check_update()
860 if (ctx->trusted != NULL) { in ossl_cmp_msg_check_update()
879 if (!ossl_assert(msg != NULL && msg->body != NULL)) in ossl_cmp_verify_popo()