Skip to content

Commit 4315971

Browse files
committed
fill in alg_bits
1 parent 5a8411a commit 4315971

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ssl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20799,9 +20799,10 @@ 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+
*alg_bits = c->bits;
20805+
}
2080520806
#else
2080620807
if (c != NULL && c->ssl != NULL) {
2080720808
ret = 8 * c->ssl->specs.key_size;

0 commit comments

Comments
 (0)