Searched refs:ossl_assert (Results 1 - 25 of 36) sorted by relevance

12

/freebsd-13-stable/crypto/openssl/crypto/
H A Dthreads_none.c36 if (!ossl_assert(*(unsigned int *)lock == 1))
43 if (!ossl_assert(*(unsigned int *)lock == 1))
50 if (!ossl_assert(*(unsigned int *)lock == 1))
/freebsd-13-stable/crypto/openssl/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
/freebsd-13-stable/crypto/openssl/ssl/
H A Dpacket.c43 if (!ossl_assert(pkt->subs != NULL && len != 0))
124 if (!ossl_assert(buf != NULL && len > 0))
137 if (!ossl_assert(buf != NULL))
155 if (!ossl_assert(pkt->subs != NULL))
229 if (!ossl_assert(pkt->subs != NULL))
278 if (!ossl_assert(pkt->subs != NULL))
314 if (!ossl_assert(size <= sizeof(unsigned int))
328 if (!ossl_assert(pkt->subs != NULL))
391 if (!ossl_assert(written != NULL))
402 if (!ossl_assert(pk
[all...]
H A Ds3_cbc.c169 if (!ossl_assert(data_plus_mac_plus_padding_size < 1024 * 1024))
234 return ossl_assert(0);
237 if (!ossl_assert(md_length_size <= MAX_HASH_BIT_COUNT_BYTES)
238 || !ossl_assert(md_block_size <= MAX_HASH_BLOCK_SIZE)
239 || !ossl_assert(md_size <= EVP_MAX_MD_SIZE))
337 if (!ossl_assert(mac_secret_length <= sizeof(hmac_pad)))
H A Dtls13_enc.c192 if (!ossl_assert(mdleni >= 0)) {
376 if (!ossl_assert(hashleni >= 0)) {
540 if (!ossl_assert(s->psksession != NULL
679 if(!ossl_assert(cipher != NULL))
745 if (!ossl_assert(bio != NULL)) {
H A Dssl_ciph.c382 if (!ossl_assert(tmpsize >= 0))
388 if (!ossl_assert(ssl_digest_methods[SSL_MD_MD5_IDX] != NULL))
390 if (!ossl_assert(ssl_digest_methods[SSL_MD_SHA1_IDX] != NULL))
/freebsd-13-stable/crypto/openssl/ssl/record/
H A Dssl3_record_tls13.c74 if (!ossl_assert(s->psksession != NULL
87 if (!ossl_assert(s->s3->tmp.new_cipher != NULL)) {
H A Dssl3_record.c115 if (!ossl_assert(s->psksession != NULL
536 if (!ossl_assert(imac_size >= 0 && imac_size <= EVP_MAX_MD_SIZE)) {
619 if (!ossl_assert(mac_size <= EVP_MAX_MD_SIZE)) {
994 if (!ossl_assert(n >= 0)) {
1033 if (!ossl_assert(n >= 0)) {
1338 if (!ossl_assert(t >= 0))
1590 if (!ossl_assert(rec->orig_len >= md_size
1687 if (!ossl_assert(mac_size <= EVP_MAX_MD_SIZE)) {
1749 if (!ossl_assert(mac_size <= EVP_MAX_MD_SIZE)) {
H A Drec_layer_d1.c707 if (!ossl_assert(SSL_is_init_finished(s))) {
790 if (!ossl_assert(len <= SSL3_RT_MAX_PLAIN_LENGTH)) {
817 if (!ossl_assert(SSL3_BUFFER_get_left(wb) == 0)) {
/freebsd-13-stable/crypto/openssl/crypto/x509v3/
H A Dv3_asid.c237 if (!ossl_assert(aor != NULL))
403 if (!ossl_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0))
493 if (!ossl_assert(ASIdentifierChoice_is_canonical(choice)))
742 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0)
743 || !ossl_assert(ctx != NULL || ext != NULL)
744 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) {
794 if (!ossl_assert(x != NULL)) {
844 if (!ossl_assert(x != NULL)) {
H A Dv3_addr.c879 if (!ossl_assert(X509v3_addr_is_canonical(addr)))
1185 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0)
1186 || !ossl_assert(ctx != NULL || ext != NULL)
1187 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) {
/freebsd-13-stable/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c128 if (!ossl_assert(s->init_num ==
269 if (!ossl_assert(len == written))
603 if (!ossl_assert(msg_hdr->msg_len > 0))
627 if (!ossl_assert(item != NULL))
725 if (!ossl_assert(item != NULL))
1040 if (!ossl_assert(s->init_off == 0))
1051 if (!ossl_assert(s->d1->w_msg_hdr.msg_len +
1057 if (!ossl_assert(s->d1->w_msg_hdr.msg_len +
H A Dextensions.c439 if (!ossl_assert(meth != NULL))
932 if (!ossl_assert(s->ctx != NULL) || !ossl_assert(s->session_ctx != NULL)) {
1356 if (!ossl_assert(s->hello_retry_request == SSL_HRR_NONE)) {
1414 if (!ossl_assert(s->hello_retry_request == SSL_HRR_NONE)) {
1482 if (!ossl_assert(hashsizei >= 0)) {
H A Dextensions_srvr.c1661 if (!ossl_assert(SSL_IS_TLS13(s))) {
1816 || !ossl_assert(hashval1 == hashval2)
1833 || !ossl_assert(appcookie1 == appcookie2)
1844 if (!ossl_assert(totcookielen <= MAX_COOKIE_SIZE - SHA256_DIGEST_LENGTH)) {
1870 if (!ossl_assert(totcookielen + hmaclen <= MAX_COOKIE_SIZE)) {
1877 || !ossl_assert(hmac == hmac2)
1878 || !ossl_assert(cookie == hmac - totcookielen)
H A Dstatem_lib.c593 if (!ossl_assert(finish_md_len <= EVP_MAX_MD_SIZE)) {
819 if (!ossl_assert(md_len <= EVP_MAX_MD_SIZE)) {
1518 if (!ossl_assert(s->ctx != NULL) || !ossl_assert(s->session_ctx != NULL))
2058 if (!ossl_assert(real_max == NULL))
H A Dextensions_clnt.c592 if (!ossl_assert(s->hello_retry_request == SSL_HRR_PENDING)) {
1231 if (!ossl_assert(expected_len == 0
1233 || !ossl_assert(expected_len == 0
1667 if (!ossl_assert(s->session->ext.alpn_selected == NULL)) {
H A Dextensions_cust.c231 if (!ossl_assert((meth->ext_flags & SSL_EXT_FLAG_SENT) == 0)) {
/freebsd-13-stable/crypto/openssl/crypto/ec/
H A Dec_pmeth.c110 if (!ossl_assert(sig_sz > 0))
408 || !ossl_assert(ret = EVP_PKEY_assign_EC_KEY(pkey, ec)))
426 if (!ossl_assert(EVP_PKEY_assign_EC_KEY(pkey, ec))) {
/freebsd-13-stable/crypto/openssl/crypto/bio/
H A Db_print.c813 if (!ossl_assert(*sbuffer != NULL || buffer != NULL))
817 if (!ossl_assert(*currlen <= *maxlen))
831 if (!ossl_assert(*sbuffer != NULL))
H A Db_sock.c47 if (ossl_assert(l == 4))
/freebsd-13-stable/crypto/openssl/crypto/hmac/
H A Dhmac.c50 if (!ossl_assert(j <= (int)sizeof(keytmp)))
/freebsd-13-stable/crypto/openssl/crypto/kdf/
H A Dtls1_prf.c188 if (!ossl_assert(chunk > 0))
/freebsd-13-stable/crypto/openssl/crypto/asn1/
H A Dbio_asn1.c186 if (!ossl_assert(ctx->buflen <= ctx->bufsize))
/freebsd-13-stable/crypto/openssl/crypto/rand/
H A Drand_unix.c251 if (!ossl_assert(buflen % sizeof(long) == 0)) {
/freebsd-13-stable/crypto/openssl/crypto/x509/
H A Dx509_vfy.c2944 if (!ossl_assert(num == 1 && ctx->num_untrusted == num)) {
3085 if (!ossl_assert(num > i && i > 0 && ss == 0)) {
3155 if (!ossl_assert(ctx->num_untrusted <= num)) {
3200 if (!ossl_assert(num == ctx->num_untrusted)) {

Completed in 366 milliseconds

12