Skip to content

Commit 827f64a

Browse files
committed
fill in alg_bits
1 parent 5a8411a commit 827f64a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ssl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20799,9 +20799,11 @@ int wolfSSL_CIPHER_get_bits(const WOLFSSL_CIPHER *c, int *alg_bits)
2079920799
WOLFSSL_ENTER("wolfSSL_CIPHER_get_bits");
2080020800

2080120801
#if defined(WOLFSSL_QT) || defined(OPENSSL_ALL)
20802-
(void)alg_bits;
20803-
if (c!= NULL)
20802+
if (c != NULL) {
2080420803
ret = c->bits;
20804+
if (alg_bits != NULL)
20805+
*alg_bits = c->bits;
20806+
}
2080520807
#else
2080620808
if (c != NULL && c->ssl != NULL) {
2080720809
ret = 8 * c->ssl->specs.key_size;

0 commit comments

Comments
 (0)