Support ECDH X25519 for TLSv1.3 (OpenSSL 1.1.1)
This commit is contained in:
parent
95c84a44fd
commit
f7f1c50494
1 changed files with 13 additions and 1 deletions
|
@ -87,6 +87,14 @@
|
||||||
# endif
|
# endif
|
||||||
#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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -123,7 +131,11 @@ static const char rb_default_ciphers[] = ""
|
||||||
"!aNULL";
|
"!aNULL";
|
||||||
|
|
||||||
#ifdef LRB_HAVE_TLS_SET_CURVES
|
#ifdef LRB_HAVE_TLS_SET_CURVES
|
||||||
static const char rb_default_curves[] = "P-521:P-384:P-256";
|
# 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
|
||||||
|
|
||||||
#endif /* LRB_OPENSSL_H_INC */
|
#endif /* LRB_OPENSSL_H_INC */
|
||||||
|
|
Loading…
Reference in a new issue