blob: 873c1c4d35551afadca867079f5773e7a3f6bcf5 [file] [log] [blame]
Jean-Paul Calderone5e8bf3f2014-03-02 07:43:21 -050012014-03-02 Stephen Holsapple <sholsapp@gmail.com>
2
3 * OpenSSL/crypto.py: Add ``get_extensions`` method to ``X509Req``.
4
Jean-Paul Calderonefd193a22014-01-09 15:15:45 -050052014-01-09 Jean-Paul Calderone <exarkun@twistedmatrix.com>
6
7 * OpenSSL: Port to the cffi-based OpenSSL bindings provided by
8 <https://github.com/pyca/cryptography>
9
Jean-Paul Calderone5c0fd552013-10-06 08:58:04 -0400102013-10-06 Jean-Paul Calderone <exarkun@twistedmatrix.com>
11
12 * OpenSSL/ssl/context.c: Add support for negotiating TLS v1.1 or
13 v1.2.
14
Jean-Paul Calderonef7e37e62013-10-03 15:24:23 -0400152013-10-03 Christian Heimes <christian@python.org>
16
17 * OpenSSL/crypto/x509.c: Fix an inconsistency in memory management
18 in X509.get_serial_number which leads to crashes on some runtimes
19 (certain Windows/Python 3.3 environments, at least).
20
Jean-Paul Calderoneff83cdd2013-08-12 18:05:51 -0400212013-08-11 Christian Heimes <christian@python.org>
22
23 * OpenSSL/crypto/x509ext.c: Fix handling of NULL bytes inside
Jean-Paul Calderonede1a6822013-08-23 15:21:30 -040024 subjectAltName general names when formatting an X509 extension
25 as a string.
Jean-Paul Calderoneff83cdd2013-08-12 18:05:51 -040026 * OpenSSL/crypto/x509.c: Fix memory leak in get_extension().
27
Jean-Paul Calderoneffe420a2012-04-03 15:25:07 -0400282012-04-03 Jean-Paul Calderone <exarkun@twistedmatrix.com>
29
30 * OpenSSL/crypto/pkey.c: Release the GIL around RSA and DSA key
31 generation, based on code from INADA Naoki.
32
Jean-Paul Calderone593a06d2012-02-13 08:15:07 -0500332012-02-13 Jean-Paul Calderone <exarkun@twistedmatrix.com>
34
35 * OpenSSL/ssl/ssl.c: Add session cache related constants for use
36 with the new Context.set_session_cache_mode method.
37
38 * OpenSSL/ssl/context.c: Add new Context methods
39 set_session_cache_mode and get_session_cache_mode.
40
412011-11-01 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderone22d915f2011-11-01 10:17:25 -040042
43 * OpenSSL/crypto/pkey.c: Raise TypeError when trying to check a
44 PKey instance which has no private component, instead of crashing.
45 Based on fix by <lp:~dataway>.
46
Jean-Paul Calderone56b2fb82011-09-14 11:23:38 -0400472011-09-14 Žiga Seilnacht <lp:ziga-seilnacht>
48
49 * OpenSSL/crypto/crypto.c: Allow exceptions from passphrase
50 callbacks to propagate up out of load_privatekey
51 * OpenSSL/crypto/crypto.c: Raise an exception when a too-long
52 passphrase is returned from a passphrase callback, instead of
53 silently truncating it.
54 * OpenSSL/crypto/crypto.c: Fix a memory leak when a passphrase
55 callback returns the wrong type.
56
Jean-Paul Calderonec7293bc2011-09-13 15:24:38 -0400572011-09-13 Jean-Paul Calderone <exarkun@twistedmatrix.com>
58
59 * OpenSSL/crypto/crl.c: Add error handling for the use of
60 X509_CRL_sign.
61
Jean-Paul Calderone54d99bc2011-09-11 15:49:43 -0400622011-09-11 Jonathan Ballet <lp:multani>
63
64 * doc/: Convert the LaTeX documentation to Sphinx-using ReST.
65 * OpenSSL/: Convert the epytext API documentation to Sphinx-using ReST.
66
Jean-Paul Calderone8afc7fc2011-09-08 18:42:51 -0400672011-09-08 Guillermo Gonzalez <guillermo.gonzalez@canonical.com>
Guillermo Gonzalez74a2c292011-08-29 16:16:58 -030068
69 * OpenSSL/ssl/context.c: Add Context.set_mode method.
70 * OpenSSL/ssl/ssl.c: Add MODE_RELEASE_BUFFERS and OP_NO_COMPRESSION
71 constants.
72
Jean-Paul Calderonebb960a62011-09-02 11:43:50 -0400732011-09-02 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderone9695e8a2011-08-14 18:10:06 -040074
75 * Release 0.13
76
Jean-Paul Calderoneeecb1982011-06-12 17:34:44 -0400772011-06-12 Jean-Paul Calderone <exarkun@twistedmatrix.com>
78
Jean-Paul Calderone042b66d2011-06-12 21:56:13 -040079 * OpenSSL/crypto/pkey.c: Add the PKey.check method, mostly
80 implemented by Rick Dean, to verify the internal consistency of a
81 PKey instance.
82
832011-06-12 Jean-Paul Calderone <exarkun@twistedmatrix.com>
84
Jean-Paul Calderoneeecb1982011-06-12 17:34:44 -040085 * OpenSSL/crypto/crypto.c: Fix the sign and verify functions so
86 they handle data with embedded NULs. Fix by David Brodsky
87 <lp:~lihalla>.
88
Jean-Paul Calderoneee6532d2011-05-20 20:10:39 -0400892011-05-20 Jean-Paul Calderone <exarkun@twistedmatrix.com>
90
91 * OpenSSL/ssl/connection.c, OpenSSL/test/test_ssl.py: Add a new
92 method to the Connection type, get_peer_cert_chain, for retrieving
93 the peer's certificate chain.
94
Jean-Paul Calderone9c771672011-05-19 17:54:07 -0400952011-05-19 Jean-Paul Calderone <exarkun@twistedmatrix.com>
96
97 * OpenSSL/crypto/x509.c, OpenSSL/test/test_crypto.py: Add a new
98 method to the X509 type, get_signature_algorithm, for inspecting
99 the signature algorithm field of the certificate. Based on a
100 patch from <lp:~okuda>.
101
Jean-Paul Calderone9eff5692011-05-10 20:24:34 -04001022011-05-10 Jean-Paul Calderone <exarkun@twistedmatrix.com>
103
104 * OpenSSL/crypto/crypto.h: Work around a Windows/OpenSSL 1.0 issue
105 explicitly including a Windows header before any OpenSSL headers.
106
107 * OpenSSL/crypto/pkcs12.c: Work around an OpenSSL 1.0 issue by
108 explicitly flushing errors known to be uninteresting after calling
109 PKCS12_parse.
110
111 * OpenSSL/ssl/context.c: Remove SSLv2 support if the underlying
112 OpenSSL library does not provide it.
113
114 * OpenSSL/test/test_crypto.py: Support an OpenSSL 1.0 change from
115 MD5 to SHA1 by allowing either hash algorithm's result as the
116 return value of X509.subject_name_hash.
117
118 * OpenSSL/test/test_ssl.py: Support an OpenSSL 1.0 change from MD5
119 to SHA1 by constructing certificate files named using both hash
120 algorithms' results when testing Context.load_verify_locations.
121
122 * Support OpenSSL 1.0.0a.
123
1242011-04-15 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderone2309cd62011-04-15 12:17:53 -0400125
126 * OpenSSL/ssl/ssl.c: Add OPENSSL_VERSION_NUMBER, SSLeay_version
127 and related constants for retrieving version information about the
128 underlying OpenSSL library.
129
Jean-Paul Calderonefc572cf2011-04-07 15:48:16 -04001302011-04-07 Jean-Paul Calderone <exarkun@twistedmatrix.com>
131
132 * Release 0.12
133
Jean-Paul Calderonec2d2bdb2011-04-06 22:19:52 -04001342011-04-06 Jean-Paul Calderone <exarkun@twistedmatrix.com>
135
136 * OpenSSL/crypto/x509.c: Add get_extension_count and get_extension
137 to the X509 type, allowing read access to certificate extensions.
138
139 * OpenSSL/crypto/x509ext.c: Add get_short_name and get_data to the
140 X509Extension type, allowing read access to the contents of an
141 extension.
142
Jean-Paul Calderonef65fe482011-03-21 19:16:40 -04001432011-03-21 Olivier Hervieu <lp:~ohe>
144
145 * OpenSSL/ssl/ssl.c: Expose a number of symbolic constants for
146 values passed to the connection "info" callback.
147
Jean-Paul Calderonef6a4a7c2011-01-22 10:04:48 -05001482011-01-22 Jean-Paul Calderone <exarkun@twistedmatrix.com>
149
150 * OpenSSL/ssl/connection.py: Add support for new-style
151 buffers (primarily memoryviews) to Connection.send and
152 Connection.sendall.
153
Jean-Paul Calderone8e1716f2010-11-01 17:43:15 -04001542010-11-01 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderone7cb3f6d2010-10-31 10:36:23 -0400155
156 * Release 0.11
157
Jean-Paul Calderoned16a3642010-10-07 22:19:58 -04001582010-10-07 Jean-Paul Calderone <exarkun@twistedmatrix.com>
159
160 * Initial support for Python 3.x throughout the codebase.
161
Jean-Paul Calderone84fd3742010-09-14 18:05:45 -04001622010-09-14 Jean-Paul Calderone <exarkun@twistedmatrix.com>
163
164 * OpenSSL/crypto/netscape_spki.c: Fix an off-by-one mistake in the
165 error handling for NetscapeSPKI.verify. Add additional error
166 checking to NetscapeSPKI.sign to handle the case where there is no
167 private key.
168
169 * OpenSSL/crypto/x509.c: Fix an overflow bug in the subject_name_hash
170 method of the X509 type which would cause it to return negative
171 values on 32 bit systems.
172
173 * OpenSSL/crypto/x509req.c: Fix an off-by-one mistake in the error
174 handling for X509Req.verify.
175
176 * OpenSSL/ssl/context.c: Fix the error handling in the load_tmp_dh
177 method of the Context type which would cause it to always raise
178 MemoryError, regardless of the actual error (such as a bad file
179 name).
180
181 * OpenSSL/test/: Numerous unit tests added, both for above fixes
182 and for other previously untested code paths.
183
Jean-Paul Calderone6d78fed2010-07-27 21:47:22 -04001842010-07-27 Jean-Paul Calderone <exarkun@twistedmatrix.com>
185
186 * Re-arrange the repository so that the package can be built and
187 used in-place without requiring installation.
188
James Yonan7c2e5d32010-02-27 05:45:50 -07001892010-02-27 James Yonan <james@openvpn.net>
190
191 * src/crypto/crypto.c: Added crypto.sign and crypto.verify methods
192 that wrap EVP_Sign and EVP_Verify function families, using code
193 derived from Dave Cridland's PyOpenSSL branch.
194
195 * test/test_crypto.py: Added unit tests for crypto.sign and
196 crypto.verify.
197
Jean-Paul Calderone40b32a22010-01-27 16:56:44 -05001982010-01-27 Jean-Paul Calderone <exarkun@twistedmatrix.com>
199
200 * src/ssl/connection.c, src/util.h: Apply patch from Sandro Tosi to
201 fix misspellings of "compatibility".
202
Jean-Paul Calderone5cc61972009-11-13 09:16:32 -05002032009-11-13 Jean-Paul Calderone <exarkun@twistedmatrix.com>
204
205 * Release 0.10
206
Jean-Paul Calderone76751912009-11-12 07:51:04 -05002072009-11-07 Žiga Seilnacht, Jean-Paul Calderone <exarkun@twistedmatrix.com>
208
209 * src/ssl/connection.c, src/ssl/context.c: Add set_client_ca_list,
210 add_client_ca, and get_client_ca_list to Context for manipulating
211 the list of certificate authority names which are sent by servers
212 with the certificate request message.
213 * src/util.h: Add ssize-related defines if the version of Python
214 being used does not have them.
215 * setup.py: Significant changes to the way Windows builds are done,
216 particularly the way OpenSSL headers and libraries are found (with
217 the new --with-openssl argument to build_ext).
218
Jean-Paul Calderone2953db82009-08-27 13:20:38 -04002192009-08-27 Rick Dean <rick@fdd.com>, Jean-Paul Calderone <exarkun@twistedmatrix.com>
220
221 * src/crypto/pkcs12.c: Add setters to the PKCS12 type for the
222 certificate, private key, ca certificate list, and friendly
223 name, and add a getter for the friendly name. Also add a method
224 for exporting a PKCS12 object as a string.
Jean-Paul Calderone2953db82009-08-27 13:20:38 -0400225 * test/test_crypto.py: Add lots of additional tests for the PKCS12
226 type.
Jean-Paul Calderone2953db82009-08-27 13:20:38 -0400227 * doc/pyOpenSSL.tex: Documentation for the new PKCS12 methods.
228
2292009-07-17 Rick Dean <rick@fdd.com>, Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderone9ac425c2009-07-17 16:06:12 -0400230
231 * src/crypto/x509ext.c: Add subject and issuer parameters to
232 X509Extension, allowing creation of extensions which require that
233 information. Fixes LP#322813.
234
Jean-Paul Calderone8b327992009-07-16 18:52:14 -04002352009-07-16 Jean-Paul Calderone <exarkun@twistedmatrix.com>
236
237 * test/util.py: Changed the base TestCase's tearDown to assert that
238 no errors were left in the OpenSSL error queue by the test.
239 * src/crypto/crypto.c: Add a private helper in support of the
240 TestCase.tearDown change.
241 * src/crypto/x509name.c: Changed X509Name's getattr implementation
242 to clean up the error queue. Fixes LP#314814.
243 * test/util.c: Changed flush_error_queue to avoid a reference
244 counting bug caused by macro expansion.
245
Jean-Paul Calderoneb3b94e02009-07-16 14:07:28 -04002462009-07-16 Rick Dean <rick@fdd.com>
247
248 * src/rand.c: Added OpenSSL.rand.bytes to get random bytes directly.
249 * src/util.c: Added generic exceptions_from_error_queue to replace
250 the various other implementations of this function. Also updated
251 the rest of the codebase to use this version instead.
252
Jean-Paul Calderone0b88b6a2009-07-05 12:44:41 -04002532009-07-05 Jean-Paul Calderone <exarkun@twistedmatrix.com>
254
Jean-Paul Calderone18808652009-07-05 12:54:05 -0400255 * test/util.py, test/test_ssl.py, test/test_crypto.py: Fold the
256 Python 2.3 compatibility TestCase mixin into the TestCase defined
257 in util.py.
258
2592009-07-05 Jean-Paul Calderone <exarkun@twistedmatrix.com>
260
Jean-Paul Calderone0b88b6a2009-07-05 12:44:41 -0400261 * test/util.py, test/test_ssl.py, test/test_crypto.py: Stop trying
262 to use Twisted's TestCase even when it's available. Instead,
263 always use the stdlib TestCase with a few enhancements.
264
Jean-Paul Calderonefdc5a0a2009-07-04 15:48:42 -04002652009-07-04 Jean-Paul Calderone <exarkun@twistedmatrix.com>
266
267 * Changed most extension types so that they can be instantiated
268 using the type object rather than a factory function. The old
269 factory functions are now aliases for the type objects.
270 Fixes LP#312786.
271
Jean-Paul Calderonea96bfed2009-05-27 08:47:34 -04002722009-05-27 Jean-Paul Calderone <exarkun@twistedmatrix.com>
273
Jean-Paul Calderone54bcc832009-05-27 14:06:48 -0400274 * Changed all docstrings in extension modules to be friendlier
275 towards Python programmers. Fixes LP#312787.
276
2772009-05-27 Jean-Paul Calderone <exarkun@twistedmatrix.com>
278
Jean-Paul Calderonea96bfed2009-05-27 08:47:34 -0400279 * src/crypto/x509ext.c: Correctly deallocate the new Extension
280 instance when there is an error initializing it and it is not
281 going to be returned. Resolves LP#368043.
282
Jean-Paul Calderoned683f2d2009-05-11 10:47:42 -04002832009-05-11 Jean-Paul Calderone <exarkun@twistedmatrix.com>
284
285 * test/test_crypto.py: Use binary mode for the pipe to talk to the
286 external openssl binary. The data being transported over this
287 pipe is indeed binary, so previously it would often be truncated
288 or otherwise mangled.
289
290 * src/ssl/connection.h, src/ssl/connection.c, test/test_ssl.py:
291 Extend the Connection class with support for in-memory BIOs. This
292 allows SSL to be run without a real socket, useful for
293 implementing EAP-TLS or using SSL with Windows IO completion
Jean-Paul Calderoneb0921592009-05-11 10:48:41 -0400294 ports, for example. Based heavily on contributions from Rick
295 Dean.
Jean-Paul Calderoned683f2d2009-05-11 10:47:42 -0400296
Jean-Paul Calderone71ff3682009-04-25 08:30:11 -04002972009-04-25 Jean-Paul Calderone <exarkun@twistedmatrix.com>
298
299 * Release 0.9
300
Jean-Paul Calderoneb8a70732009-04-01 14:49:13 -04003012009-04-01 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderoneec48cd52009-04-01 19:01:41 -0400302 Samuele Pedroni <pedronis@openend.se>
303
304 * src/util.h: Delete the TLS key before trying to set a new value
305 for it in case the current thread identifier is a recycled one (if
306 it is recycled, the key won't be set because there is already a
307 value from the previous thread to have this identifier and to use
308 the pyOpenSSL API).
309
3102009-04-01 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderoneb8a70732009-04-01 14:49:13 -0400311
312 * src/crypto/crypto.c: Add FILETYPE_TEXT for dumping keys and
313 certificates and certificate signature requests to a text format.
314
Jean-Paul Calderonee7db4b42008-12-31 13:39:24 -05003152008-12-31 Jean-Paul Calderone <exarkun@twistedmatrix.com>
316
Jean-Paul Calderonef8c5fab2008-12-31 15:53:48 -0500317 * src/crypto/x509ext.c, test/test_crypto.py: Add the get_short_name
318 method to X509Extension based on patch from Alex Stapleton.
Jean-Paul Calderone2953db82009-08-27 13:20:38 -0400319
Jean-Paul Calderonef8c5fab2008-12-31 15:53:48 -05003202008-12-31 Jean-Paul Calderone <exarkun@twistedmatrix.com>
321
Jean-Paul Calderonee7db4b42008-12-31 13:39:24 -0500322 * src/crypto/x509ext.c, test/test_crypto.py: Fix X509Extension so
323 that it is possible to instantiate extensions which use s2i or r2i
324 instead of v2i (an extremely obscure extension implementation
325 detail).
326
Jean-Paul Calderone24e2b0b2008-12-30 15:12:11 -05003272008-12-30 Jean-Paul Calderone <exarkun@twistedmatrix.com>
328
329 * MANIFEST.in, src/crypto/crypto.c, src/crypto/x509.c,
330 src/crypto/x509name.c, src/rand/rand.c, src/ssl/context.c: Changes
331 which eliminate compiler warnings but should not change any
332 behavior.
333
Jean-Paul Calderone8dd19b82008-12-28 20:41:16 -05003342008-12-28 Jean-Paul Calderone <exarkun@twistedmatrix.com>
335
Jean-Paul Calderone327d8f92008-12-28 21:55:56 -0500336 * test/test_ssl.py, src/ssl/ssl.c: Expose DTLS-related constants,
337 OP_NO_QUERY_MTU, OP_COOKIE_EXCHANGE, and OP_NO_TICKET.
338
3392008-12-28 Jean-Paul Calderone <exarkun@twistedmatrix.com>
340
Jean-Paul Calderoneaa9c7972008-09-07 21:27:49 -0400341 * src/ssl/context.c: Add a capath parameter to
342 Context.load_verify_locations to allow Python code to specify
343 either or both arguments to the underlying
344 SSL_CTX_load_verify_locations API.
345 * src/ssl/context.c: Add Context.set_default_verify_paths, a wrapper
346 around SSL_CTX_set_default_verify_paths.
347
Jean-Paul Calderone5b000d72008-12-28 21:09:53 -05003482008-12-28 Jean-Paul Calderone <exarkun@twistedmatrix.com>
349
Jean-Paul Calderone8dd19b82008-12-28 20:41:16 -0500350 * test/test_crypto.py, src/crypto/x509req.c: Added get_version and
351 set_version_methods to X509ReqType based on patch from Wouter van
352 Bommel. Resolves LP#274418.
353
Jean-Paul Calderonef7f0fb42008-10-19 11:55:13 -04003542008-09-22 Jean-Paul Calderone <exarkun@twistedmatrix.com>
355
356 * Release 0.8
357
Jean-Paul Calderone002bf462008-10-19 11:35:40 -04003582008-10-19 Jean-Paul Calderone <exarkun@twistedmatrix.com>
359
360 * tsafe.py: Revert the deprecation of the thread-safe Connection
361 wrapper. The Connection class should not segfault if used from
362 multiple threads now, but it generally cannot be relied on to
363 produce correct results if used without the thread-safe wrapper.
Jean-Paul Calderone1eeb29e2008-10-19 11:50:53 -0400364 * doc/pyOpenSSL.tex: Correct the documentation for the set_passwd_cb
365 callback parameter so that it accurately describes the required
366 signature.
Jean-Paul Calderone002bf462008-10-19 11:35:40 -0400367
Jean-Paul Calderonea319ca92008-09-22 08:45:40 -04003682008-09-22 Jean-Paul Calderone <exarkun@twistedmatrix.com>
369
Jean-Paul Calderoneb5fdbbf2008-09-22 09:04:09 -0400370 * Release 0.8a1
371
Jean-Paul Calderoneb7d6db22008-09-21 18:57:56 -04003722008-09-21 Jean-Paul Calderone <exarkun@twistedmatrix.com>
373
374 * src/ssl/ssl.h, src/ssl/ssl.c: Add a thread-local storage key
Jean-Paul Calderone002bf462008-10-19 11:35:40 -0400375 which will be used to store and retrieve PyThreadState pointers
376 whenever it is necessary to release or re-acquire the GIL.
Jean-Paul Calderoneb7d6db22008-09-21 18:57:56 -0400377
378 * src/ssl/context.c: Change global_verify_callback so that it
Jean-Paul Calderone002bf462008-10-19 11:35:40 -0400379 unconditionally manipulates the Python threadstate, rather than
380 checking the tstate field which is now always NULL.
Jean-Paul Calderoneb7d6db22008-09-21 18:57:56 -0400381
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -04003822008-04-26 Jean-Paul Calderone <exarkun@twistedmatrix.com>
383
Jean-Paul Calderone5ef86512008-04-26 19:06:28 -0400384 * src/ssl/context.c: Change global_passphrase_callback and
385 global_info_callback so that they acquire the GIL before
386 invoking any CPython APIs and do not release it until after they
387 are finished invoking all of them (based heavily on on patch
388 from Dan Williams).
Jean-Paul Calderoneaea5d902008-04-26 19:53:39 -0400389 * src/ssl/crypto.c: Initialize OpenSSL thread support so that it
390 is valid to use OpenSSL APIs from more than one thread (based on
391 patch from Dan Williams).
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -0400392 * test/test_crypto.py: Add tests for load_privatekey and
393 dump_privatekey when a passphrase or a passphrase callback is
394 supplied.
Jean-Paul Calderone5ef86512008-04-26 19:06:28 -0400395 * test/test_ssl.py: Add tests for Context.set_passwd_cb and
396 Context.set_info_callback.
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -0400397
Jean-Paul Calderonee53ccf72008-04-11 11:40:39 -04003982008-04-11 Jean-Paul Calderone <exarkun@twistedmatrix.com>
399
400 * Release 0.7
401
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -04004022008-03-26 Jean-Paul Calderone <exarkun@twistedmatrix.com>
403
404 * src/crypto/x509name.c: Add X509Name.get_components
405
Jean-Paul Calderone9ab16c02008-03-25 15:22:47 -04004062008-03-25 Jean-Paul Calderone <exarkun@twistedmatrix.com>
407
408 * src/crypto/x509name.c: Add hash and der methods to X509Name.
Jean-Paul Calderonec8215432008-03-25 15:34:21 -0400409 * src/crypto/x509.c: Fix a bug in X509.get_notBefore and
410 X509.get_notAfter preventing UTCTIME format timestamps from
411 working.
Jean-Paul Calderone9ab16c02008-03-25 15:22:47 -0400412
Jean-Paul Calderone3de9f622008-03-12 14:12:19 -04004132008-03-12 Jean-Paul Calderone <exarkun@twistedmatrix.com>
414
415 * Fix coding problems in examples/. Remove keys and certificates
416 and add a note about how to generate new ones.
417
Jean-Paul Calderone525ef802008-03-09 20:39:42 -04004182008-03-09 Jean-Paul Calderone <exarkun@twistedmatrix.com>
419
420 * src/crypto/x509.c: Add getters and setters for the notBefore and
421 notAfter attributes of X509s.
Jean-Paul Calderoneac0d95f2008-03-10 00:00:42 -0400422 * src/crypto/pkey.h, src/crypto/pkey.c, src/crypto/x509req.c,
423 src/crypto/x509.c: Track the initialized and public/private state
424 of EVP_PKEY structures underlying the crypto_PKeyObj type and
425 reject X509Req signature operations on keys not suitable for the
426 task.
Jean-Paul Calderone525ef802008-03-09 20:39:42 -0400427
Jean-Paul Calderoneda92ccc2008-03-06 23:48:12 -05004282008-03-06 Jean-Paul Calderone <exarkun@twistedmatrix.com>
429
430 * src/crypto/x509name.c: Fix tp_compare so it only returns -1, 0, or
431 1. This eliminates a RuntimeWarning emitted by Python.
432 * src/crypto/x509req.c: Fix reference counting for X509Name returned
433 by X509Req.get_subject. This removes a segfault when the subject
434 name outlives the request object.
435 * src/crypto/x509.c: Change get_serial_number and set_serial_number
436 to accept Python longs.
437 * doc/pyOpenSSL.tex: A number of minor corrections.
438
Jean-Paul Calderone7df40db2008-03-03 15:12:42 -05004392008-03-03 Jean-Paul Calderone <exarkun@twistedmatrix.com>
440
441 * src/crypto/crypto.c: Expose X509_verify_cert_error_string. (patch
442 from Victor Stinner)
443
Jean-Paul Calderone12ea9a02008-02-22 12:24:39 -05004442008-02-22 Jean-Paul Calderone <exarkun@twistedmatrix.com>
445
446 * src/ssl/connection.c src/ssl/context.c src/ssl/ssl.c: Fix
447 compilation on Windows. (patch from Michael Schneider)
448
Jean-Paul Calderone72b8f0f2008-02-21 23:57:40 -05004492008-02-21 Jean-Paul Calderone <exarkun@twistedmatrix.com>
450
451 * src/ssl/connection.c: Expose SSL_get_shutdown and
452 SSL_set_shutdown. (patch from James Knight)
453 * src/ssl/ssl.c: Expose SSL_SENT_SHUTDOWN and SSL_RECEIVED_SHUTDOWN.
454 (patch from James Knight)
455
Jean-Paul Calderone779db6b2008-02-19 21:00:37 -05004562008-02-19 Jean-Paul Calderone <exarkun@twistedmatrix.com>
457
458 * src/ssl/context.c: Expose SSL_CTX_add_extra_chain_cert.
459 * src/crypto/x509name.c: Fix memory leaks in __getattr__ and
460 __setattr_ implementations.
Jean-Paul Calderone19555b92008-02-19 22:29:57 -0500461 * src/crypto/x509.c: Fix memory leak in X509.get_pubkey().
462 * leakcheck/: An attempt at a systematic approach to leak
463 elimination.
Jean-Paul Calderone779db6b2008-02-19 21:00:37 -0500464
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05004652004-08-13 Martin Sjögren <msjogren@gmail.com>
466
467 * Released version 0.6.
468
4692004-08-11 Martin Sjögren <msjogren@gmail.com>
470
471 * doc/pyOpenSSL.tex: Updates to the docs.
472
4732004-08-10 Martin Sjögren <msjogren@gmail.com>
474
475 * src/crypto/x509.c: Add X509.add_extensions based on a patch
476 from Han S. Lee.
477 * src/ssl/ssl.c: Add more SSL_OP_ constants. Patch from Mihai
478 Ibanescu.
479
4802004-08-09 Martin Sjögren <msjogren@gmail.com>
481
482 * setup.py src/crypto/: Add support for Netscape SPKI extensions
483 based on a patch from Tollef Fog Heen.
484 * src/crypto/crypto.c: Add support for python passphrase callbacks
485 based on a patch from Robert Olson.
486
4872004-08-03 Martin Sjögren <msjogren@gmail.com>
488
489 * src/ssl/context.c: Applied patch from Frederic Peters to add
490 Context.use_certificate_chain_file.
491 * src/crypto/x509.c: Applid patch from Tollef Fog Heen to add
492 X509.subject_name_hash and X509.digest.
493
4942004-08-02 Martin Sjögren <msjogren@gmail.com>
495
496 * src/crypto/crypto.c src/ssl/ssl.c: Applied patch from Bastian
497 Kleineidam to fix full names of exceptions.
498
4992004-07-19 Martin Sjögren <msjogren@gmail.com>
500
501 * doc/pyOpenSSL.tex: Fix the errors regarding X509Name's field names.
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -0400502
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05005032004-07-18 Martin Sjögren <msjogren@gmail.com>
504
505 * examples/certgen.py: Fixed wrong attributes in doc string, thanks
506 Remy. (SFbug#913315)
507 * __init__.py, setup.py, version.py: Add __version__, as suggested by
508 Ronald Oussoren in SFbug#888729.
509 * examples/proxy.py: Fix typos, thanks Mihai Ibanescu. (SFpatch#895820)
510
5112003-01-09 Martin Sjögren <martin@strakt.com>
512
513 * Use cyclic GC protocol in SSL.Connection, SSL.Context, crypto.PKCS12
514 and crypto.X509Name.
515
5162002-12-02 Martin Sjögren <martin@strakt.com>
517
518 * tsafe.py: Add some missing methods.
519
5202002-10-06 Martin Sjögren <martin@strakt.com>
521
522 * __init__.py: Import tsafe too!
523
5242002-10-05 Martin Sjögren <martin@strakt.com>
525
526 * src/crypto/x509name.c: Use unicode strings instead of ordinary
527 strings in getattr/setattr. Note that plain ascii strings should
528 still work.
529
5302002-09-17 Martin Sjögren <martin@strakt.com>
531
532 * Released version 0.5.1.
533
5342002-09-09 Martin Sjögren <martin@strakt.com>
535
536 * setup.cfg: Fixed build requirements for rpms.
537
5382002-09-07 Martin Sjögren <martin@strakt.com>
539
540 * src/ssl/connection.c: Fix sendall() method. It segfaulted because
541 it was too generous about giving away the GIL.
542 * Added SecureXMLRPCServer example, contributed by Michal Wallace.
543
5442002-09-06 Martin Sjögren <martin@strakt.com>
545
546 * setup.cfg: Updated the build requirements.
547 * src/ssl/connection.c: Fix includes for AIX.
548
5492002-09-04 Anders Hammarquist <iko@strakt.com>
550
551 * Added type checks in all the other places where we expect
552 specific types of objects passed.
553
5542002-09-04 Martin Sjögren <martin@strakt.com>
555
556 * src/crypto/crypto.c: Added an explicit type check in the dump_*
557 functions, so that they won't die when e.g. None is passed in.
558
5592002-08-25 Martin Sjögren <martin@strakt.com>
560
561 * doc/pyOpenSSL.tex: Docs for PKCS12.
562
5632002-08-24 Martin Sjögren <martin@strakt.com>
564
565 * src/crypto: Added basic PKCS12 support, thanks to Mark Welch
566 <mark@collab.net>
567
5682002-08-16 Martin Sjögren <martin@strakt.com>
569
570 * D'oh! Fixes for python 1.5 and python 2.1.
571
5722002-08-15 Martin Sjögren <martin@strakt.com>
573
574 * Version 0.5. Yay!
575
5762002-07-25 Martin Sjögren <martin@strakt.com>
577
578 * src/ssl/context.c: Added set_options method.
579 * src/ssl/ssl.c: Added constants for Context.set_options method.
580
5812002-07-23 Martin Sjögren <martin@strakt.com>
582
583 * Updated docs
584 * src/ssl/connection.c: Changed the get_cipher_list method to actually
585 return a list! WARNING: This change makes the API incompatible with
586 earlier versions!
587
5882002-07-15 Martin Sjögren <martin@strakt.com>
589
590 * src/ssl/connection.[ch]: Removed the fileno method, it uses the
591 transport object's fileno instead.
592
5932002-07-09 Martin Sjögren <martin@strakt.com>
594
595 * src/crypto/x509.c src/crypto/x509name.c: Fixed segfault bug where
596 you used an X509Name after its X509 had been destroyed.
597 * src/crypto/crypto.[ch] src/crypto/x509req.c src/crypto/x509ext.[ch]:
598 Added X509 Extension support. Thanks to maas-Maarten Zeeman
599 <maas@awanim.com>
600 * src/crypto/pkey.c: Added bits() and type() methods.
601
6022002-07-08 Martin Sjögren <martin@strakt.com>
603
604 * src/ssl/connection.c: Moved the contents of setup_ssl into the
605 constructor, thereby fixing some segfault bugs :)
606 * src/ssl/connection.c: Added connect_ex and sendall methods.
607 * src/crypto/x509name.c: Cleaned up comparisons and NID lookup.
608 Thank you Maas-Maarten Zeeman <maas@awanim.com>
609 * src/rand/rand.c: Fix RAND_screen import.
610 * src/crypto/crypto.c src/crypto/pkcs7.[ch]: Added PKCS7 management,
611 courtesy of Maas-Maarten Zeeman <maas@awanim.com>
612 * src/crypto/x509req.c: Added verify method.
613
6142002-06-17 Martin Sjögren <martin@strakt.com>
615
616 * rpm/, setup.cfg: Added improved RPM-building stuff, thanks to
617 Mihai Ibanescu <misa@redhat.com>
618
6192002-06-14 Martin Sjögren <martin@strakt.com>
620
621 * examples/proxy.py: Example code for using OpenSSL through a proxy
622 contributed by Mihai Ibanescu <misa@redhat.com>
623 * Updated installation instruction and added them to the TeX manual.
624
6252002-06-13 Martin Sjögren <martin@strakt.com>
626
627 * src/ssl/context.c: Changed global_verify_callback so that it uses
628 PyObject_IsTrue instead of requring ints.
629 * Added pymemcompat.h to make the memory management uniform and
630 backwards-compatible.
631 * src/util.h: Added conditional definition of PyModule_AddObject and
632 PyModule_AddIntConstant
633 * src/ssl/connection.c: Socket methods are no longer explicitly
634 wrapped. fileno() is the only method the transport layer object HAS
635 to support, but if you want to use connect, accept or sock_shutdown,
636 then the transport layer object has to supply connect, accept
637 and shutdown respectively.
638
6392002-06-12 Martin Sjögren <martin@strakt.com>
640
641 * Changed comments to docstrings that are visible in Python.
642 * src/ssl/connection.c: Added set_connect_state and set_accept_state
643 methods. Thanks to Mark Welch <mark@collab.net> for this.
644
6452002-06-11 Martin Sjögren <martin@strakt.com>
646
647 * src/ssl/connection.c: accept and connect now use SSL_set_accept_state
648 and SSL_set_connect_state respectively, instead of SSL_accept and
649 SSL_connect.
650 * src/ssl/connection.c: Added want_read and want_write methods.
651
6522002-06-05 Martin Sjögren <martin@strakt.com>
653
654 * src/ssl/connection.c: Added error messages for windows. The code is
655 copied from Python's socketmodule.c. Ick.
656 * src/ssl/connection.c: Changed the parameters to the SysCallError. It
657 always has a tuple (number, string) now, even though the number
658 might not always be useful.
659
6602002-04-05 Martin Sjögren <md9ms@mdstud.chalmers.se>
661
662 * Worked more on the Debian packaging, hopefully the packages
663 are getting into the main Debian archive soon.
664
6652002-01-10 Martin Sjögren <martin@strakt.com>
666
667 * Worked some more on the Debian packaging, it's turning out real
668 nice.
669 * Changed format on this file, I'm going to try to be a bit more
670 verbose about my changes, and this format makes it easier.
671
6722002-01-08 Martin Sjögren <martin@strakt.com>
673
674 * Version 0.4.1
675 * Added some example code
676 * Added the thread safe Connection object in the 'tsafe' submodule
677 * New Debian packaging
678
6792001-08-09 Martin Sjögren <martin@strakt.com>
680
681 * Version 0.4
682 * Added a compare function for X509Name structures.
683 * Moved the submodules to separate .so files, with tiny C APIs so they
684 can communicate
685 * Skeletal OpenSSL/__init__.py
686 * Removed the err submodule, use crypto.Error and SSL.Error instead
687
6882001-08-06 Martin Sjögren <martin@strakt.com>
689
690 * Version 0.3
691 * Added more types for dealing with certificates (X509Store, X509Req,
692 PKey)
693 * Functionality to load private keys, certificates and certificate
694 requests from memory buffers, and store them too
695 * X509 and X509Name objects can now be modified as well, very neat when
696 creating certificates ;)
697 * Added SSL_MODE_AUTO_RETRY to smooth things for blocking sockets
698 * Added a sock_shutdown() method to the Connection type
699 * I don't understand why, but I can't use Py_InitModule() to create
700 submodules in Python 2.0, the interpreter segfaults on the cleanup
701 process when I do. I added a conditional compile on the version
702 number, falling back to my own routine. It would of course be nice to
703 investigate what is happening, but I don't have the time to do so
704 * Do INCREF on the type objects before inserting them in the
705 dictionary, so they will never reach refcount 0 (they are, after all,
706 statically allocated)
707
7082001-07-30 Martin Sjögren <martin@strakt.com>
709
710 * Version 0.2
711 * Lots of tweaking and comments in the code
712 * Now uses distutils instead of the stupid Setup file
713 * Hacked doc/tools/mkhowto, html generation should now work
714
7152001-07-16 Martin Sjögren <martin@strakt.com>
716
717 * Initial release (0.1, don't expect much from this one :-)
718