Lines Matching defs:bits

95 ssl_security_secop_cipher(const SSL_CTX *ctx, const SSL *ssl, int bits,
108 if (bits < minimum_bits)
176 ssl_security_secop_tmp_dh(const SSL_CTX *ctx, const SSL *ssl, int bits)
184 /* Disallow DHE keys weaker than 1024 bits even at security level 0. */
185 if (security_level <= 0 && bits < 80)
188 return bits >= minimum_bits;
192 ssl_security_secop_default(const SSL_CTX *ctx, const SSL *ssl, int bits)
199 return bits >= minimum_bits;
203 ssl_security_default_cb(const SSL *ssl, const SSL_CTX *ctx, int secop, int bits,
210 return ssl_security_secop_cipher(ctx, ssl, bits, cipher);
218 return ssl_security_secop_tmp_dh(ctx, ssl, bits);
220 return ssl_security_secop_default(ctx, ssl, bits);
225 ssl_ctx_security(const SSL_CTX *ctx, int secop, int bits, int nid, void *other)
227 return ctx->cert->security_cb(NULL, ctx, secop, bits, nid,
232 ssl_security(const SSL *ssl, int secop, int bits, int nid, void *other)
234 return ssl->cert->security_cb(ssl, NULL, secop, bits, nid, other,
241 int bits;
243 bits = EVP_PKEY_security_bits(pkey);
245 return ssl_security(ssl, SSL_SECOP_SIGALG_CHECK, bits, 0, NULL);
287 int bits;
289 bits = DH_security_bits(dh);
291 return ssl_ctx_security(ctx, SSL_SECOP_TMP_DH, bits, 0, dh);
297 int bits;
299 bits = DH_security_bits(dh);
301 return ssl_security(ssl, SSL_SECOP_TMP_DH, bits, 0, dh);
337 * Returning -1 security bits makes the default security callback fail
368 * The default security callback fails on -1 security bits. It ignores
444 int bits, nid;
449 if (!tls1_ec_group_id2bits(group_id, &bits))
461 return ssl_security(ssl, secop, bits, nid, group);