Skip to content

Commit

Permalink
Allow LibreSSL to use X25519
Browse files Browse the repository at this point in the history
As LibreSSL already supports X25519. Also NID_X25519
variable is also defined.
Hence, this patch allows LibreSSL to use X25519.
  • Loading branch information
nak3 committed Aug 7, 2024
1 parent e4f0a27 commit 6df94b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/picotls/openssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern ptls_key_exchange_algorithm_t ptls_openssl_secp521r1;
#ifdef EVP_PKEY_ED25519
#define PTLS_OPENSSL_HAVE_ED25519 1
#endif
#if defined(NID_X25519) && !defined(LIBRESSL_VERSION_NUMBER)
#if defined(NID_X25519)
#define PTLS_OPENSSL_HAVE_X25519 1
#define PTLS_OPENSSL_HAS_X25519 1 /* deprecated; use HAVE_ */
extern ptls_key_exchange_algorithm_t ptls_openssl_x25519;
Expand Down

0 comments on commit 6df94b8

Please sign in to comment.