Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Support ECDH X25519 for TLSv1.3 (OpenSSL 1.1.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmdjones committed Sep 8, 2019
1 parent 88fbca2 commit 9055088
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libratbox/src/openssl_ratbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
# endif
#endif

#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER > 0x10101000L)
# define LRB_HAVE_TLS_ECDH_X25519 1
#else
# if defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER > 0x2050100fL)
# define LRB_HAVE_TLS_ECDH_X25519 1
# endif
#endif



/*
Expand Down Expand Up @@ -123,7 +131,11 @@ static const char rb_default_ciphers[] = ""
"!aNULL";

#ifdef LRB_HAVE_TLS_SET_CURVES
# ifdef LRB_HAVE_TLS_ECDH_X25519
static char rb_default_curves[] = "X25519:P-521:P-384:P-256";
# else
static char rb_default_curves[] = "P-521:P-384:P-256";
# endif
#endif

#endif /* LRB_OPENSSL_H_INC */

0 comments on commit 9055088

Please sign in to comment.