From: Howard Chu Date: Mon, 30 Jun 2008 23:32:35 +0000 (+0000) Subject: ITS#5585 GnuTLS key strength is in bytes, we expected bits X-Git-Tag: LOCKER_IDS~72 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e4ba700f1c0bec5905c59c01791fc8c8cdd45f8;p=openldap ITS#5585 GnuTLS key strength is in bytes, we expected bits --- diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index c966628390..b042aec9f4 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -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