Home
last modified time | relevance | path

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

1234

/third_party/openssl/crypto/cmp/
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 …]
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()
389 if (!ossl_assert(ctx != NULL)) in ossl_cmp_certreq_new()
468 if (!ossl_assert(ctx != NULL && si != NULL)) in ossl_cmp_certrep_new()
537 if (!ossl_assert(ctx != NULL && (ctx->oldCert != NULL in ossl_cmp_rr_new()
592 if (!ossl_assert(ctx != NULL && si != NULL)) in ossl_cmp_rp_new()
635 if (!ossl_assert(ctx != NULL)) in ossl_cmp_pkiconf_new()
653 if (!ossl_assert(msg != NULL && itav != NULL)) in ossl_cmp_msg_gen_push0_ITAV()
[all …]
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()
150 if (!ossl_assert(si != NULL && si->failInfo != NULL)) in ossl_cmp_pkisi_check_pkifailureinfo()
Dcmp_server.c167 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_cert_request()
253 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_rr()
296 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_genm()
313 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_error()
333 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_certConf()
388 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_pollReq()
423 if (!ossl_assert(ctx != NULL && req != NULL)) in unprotected_exception()
Dcmp_ctx.c233 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set_status()
268 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set0_statusString()
277 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set0_validatedSrvCert()
484 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_newChain()
510 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_extraCertsIn()
595 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_caPubs()
777 if (!ossl_assert(ctx != NULL)) in DEFINE_OSSL_CMP_CTX_set1_up_ref()
845 if (!ossl_assert(ctx != NULL)) in ossl_cmp_ctx_set1_recipNonce()
957 if (!ossl_assert(ctx != NULL)) in DEFINE_OSSL_CMP_CTX_set1()
Dcmp_protect.c39 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_calc_protection()
134 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_add_extraCerts()
194 if (!ossl_assert(ctx != NULL)) in set_pbmac_algor()
256 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_protect()
Dcmp_client.c40 if (!ossl_assert(ctx != NULL && rep != NULL)) in unprotected_exception()
94 if (!ossl_assert(ctx != NULL && si != NULL)) in save_statusInfo()
153 if (!ossl_assert(ctx->end_time - time(NULL) < INT_MAX)) { in send_receive_check()
416 if (!ossl_assert(ctx != NULL && crep != NULL)) in get1_cert_status()
543 if (!ossl_assert(ctx != NULL)) in cert_response()
/third_party/openssl/crypto/encode_decode/
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()
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 …]
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()
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()
/third_party/openssl/crypto/
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 …]
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()
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()
Dcore_fetch.c63 if (!ossl_assert(result != NULL)) { in ossl_method_construct_precondition()
90 if (!ossl_assert(result != NULL)) { in ossl_method_construct_postcondition()
Dder_writer.c20 if (!ossl_assert(tag <= 30)) in int_start_context()
39 if (!ossl_assert(tag <= 30)) in int_end_context()
/third_party/openssl/ssl/
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()
/third_party/openssl/crypto/x509/
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()
/third_party/openssl/ohos_lite/include/internal/
Dcryptlib.h29 # define ossl_assert(x) ((x) != 0) macro
40 # define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: "#x, \ macro
/third_party/openssl/crypto/evp/
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 …]
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()
/third_party/openssl/crypto/store/
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()
/third_party/openssl/ssl/statem/
Dstatem_dtls.c128 if (!ossl_assert(s->init_num == in dtls1_do_write()
269 if (!ossl_assert(len == written)) in dtls1_do_write()
672 if (!ossl_assert(msg_hdr->msg_len > 0)) in dtls1_reassemble_fragment()
696 if (!ossl_assert(item != NULL)) in dtls1_reassemble_fragment()
794 if (!ossl_assert(item != NULL)) in dtls1_process_out_of_seq_message()
1122 if (!ossl_assert(s->init_off == 0)) in dtls1_buffer_message()
1133 if (!ossl_assert(s->d1->w_msg_hdr.msg_len + in dtls1_buffer_message()
1141 if (!ossl_assert(s->d1->w_msg_hdr.msg_len + in dtls1_buffer_message()
/third_party/openssl/include/internal/
Dcryptlib.h32 # define ossl_assert(x) ((x) != 0) macro
43 # define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: "#x, \ macro
/third_party/openssl/ssl/record/
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()

1234