]> git.sur5r.net Git - openldap/commitdiff
ITS#5585 GnuTLS key strength is in bytes, we expected bits
authorHoward Chu <hyc@openldap.org>
Mon, 30 Jun 2008 23:32:35 +0000 (23:32 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 30 Jun 2008 23:32:35 +0000 (23:32 +0000)
libraries/libldap/tls.c

index c966628390e93157fda74ddefbd2e3864d2fb8a9..b042aec9f4f9f4dc5d63f060a881b121f1e7a5ff 100644 (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