mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9422 - Update for TLS v1.3
This commit is contained in:
parent
496f9ced21
commit
a84d11dcce
2 changed files with 8 additions and 0 deletions
|
|
@ -179,6 +179,7 @@ LDAP_BEGIN_DECL
|
||||||
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_0 ((3 << 8) + 1)
|
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_0 ((3 << 8) + 1)
|
||||||
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_1 ((3 << 8) + 2)
|
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_1 ((3 << 8) + 2)
|
||||||
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_2 ((3 << 8) + 3)
|
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_2 ((3 << 8) + 3)
|
||||||
|
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_3 ((3 << 8) + 4)
|
||||||
|
|
||||||
#define LDAP_OPT_X_SASL_CBINDING_NONE 0
|
#define LDAP_OPT_X_SASL_CBINDING_NONE 0
|
||||||
#define LDAP_OPT_X_SASL_CBINDING_TLS_UNIQUE 1
|
#define LDAP_OPT_X_SASL_CBINDING_TLS_UNIQUE 1
|
||||||
|
|
|
||||||
|
|
@ -292,6 +292,13 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
|
||||||
#ifdef SSL_OP_NO_TLSv1
|
#ifdef SSL_OP_NO_TLSv1
|
||||||
#ifdef SSL_OP_NO_TLSv1_1
|
#ifdef SSL_OP_NO_TLSv1_1
|
||||||
#ifdef SSL_OP_NO_TLSv1_2
|
#ifdef SSL_OP_NO_TLSv1_2
|
||||||
|
#ifdef SSL_OP_NO_TLSv1_3
|
||||||
|
if ( lo->ldo_tls_protocol_min > LDAP_OPT_X_TLS_PROTOCOL_TLS1_3)
|
||||||
|
SSL_CTX_set_options( ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 |
|
||||||
|
SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 |
|
||||||
|
SSL_OP_NO_TLSv1_2 | SSL_OP_NO_TLSv1_3 );
|
||||||
|
else
|
||||||
|
#endif
|
||||||
if ( lo->ldo_tls_protocol_min > LDAP_OPT_X_TLS_PROTOCOL_TLS1_2)
|
if ( lo->ldo_tls_protocol_min > LDAP_OPT_X_TLS_PROTOCOL_TLS1_2)
|
||||||
SSL_CTX_set_options( ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 |
|
SSL_CTX_set_options( ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 |
|
||||||
SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 |
|
SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue