File tree Expand file tree Collapse file tree 3 files changed +35
-17
lines changed Expand file tree Collapse file tree 3 files changed +35
-17
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ Backward-incompatible changes:
19
19
Deprecations:
20
20
^^^^^^^^^^^^^
21
21
22
+ - ``OpenSSL.SSL.SSLeay_version `` is deprecated in favor of
23
+ ``OpenSSL.SSL.OpenSSL_version ``. The constants ``OpenSSL.SSL.SSLEAY_* `` are
24
+ deprecated in favor of ``OpenSSL.SSL.OPENSSL_* ``.
25
+
22
26
Changes:
23
27
^^^^^^^^
24
28
Original file line number Diff line number Diff line change @@ -98,14 +98,20 @@ Context, Connection.
98
98
:py:const: `OP_NO_* ` constant may be undefined.
99
99
100
100
101
- .. py :data :: SSLEAY_VERSION
102
- SSLEAY_CFLAGS
103
- SSLEAY_BUILT_ON
104
- SSLEAY_PLATFORM
105
- SSLEAY_DIR
106
-
107
- Constants used with :py:meth: `SSLeay_version ` to specify what OpenSSL version
108
- information to retrieve. See the man page for the :py:func: `SSLeay_version ` C
101
+ .. py :data :: OPENSSL_VERSION
102
+ OPENSSL_CFLAGS
103
+ OPENSSL_BUILT_ON
104
+ OPENSSL_PLATFORM
105
+ OPENSSL_DIR
106
+
107
+ .. versionchanged :: 22.1.0
108
+
109
+ Previously these were all named ``SSLEAY_* ``. Those names are still
110
+ available for backwards compatibility, but the ``OPENSSL_* `` names are
111
+ preferred.
112
+
113
+ Constants used with :py:meth: `OpenSSL_version ` to specify what OpenSSL version
114
+ information to retrieve. See the man page for the :py:func: `OpenSSL_version ` C
109
115
API for details.
110
116
111
117
@@ -141,7 +147,7 @@ Context, Connection.
141
147
.. versionadded :: 19.1
142
148
143
149
144
- .. autofunction :: SSLeay_version
150
+ .. autofunction :: OpenSSL_version
145
151
146
152
147
153
.. py :data :: ContextType
Original file line number Diff line number Diff line change 32
32
"SSLEAY_PLATFORM" ,
33
33
"SSLEAY_DIR" ,
34
34
"SSLEAY_BUILT_ON" ,
35
+ "OPENSSL_VERSION" ,
36
+ "OPENSSL_CFLAGS" ,
37
+ "OPENSSL_PLATFORM" ,
38
+ "OPENSSL_DIR" ,
39
+ "OPENSSL_BUILT_ON" ,
35
40
"SENT_SHUTDOWN" ,
36
41
"RECEIVED_SHUTDOWN" ,
37
42
"SSLv23_METHOD" ,
125
130
126
131
127
132
OPENSSL_VERSION_NUMBER = _lib .OPENSSL_VERSION_NUMBER
128
- SSLEAY_VERSION = _lib .SSLEAY_VERSION
129
- SSLEAY_CFLAGS = _lib .SSLEAY_CFLAGS
130
- SSLEAY_PLATFORM = _lib .SSLEAY_PLATFORM
131
- SSLEAY_DIR = _lib .SSLEAY_DIR
132
- SSLEAY_BUILT_ON = _lib .SSLEAY_BUILT_ON
133
+ OPENSSL_VERSION = SSLEAY_VERSION = _lib .OPENSSL_VERSION
134
+ OPENSSL_CFLAGS = SSLEAY_CFLAGS = _lib .OPENSSL_CFLAGS
135
+ OPENSSL_PLATFORM = SSLEAY_PLATFORM = _lib .OPENSSL_PLATFORM
136
+ OPENSSL_DIR = SSLEAY_DIR = _lib .OPENSSL_DIR
137
+ OPENSSL_BUILT_ON = SSLEAY_BUILT_ON = _lib .OPENSSL_BUILT_ON
133
138
134
139
SENT_SHUTDOWN = _lib .SSL_SENT_SHUTDOWN
135
140
RECEIVED_SHUTDOWN = _lib .SSL_RECEIVED_SHUTDOWN
@@ -614,13 +619,16 @@ def _asFileDescriptor(obj):
614
619
return fd
615
620
616
621
617
- def SSLeay_version (type ):
622
+ def OpenSSL_version (type ):
618
623
"""
619
624
Return a string describing the version of OpenSSL in use.
620
625
621
- :param type: One of the :const:`SSLEAY_ ` constants defined in this module.
626
+ :param type: One of the :const:`OPENSSL_ ` constants defined in this module.
622
627
"""
623
- return _ffi .string (_lib .SSLeay_version (type ))
628
+ return _ffi .string (_lib .OpenSSL_version (type ))
629
+
630
+
631
+ SSLeay_version = OpenSSL_version
624
632
625
633
626
634
def _make_requires (flag , error ):
You can’t perform that action at this time.
0 commit comments