Skip to content

Commit

Permalink
Merge pull request wolfSSL#698 from miyazakh/sha1_softdisable
Browse files Browse the repository at this point in the history
Enable sha1 when WOLFSSH_NO_SHA1_SOFT_DISABLE is enabled
  • Loading branch information
JacobBarthelmeh authored May 30, 2024
2 parents 914f984 + 3c8939c commit d09e00a
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 d09e00a

Please sign in to comment.