Skip to content

Commit b3d6a8c

Browse files
authored
Back out the removal of OPT_X_TLS and OPT_X_TLS_CTX options
Closes python-ldap#480
1 parent 4e53fc9 commit b3d6a8c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

Doc/reference/ldap.rst

+10
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ TLS options
409409
410410
get/set allowed cipher suites
411411

412+
.. py:data:: OPT_X_TLS_CTX
413+
414+
get address of internal memory address of TLS context (**DO NOT USE**)
415+
412416
.. py:data:: OPT_X_TLS_PEERCERT
413417
414418
Get peer's certificate as binary ASN.1 data structure (DER)
@@ -472,6 +476,12 @@ TLS options
472476
473477
get/set path to /dev/urandom (**DO NOT USE**)
474478

479+
.. py:data:: OPT_X_TLS
480+
481+
.. deprecated:: 3.3.0
482+
The option is deprecated in OpenLDAP and should no longer be used. It
483+
will be removed in the future.
484+
475485
.. note::
476486

477487
OpenLDAP supports several TLS/SSL libraries. OpenSSL is the most common

Lib/ldap/constants.py

+2
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ class Str(Constant):
267267

268268
Int('OPT_DEFBASE', optional=True),
269269

270+
TLSInt('OPT_X_TLS', optional=True),
271+
TLSInt('OPT_X_TLS_CTX'),
270272
TLSInt('OPT_X_TLS_CACERTFILE'),
271273
TLSInt('OPT_X_TLS_CACERTDIR'),
272274
TLSInt('OPT_X_TLS_CERTFILE'),

Modules/constants_generated.h

+6
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ add_int(OPT_DEFBASE);
202202

203203

204204
#if HAVE_TLS
205+
206+
#if defined(LDAP_OPT_X_TLS)
207+
add_int(OPT_X_TLS);
208+
#endif
209+
210+
add_int(OPT_X_TLS_CTX);
205211
add_int(OPT_X_TLS_CACERTFILE);
206212
add_int(OPT_X_TLS_CACERTDIR);
207213
add_int(OPT_X_TLS_CERTFILE);

0 commit comments

Comments
 (0)