Skip to content

Commit 3c8939c

Browse files
committed
sha1 is only enabled when user intentionally enables NO_SHA1_SOFT_DISABLE
1 parent 702e0ee commit 3c8939c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/internal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13490,7 +13490,8 @@ static int PrepareUserAuthRequestPublicKey(WOLFSSH* ssh, word32* payloadSz,
1349013490
#ifndef WOLFSSH_NO_RSA_SHA2_256
1349113491
algoId[algoIdSz++] = ID_RSA_SHA2_256;
1349213492
#endif
13493-
#ifndef WOLFSSH_NO_SSH_RSA_SHA1
13493+
#if !defined(WOLFSSH_NO_SSH_RSA_SHA1) \
13494+
&& defined(WOLFSSH_NO_SHA1_SOFT_DISABLE)
1349413495
algoId[algoIdSz++] = ID_SSH_RSA;
1349513496
#endif
1349613497
}

0 commit comments

Comments
 (0)