Home
last modified time | relevance | path

Searched refs:ossl_assert (Results 1 – 25 of 126) sorted by relevance

123456

/netbsd/crypto/external/bsd/openssl/dist/crypto/cmp/
H A Dcmp_hdr.c25 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set_pvno()
34 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_get_pvno()
43 if (!ossl_assert(hdr != NULL) in ossl_cmp_hdr_get_protection_nid()
61 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_get0_senderNonce()
87 if (!ossl_assert(tgt != NULL)) in set1_general_name()
117 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set1_sender()
124 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set1_recipient()
131 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_update_messageTime()
156 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set1_senderKID()
202 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_generalInfo_push1_items()
[all …]
H A Dcmp_msg.c165 if (!ossl_assert(ctx != NULL)) in ossl_cmp_msg_create()
383 if (!ossl_assert(ctx != NULL)) in ossl_cmp_certreq_new()
623 if (!ossl_assert(ctx != NULL)) in ossl_cmp_pkiconf_new()
661 if (!ossl_assert(msg != NULL)) in ossl_cmp_msg_gen_push1_ITAVs()
685 if (!ossl_assert(ctx != NULL)) in gen_new()
778 if (!ossl_assert(certStatus != NULL)) in ossl_cmp_certstatus_set0_certHash()
859 if (!ossl_assert(ctx != NULL)) in ossl_cmp_pollReq_new()
889 if (!ossl_assert(ctx != NULL)) in ossl_cmp_pollRep_new()
925 if (!ossl_assert(rrep != NULL)) in ossl_cmp_revrepcontent_get_pkisi()
947 if (!ossl_assert(rrep != NULL)) in ossl_cmp_revrepcontent_get_CertId()
[all …]
H A Dcmp_status.c33 if (!ossl_assert(si != NULL && si->status != NULL)) in ossl_cmp_pkisi_get_status()
64 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get0_statusString()
74 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get_pkifailureinfo()
151 if (!ossl_assert(si != NULL && si->failInfo != NULL)) in ossl_cmp_pkisi_check_pkifailureinfo()
H A Dcmp_ctx.c243 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set_status()
278 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set0_statusString()
287 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set0_validatedSrvCert()
494 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_newChain()
520 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_extraCertsIn()
616 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_caPubs()
798 if (!ossl_assert(ctx != NULL)) in DEFINE_OSSL_CMP_CTX_set1_up_ref()
854 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_get0_newPubkey()
882 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_recipNonce()
994 if (!ossl_assert(ctx != NULL)) in DEFINE_OSSL_CMP_CTX_set1()
H A Dcmp_server.c169 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_cert_request()
260 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_rr()
303 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_genm()
320 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_error()
340 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_certConf()
399 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_pollReq()
438 if (!ossl_assert(ctx != NULL && req != NULL)) in unprotected_exception()
H A Dcmp_protect.c39 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_calc_protection()
135 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_add_extraCerts()
195 if (!ossl_assert(ctx != NULL)) in set_pbmac_algor()
258 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_protect()
/netbsd/crypto/external/bsd/openssl.old/dist/ssl/
H A Dpacket.c43 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes()
124 if (!ossl_assert(buf != NULL && len > 0)) in WPACKET_init_static_len()
137 if (!ossl_assert(buf != NULL)) in WPACKET_init_len()
155 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_flags()
229 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_fill_lengths()
278 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_start_sub_packet_len__()
314 if (!ossl_assert(size <= sizeof(uint64_t)) in WPACKET_put_bytes__()
328 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_max_size()
391 if (!ossl_assert(written != NULL)) in WPACKET_get_total_written()
402 if (!ossl_assert(pkt->subs != NULL && len != NULL)) in WPACKET_get_length()
H A Ds3_cbc.c169 if (!ossl_assert(data_plus_mac_plus_padding_size < 1024 * 1024)) in ssl3_cbc_digest_record()
234 return ossl_assert(0); in ssl3_cbc_digest_record()
237 if (!ossl_assert(md_length_size <= MAX_HASH_BIT_COUNT_BYTES) in ssl3_cbc_digest_record()
238 || !ossl_assert(md_block_size <= MAX_HASH_BLOCK_SIZE) in ssl3_cbc_digest_record()
239 || !ossl_assert(md_size <= EVP_MAX_MD_SIZE)) in ssl3_cbc_digest_record()
337 if (!ossl_assert(mac_secret_length <= sizeof(hmac_pad))) in ssl3_cbc_digest_record()
/netbsd/crypto/external/bsd/openssl/dist/crypto/encode_decode/
H A Dencoder_lib.c144 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_selection()
149 if (!ossl_assert(selection != 0)) { in OSSL_ENCODER_CTX_set_selection()
161 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_type != NULL)) { in OSSL_ENCODER_CTX_set_output_type()
173 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_structure != NULL)) { in OSSL_ENCODER_CTX_set_output_structure()
191 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_instance_new()
287 if (!ossl_assert(ctx != NULL) || !ossl_assert(encoder != NULL)) { in OSSL_ENCODER_CTX_add_encoder()
329 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_construct()
340 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_construct_data()
351 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_cleanup()
581 if (!ossl_assert(data->running_output != NULL)) { in encoder_process()
H A Ddecoder_lib.c167 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_selection()
183 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_input_type()
199 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_input_structure()
221 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_instance_new()
317 if (!ossl_assert(ctx != NULL) || !ossl_assert(decoder != NULL)) { in OSSL_DECODER_CTX_add_decoder()
485 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_add_extra()
567 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_construct()
578 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_construct_data()
589 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_cleanup()
627 if (!(ossl_assert(decoder_inst != NULL) in OSSL_DECODER_export()
[all …]
H A Ddecoder_meth.c380 if (!ossl_assert(id == 0 || name == NULL)) { in inner_ossl_decoder_fetch()
501 if (!ossl_assert(decoder != NULL)) { in OSSL_DECODER_get0_provider()
511 if (!ossl_assert(decoder != NULL)) { in OSSL_DECODER_get0_properties()
522 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_parsed_properties()
532 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_get_number()
666 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_params()
H A Dencoder_meth.c390 if (!ossl_assert(id == 0 || name == NULL)) { in inner_ossl_encoder_fetch()
510 if (!ossl_assert(encoder != NULL)) { in OSSL_ENCODER_get0_provider()
520 if (!ossl_assert(encoder != NULL)) { in OSSL_ENCODER_get0_properties()
531 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_parsed_properties()
541 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_get_number()
668 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_params()
/netbsd/crypto/external/bsd/openssl/dist/crypto/
H A Dpacket.c46 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes()
134 if (!ossl_assert(buf != NULL && len > 0)) in WPACKET_init_static_len()
148 if (!ossl_assert(buf != NULL && len > 0)) in WPACKET_init_der()
162 if (!ossl_assert(buf != NULL)) in WPACKET_init_len()
201 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_flags()
298 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_fill_lengths()
347 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_start_sub_packet_len__()
387 if (!ossl_assert(size <= sizeof(uint64_t)) in WPACKET_put_bytes__()
401 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_max_size()
466 if (!ossl_assert(written != NULL)) in WPACKET_get_total_written()
[all …]
H A Dthreads_none.c36 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_read_lock()
43 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_write_lock()
50 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_unlock()
H A Dpassphrase.c37 if (!ossl_assert(data != NULL && passphrase != NULL)) { in ossl_pw_set_passphrase()
57 if (!ossl_assert(data != NULL && cb != NULL)) { in ossl_pw_set_pem_password_cb()
71 if (!ossl_assert(data != NULL && cb != NULL)) { in ossl_pw_set_ossl_passphrase_cb()
85 if (!ossl_assert(data != NULL && ui_method != NULL)) { in ossl_pw_set_ui_method()
127 if (!ossl_assert(pass != NULL && pass_size != 0 && pass_len != NULL)) { in do_ui_passphrase()
H A Dcore_fetch.c63 if (!ossl_assert(result != NULL)) { in ossl_method_construct_precondition()
90 if (!ossl_assert(result != NULL)) { in ossl_method_construct_postcondition()
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/
H A Dthreads_none.c36 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_read_lock()
43 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_write_lock()
50 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_unlock()
/netbsd/crypto/external/bsd/openssl/dist/ssl/
H A Ds3_cbc.c199 if (!ossl_assert(data_plus_mac_plus_padding_size < 1024 * 1024)) in ssl3_cbc_digest_record()
261 return ossl_assert(0); in ssl3_cbc_digest_record()
264 if (!ossl_assert(md_length_size <= MAX_HASH_BIT_COUNT_BYTES) in ssl3_cbc_digest_record()
265 || !ossl_assert(md_block_size <= MAX_HASH_BLOCK_SIZE) in ssl3_cbc_digest_record()
266 || !ossl_assert(md_size <= EVP_MAX_MD_SIZE)) in ssl3_cbc_digest_record()
364 if (!ossl_assert(mac_secret_length <= sizeof(hmac_pad))) in ssl3_cbc_digest_record()
/netbsd/crypto/external/bsd/openssl.old/dist/include/internal/
H A Dcryptlib.h29 # define ossl_assert(x) ((x) != 0) macro
40 # define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: "#x, \ macro
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509v3/
H A Dv3_asid.c237 if (!ossl_assert(aor != NULL)) in extract_min_max()
403 if (!ossl_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0)) in ASIdentifierChoice_canonize()
493 if (!ossl_assert(ASIdentifierChoice_is_canonical(choice))) in ASIdentifierChoice_canonize()
755 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0) in asid_validate_path_internal()
756 || !ossl_assert(ctx != NULL || ext != NULL) in asid_validate_path_internal()
757 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) { in asid_validate_path_internal()
807 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
857 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
/netbsd/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dv3_asid.c238 if (!ossl_assert(aor != NULL)) in extract_min_max()
401 if (!ossl_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0)) in ASIdentifierChoice_canonize()
487 if (!ossl_assert(ASIdentifierChoice_is_canonical(choice))) in ASIdentifierChoice_canonize()
744 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0) in asid_validate_path_internal()
745 || !ossl_assert(ctx != NULL || ext != NULL) in asid_validate_path_internal()
746 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) { in asid_validate_path_internal()
796 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
846 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
/netbsd/crypto/external/bsd/openssl/dist/crypto/property/
H A Ddefn_cache.c85 if (r == NULL || !ossl_assert(r->defn != NULL)) in ossl_prop_defn_get()
132 if (!ossl_assert(old == NULL)) in ossl_prop_defn_set()
/netbsd/crypto/external/bsd/openssl/dist/crypto/evp/
H A Dctrl_params_translate.c297 if (!ossl_assert(translation != NULL)) { in default_check()
301 if (!ossl_assert(translation->param_key != 0) in default_check()
315 if (!ossl_assert(translation->action_type != GET)) { in default_check()
319 if (!ossl_assert(translation->param_key != NULL) in default_check()
328 if (!ossl_assert(translation != NULL)) { in default_check()
332 if (!ossl_assert(translation->ctrl_num != 0) in default_check()
858 if (!ossl_assert(ctx->action_type == NONE)) in fix_kdf_type()
1196 if (!ossl_assert(ctx->action_type == NONE)) in fix_ecdh_cofactor()
1208 if (!ossl_assert(ctx->action_type != NONE)) in fix_ecdh_cofactor()
2850 if (!ossl_assert(translation != NULL) in evp_pkey_setget_params_to_ctrl()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/store/
H A Dstore_meth.c318 if (!ossl_assert(id == 0 || scheme == NULL)) { in inner_loader_fetch()
447 if (!ossl_assert(loader != NULL)) { in OSSL_STORE_LOADER_get0_provider()
457 if (!ossl_assert(loader != NULL)) { in OSSL_STORE_LOADER_get0_properties()
467 if (!ossl_assert(loader != NULL)) { in ossl_store_loader_get_number()
/netbsd/crypto/external/bsd/openssl.old/dist/ssl/statem/
H A Dstatem_dtls.c128 if (!ossl_assert(s->init_num == in dtls1_do_write()
269 if (!ossl_assert(len == written)) in dtls1_do_write()
603 if (!ossl_assert(msg_hdr->msg_len > 0)) in dtls1_reassemble_fragment()
627 if (!ossl_assert(item != NULL)) in dtls1_reassemble_fragment()
725 if (!ossl_assert(item != NULL)) in dtls1_process_out_of_seq_message()
1040 if (!ossl_assert(s->init_off == 0)) in dtls1_buffer_message()
1051 if (!ossl_assert(s->d1->w_msg_hdr.msg_len + in dtls1_buffer_message()
1057 if (!ossl_assert(s->d1->w_msg_hdr.msg_len + in dtls1_buffer_message()

123456