ITS#5585 GnuTLS key strength is in bytes, we expected bits

This commit is contained in:
Howard Chu 2008-06-30 23:32:35 +00:00
parent 4e21f65ec0
commit 7e4ba700f1

View file

@ -2795,7 +2795,7 @@ ldap_pvt_tls_get_strength( void *s )
gnutls_cipher_algorithm_t c;
c = gnutls_cipher_get( session->session );
return gnutls_cipher_get_key_size( c );
return gnutls_cipher_get_key_size( c ) * 8;
#else
return 0;
#endif