Skip to content

Commit

Permalink
Merge pull request #6615 from dgarske/various2
Browse files Browse the repository at this point in the history
Fix for building ED25519 with no client auth
  • Loading branch information
SparkiDev committed Jul 14, 2023
2 parents 4fd5d15 + e3e0b45 commit 40d0a14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6739,9 +6739,11 @@ static int ProcessBufferTryDecodeEd25519(WOLFSSL_CTX* ctx, WOLFSSL* ssl,

*keyFormat = ED25519k;
if (ssl != NULL) {
#if !defined(WOLFSSL_NO_CLIENT_AUTH) && !defined(NO_ED25519_CLIENT_AUTH)
/* ED25519 requires caching enabled for tracking message
* hash used in EdDSA_Update for signing */
ssl->options.cacheMessages = 1;
#endif
if (ssl->options.side == WOLFSSL_SERVER_END) {
*resetSuites = 1;
}
Expand Down

0 comments on commit 40d0a14

Please sign in to comment.