Skip to content

Commit

Permalink
sha1 is only enabled when user intentionally enables NO_SHA1_SOFT_DIS…
Browse files Browse the repository at this point in the history
…ABLE
  • Loading branch information
miyazakh committed May 22, 2024
1 parent 702e0ee commit 3c8939c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -13490,7 +13490,8 @@ static int PrepareUserAuthRequestPublicKey(WOLFSSH* ssh, word32* payloadSz,
#ifndef WOLFSSH_NO_RSA_SHA2_256
algoId[algoIdSz++] = ID_RSA_SHA2_256;
#endif
#ifndef WOLFSSH_NO_SSH_RSA_SHA1
#if !defined(WOLFSSH_NO_SSH_RSA_SHA1) \
&& defined(WOLFSSH_NO_SHA1_SOFT_DISABLE)
algoId[algoIdSz++] = ID_SSH_RSA;
#endif
}
Expand Down

0 comments on commit 3c8939c

Please sign in to comment.