Merge pull request #11234 from aidankeefe2022/fenrir-10721

Fix: Out of date comment
pull/11244/head
philljj 2026-08-21 14:53:46 -05:00 committed by GitHub
commit 583f214057
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -6320,8 +6320,11 @@ WOLFSSL_API int wolfSSL_CTX_AllowEncryptThenMac(WOLFSSL_CTX* ctx, int set);
WOLFSSL_API int wolfSSL_AllowEncryptThenMac(WOLFSSL *s, int set);
#endif
/* This feature is used to set a fixed ephemeral key and is for testing only */
/* Currently allows ECDHE and DHE only */
/* This feature is used to set a fixed ephemeral key and is for testing only.
* Reusing a key share across connections is incorrect behavior
* and is forbidden by RFC 9846 Section 1.2 so do not enable this in
* production. */
/* Currently allows DHE, ECDHE, X25519 and X448 only */
#ifdef WOLFSSL_STATIC_EPHEMERAL
WOLFSSL_API int wolfSSL_CTX_set_ephemeral_key(WOLFSSL_CTX* ctx, int keyAlgo,
const char* key, unsigned int keySz, int format);