Home
last modified time | relevance | path

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

1234

/freebsd/crypto/openssl/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()
164 if (!ossl_assert(hdr != NULL && text != NULL)) in ossl_cmp_hdr_push0_freeText()
[all …]
H A Dcmp_msg.c89 if (!ossl_assert(msg != NULL && msg->body != NULL)) in ossl_cmp_msg_set_bodytype()
98 if (!ossl_assert(msg != NULL && msg->body != NULL)) in OSSL_CMP_MSG_get_bodytype()
110 if (!ossl_assert(pexts != NULL)) /* pointer to var must not be NULL */ in add1_extension()
165 if (!ossl_assert(ctx != NULL)) in ossl_cmp_msg_create()
383 if (!ossl_assert(ctx != NULL)) in ossl_cmp_certreq_new()
456 if (!ossl_assert(ctx != NULL && si != NULL)) in ossl_cmp_certrep_new()
525 if (!ossl_assert(ctx != NULL && (ctx->oldCert != NULL in ossl_cmp_rr_new()
580 if (!ossl_assert(ctx != NULL && si != NULL)) in ossl_cmp_rp_new()
623 if (!ossl_assert(ctx != NULL)) in ossl_cmp_pkiconf_new()
641 if (!ossl_assert(msg != NULL && itav != NULL)) in ossl_cmp_msg_gen_push0_ITAV()
[all …]
H A Dcmp_status.c35 if (!ossl_assert(si != NULL && si->status != NULL)) in ossl_cmp_pkisi_get_status()
67 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get0_statusString()
77 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get_pkifailureinfo()
154 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()
/freebsd/crypto/openssl/crypto/encode_decode/
H A Dencoder_lib.c149 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_selection()
154 if (!ossl_assert(selection != 0)) { in OSSL_ENCODER_CTX_set_selection()
166 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_type != NULL)) { in OSSL_ENCODER_CTX_set_output_type()
178 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_structure != NULL)) { in OSSL_ENCODER_CTX_set_output_structure()
196 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_instance_new()
292 if (!ossl_assert(ctx != NULL) || !ossl_assert(encoder != NULL)) { in OSSL_ENCODER_CTX_add_encoder()
334 if (!ossl_assert(ct in OSSL_ENCODER_CTX_set_construct()
[all...]
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()
/freebsd/crypto/openssl/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()
H A Dder_writer.c20 if (!ossl_assert(tag <= 30)) in int_start_context()
39 if (!ossl_assert(tag <= 30)) in int_end_context()
/freebsd/crypto/openssl/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()
/freebsd/crypto/openssl/crypto/x509/
H A Dv3_asid.c232 if (!ossl_assert(sk_ASIdOrRange_push((*choice)->u.asIdsOrRanges, aor))) in X509v3_asid_add_id_or_range()
247 if (!ossl_assert(aor != NULL)) in extract_min_max()
410 if (!ossl_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0)) in ASIdentifierChoice_canonize()
496 if (!ossl_assert(ASIdentifierChoice_is_canonical(choice))) in ASIdentifierChoice_canonize()
758 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0) in asid_validate_path_internal()
759 || !ossl_assert(ctx != NULL || ext != NULL) in asid_validate_path_internal()
760 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) { in asid_validate_path_internal()
810 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
860 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
/freebsd/crypto/openssl/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()
/freebsd/crypto/openssl/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()
302 || !ossl_assert(translation->param_data_type != 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()
320 || !ossl_assert(translation->param_data_type != 0)) { in default_check()
328 if (!ossl_assert(translation != NULL)) { in default_check()
332 if (!ossl_assert(translation->ctrl_num != 0) in default_check()
333 || !ossl_assert(translation->param_data_type != 0)) { in default_check()
662 if (!ossl_assert(translation->fixup_args != NULL)) { in default_fixup_args()
[all …]
H A Devp_fetch.c132 if (!ossl_assert(name_id > 0 && name_id <= METHOD_ID_NAME_MAX) in evp_method_id()
133 || !ossl_assert(operation_id > 0 in evp_method_id()
286 if (!ossl_assert(operation_id > 0)) { in inner_evp_generic_fetch()
295 if (!ossl_assert(name_id == 0 || name == NULL)) { in inner_evp_generic_fetch()
/freebsd/crypto/openssl/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()
/freebsd/crypto/openssl/include/internal/
H A Dcryptlib.h32 # define ossl_assert(x) ((x) != 0) macro
43 # define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: "#x, \ macro
/freebsd/crypto/openssl/ssl/record/
H A Dssl3_record_tls13.c76 if (!ossl_assert(s->psksession != NULL in tls13_enc()
88 if (!ossl_assert(s->s3.tmp.new_cipher != NULL)) { in tls13_enc()
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c124 if (!ossl_assert(s->init_num == in dtls1_do_write()
265 if (!ossl_assert(len == written)) in dtls1_do_write()
668 if (!ossl_assert(msg_hdr->msg_len > 0)) in dtls1_reassemble_fragment()
692 if (!ossl_assert(item != NULL)) in dtls1_reassemble_fragment()
790 if (!ossl_assert(item != NULL)) in dtls1_process_out_of_seq_message()
1118 if (!ossl_assert(s->init_off == 0)) in dtls1_buffer_message()
1129 if (!ossl_assert(s->d1->w_msg_hdr.msg_len + in dtls1_buffer_message()
1137 if (!ossl_assert(s->d1->w_msg_hdr.msg_len + in dtls1_buffer_message()
/freebsd/crypto/openssl/apps/
H A Dciphers.c231 if (!ossl_assert(c != NULL)) in ciphers_main()
249 if (!ossl_assert(c != NULL)) in ciphers_main()

1234