Skip to content

Commit

Permalink
Fix for building ED25519 with WOLFSSL_NO_CLIENT_AUTH or `NO_ED25519…
Browse files Browse the repository at this point in the history
…_CLIENT_AUTH` set:

```
/wolfssl/src/ssl.c:6744:33: error: 'Options' has no member named 'cacheMessages'
 6744 |                     ssl->options.cacheMessages = 1;
      |
```
  • Loading branch information
dgarske committed Jul 13, 2023
1 parent 4bf6422 commit e3e0b45
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 e3e0b45

Please sign in to comment.