1 /* return the actual cipher being used */
2 char *SSL_CIPHER_get_name(c)
10 /* number of bits for symetric cipher */
11 int SSL_CIPHER_get_bits(c,alg_bits)
20 if (!ssl_cipher_get_evp(c,&enc,NULL))
23 a=EVP_CIPHER_key_length(enc)*8;
25 if (s->session->cipher->algorithms & SSL_EXP)
27 if (c->algorithm2 & SSL2_CF_8_BYTE_ENC)
36 if (alg_bits != NULL) *alg_bits=a;