| /freebsd-13.1/crypto/openssl/ssl/ |
| H A D | packet.c | 43 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(unsigned int)) 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 D | s3_cbc.c | 169 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()
|
| H A D | tls13_enc.c | 192 if (!ossl_assert(mdleni >= 0)) { in tls13_generate_secret() 376 if (!ossl_assert(hashleni >= 0)) { in derive_secret_key_and_iv() 540 if (!ossl_assert(s->psksession != NULL in tls13_change_cipher_state() 679 if(!ossl_assert(cipher != NULL)) in tls13_change_cipher_state() 746 if (!ossl_assert(bio != NULL)) { in tls13_change_cipher_state()
|
| H A D | ssl_ciph.c | 382 if (!ossl_assert(tmpsize >= 0)) in ssl_load_ciphers() 388 if (!ossl_assert(ssl_digest_methods[SSL_MD_MD5_IDX] != NULL)) in ssl_load_ciphers() 390 if (!ossl_assert(ssl_digest_methods[SSL_MD_SHA1_IDX] != NULL)) in ssl_load_ciphers()
|
| /freebsd-13.1/crypto/openssl/crypto/ |
| H A D | threads_none.c | 36 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()
|
| /freebsd-13.1/crypto/openssl/include/internal/ |
| H A D | cryptlib.h | 29 # define ossl_assert(x) ((x) != 0) macro 40 # define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: "#x, \ macro
|
| /freebsd-13.1/crypto/openssl/crypto/x509v3/ |
| H A D | v3_asid.c | 237 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() 742 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0) in asid_validate_path_internal() 743 || !ossl_assert(ctx != NULL || ext != NULL) in asid_validate_path_internal() 744 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) { in asid_validate_path_internal() 794 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal() 844 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
|
| H A D | v3_addr.c | 879 if (!ossl_assert(X509v3_addr_is_canonical(addr))) in X509v3_addr_canonize() 1185 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0) in addr_validate_path_internal() 1186 || !ossl_assert(ctx != NULL || ext != NULL) in addr_validate_path_internal() 1187 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) { in addr_validate_path_internal()
|
| /freebsd-13.1/crypto/openssl/ssl/statem/ |
| H A D | statem_dtls.c | 128 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()
|
| H A D | extensions.c | 441 if (!ossl_assert(meth != NULL)) in tls_validate_all_contexts() 934 if (!ossl_assert(s->ctx != NULL) || !ossl_assert(s->session_ctx != NULL)) { in final_server_name() 1367 if (!ossl_assert(s->hello_retry_request == SSL_HRR_NONE)) { in final_key_share() 1425 if (!ossl_assert(s->hello_retry_request == SSL_HRR_NONE)) { in final_key_share() 1493 if (!ossl_assert(hashsizei >= 0)) { in tls_psk_do_binder()
|
| H A D | extensions_srvr.c | 1661 if (!ossl_assert(SSL_IS_TLS13(s))) { in tls_construct_stoc_supported_versions() 1823 || !ossl_assert(hashval1 == hashval2) in tls_construct_stoc_cookie() 1840 || !ossl_assert(appcookie1 == appcookie2) in tls_construct_stoc_cookie() 1851 if (!ossl_assert(totcookielen <= MAX_COOKIE_SIZE - SHA256_DIGEST_LENGTH)) { in tls_construct_stoc_cookie() 1877 if (!ossl_assert(totcookielen + hmaclen <= MAX_COOKIE_SIZE)) { in tls_construct_stoc_cookie() 1884 || !ossl_assert(hmac == hmac2) in tls_construct_stoc_cookie() 1885 || !ossl_assert(cookie == hmac - totcookielen) in tls_construct_stoc_cookie()
|
| H A D | statem_lib.c | 593 if (!ossl_assert(finish_md_len <= EVP_MAX_MD_SIZE)) { in tls_construct_finished() 819 if (!ossl_assert(md_len <= EVP_MAX_MD_SIZE)) { in tls_process_finished() 1518 if (!ossl_assert(s->ctx != NULL) || !ossl_assert(s->session_ctx != NULL)) in is_tls13_capable() 2058 if (!ossl_assert(real_max == NULL)) in ssl_get_min_max_version()
|
| H A D | extensions_clnt.c | 592 if (!ossl_assert(s->hello_retry_request == SSL_HRR_PENDING)) { in add_key_share() 1231 if (!ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate() 1233 || !ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate() 1667 if (!ossl_assert(s->session->ext.alpn_selected == NULL)) { in tls_parse_stoc_alpn()
|
| H A D | extensions_cust.c | 232 if (!ossl_assert((meth->ext_flags & SSL_EXT_FLAG_SENT) == 0)) { in custom_ext_add()
|
| /freebsd-13.1/crypto/openssl/ssl/record/ |
| H A D | ssl3_record_tls13.c | 74 if (!ossl_assert(s->psksession != NULL in tls13_enc() 87 if (!ossl_assert(s->s3->tmp.new_cipher != NULL)) { in tls13_enc()
|
| H A D | ssl3_record.c | 115 if (!ossl_assert(s->psksession != NULL in early_data_count_ok() 536 if (!ossl_assert(imac_size >= 0 && imac_size <= EVP_MAX_MD_SIZE)) { in ssl3_get_record() 619 if (!ossl_assert(mac_size <= EVP_MAX_MD_SIZE)) { in ssl3_get_record() 994 if (!ossl_assert(n >= 0)) { in tls1_enc() 1033 if (!ossl_assert(n >= 0)) { in tls1_enc() 1338 if (!ossl_assert(t >= 0)) in tls1_mac() 1590 if (!ossl_assert(rec->orig_len >= md_size in ssl3_cbc_copy_mac() 1687 if (!ossl_assert(mac_size <= EVP_MAX_MD_SIZE)) { in dtls1_process_record() 1749 if (!ossl_assert(mac_size <= EVP_MAX_MD_SIZE)) { in dtls1_process_record()
|
| H A D | rec_layer_d1.c | 707 if (!ossl_assert(SSL_is_init_finished(s))) { in dtls1_read_bytes() 790 if (!ossl_assert(len <= SSL3_RT_MAX_PLAIN_LENGTH)) { in dtls1_write_bytes() 817 if (!ossl_assert(SSL3_BUFFER_get_left(wb) == 0)) { in do_dtls1_write()
|
| /freebsd-13.1/crypto/openssl/crypto/ec/ |
| H A D | ec_pmeth.c | 110 if (!ossl_assert(sig_sz > 0)) in pkey_ec_sign() 408 || !ossl_assert(ret = EVP_PKEY_assign_EC_KEY(pkey, ec))) in pkey_ec_paramgen() 426 if (!ossl_assert(EVP_PKEY_assign_EC_KEY(pkey, ec))) { in pkey_ec_keygen()
|
| /freebsd-13.1/crypto/openssl/crypto/bio/ |
| H A D | b_print.c | 813 if (!ossl_assert(*sbuffer != NULL || buffer != NULL)) in doapr_outch() 817 if (!ossl_assert(*currlen <= *maxlen)) in doapr_outch() 831 if (!ossl_assert(*sbuffer != NULL)) in doapr_outch()
|
| H A D | b_sock.c | 47 if (ossl_assert(l == 4)) in BIO_get_host_ip()
|
| /freebsd-13.1/crypto/openssl/crypto/kdf/ |
| H A D | tls1_prf.c | 188 if (!ossl_assert(chunk > 0)) in tls1_prf_P_hash()
|
| /freebsd-13.1/crypto/openssl/crypto/hmac/ |
| H A D | hmac.c | 50 if (!ossl_assert(j <= (int)sizeof(keytmp))) in HMAC_Init_ex()
|
| /freebsd-13.1/crypto/openssl/crypto/asn1/ |
| H A D | bio_asn1.c | 191 if (!ossl_assert(ctx->buflen <= ctx->bufsize)) in asn1_bio_write()
|
| /freebsd-13.1/crypto/openssl/crypto/rand/ |
| H A D | rand_unix.c | 254 if (!ossl_assert(buflen % sizeof(long) == 0)) { in sysctl_random()
|
| /freebsd-13.1/crypto/openssl/crypto/x509/ |
| H A D | x509_vfy.c | 2965 if (!ossl_assert(num == 1 && ctx->num_untrusted == num)) { in build_chain() 3096 if (!ossl_assert(num > i && i > 0 && ss == 0)) { in build_chain() 3166 if (!ossl_assert(ctx->num_untrusted <= num)) { in build_chain() 3211 if (!ossl_assert(num == ctx->num_untrusted)) { in build_chain()
|