blob: 32067d8f95fca2e7297767568b6efe554c35cc64 [file] [log] [blame]
Jean-Paul Calderone71ff3682009-04-25 08:30:11 -040012009-04-25 Jean-Paul Calderone <exarkun@twistedmatrix.com>
2
3 * Release 0.9
4
Jean-Paul Calderoneb8a70732009-04-01 14:49:13 -040052009-04-01 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderoneec48cd52009-04-01 19:01:41 -04006 Samuele Pedroni <pedronis@openend.se>
7
8 * src/util.h: Delete the TLS key before trying to set a new value
9 for it in case the current thread identifier is a recycled one (if
10 it is recycled, the key won't be set because there is already a
11 value from the previous thread to have this identifier and to use
12 the pyOpenSSL API).
13
142009-04-01 Jean-Paul Calderone <exarkun@twistedmatrix.com>
Jean-Paul Calderoneb8a70732009-04-01 14:49:13 -040015
16 * src/crypto/crypto.c: Add FILETYPE_TEXT for dumping keys and
17 certificates and certificate signature requests to a text format.
18
Jean-Paul Calderonee7db4b42008-12-31 13:39:24 -0500192008-12-31 Jean-Paul Calderone <exarkun@twistedmatrix.com>
20
Jean-Paul Calderonef8c5fab2008-12-31 15:53:48 -050021 * src/crypto/x509ext.c, test/test_crypto.py: Add the get_short_name
22 method to X509Extension based on patch from Alex Stapleton.
23
242008-12-31 Jean-Paul Calderone <exarkun@twistedmatrix.com>
25
Jean-Paul Calderonee7db4b42008-12-31 13:39:24 -050026 * src/crypto/x509ext.c, test/test_crypto.py: Fix X509Extension so
27 that it is possible to instantiate extensions which use s2i or r2i
28 instead of v2i (an extremely obscure extension implementation
29 detail).
30
Jean-Paul Calderone24e2b0b2008-12-30 15:12:11 -0500312008-12-30 Jean-Paul Calderone <exarkun@twistedmatrix.com>
32
33 * MANIFEST.in, src/crypto/crypto.c, src/crypto/x509.c,
34 src/crypto/x509name.c, src/rand/rand.c, src/ssl/context.c: Changes
35 which eliminate compiler warnings but should not change any
36 behavior.
37
Jean-Paul Calderone8dd19b82008-12-28 20:41:16 -0500382008-12-28 Jean-Paul Calderone <exarkun@twistedmatrix.com>
39
Jean-Paul Calderone327d8f92008-12-28 21:55:56 -050040 * test/test_ssl.py, src/ssl/ssl.c: Expose DTLS-related constants,
41 OP_NO_QUERY_MTU, OP_COOKIE_EXCHANGE, and OP_NO_TICKET.
42
432008-12-28 Jean-Paul Calderone <exarkun@twistedmatrix.com>
44
Jean-Paul Calderoneaa9c7972008-09-07 21:27:49 -040045 * src/ssl/context.c: Add a capath parameter to
46 Context.load_verify_locations to allow Python code to specify
47 either or both arguments to the underlying
48 SSL_CTX_load_verify_locations API.
49 * src/ssl/context.c: Add Context.set_default_verify_paths, a wrapper
50 around SSL_CTX_set_default_verify_paths.
51
Jean-Paul Calderone5b000d72008-12-28 21:09:53 -0500522008-12-28 Jean-Paul Calderone <exarkun@twistedmatrix.com>
53
Jean-Paul Calderone8dd19b82008-12-28 20:41:16 -050054 * test/test_crypto.py, src/crypto/x509req.c: Added get_version and
55 set_version_methods to X509ReqType based on patch from Wouter van
56 Bommel. Resolves LP#274418.
57
Jean-Paul Calderonef7f0fb42008-10-19 11:55:13 -0400582008-09-22 Jean-Paul Calderone <exarkun@twistedmatrix.com>
59
60 * Release 0.8
61
Jean-Paul Calderone002bf462008-10-19 11:35:40 -0400622008-10-19 Jean-Paul Calderone <exarkun@twistedmatrix.com>
63
64 * tsafe.py: Revert the deprecation of the thread-safe Connection
65 wrapper. The Connection class should not segfault if used from
66 multiple threads now, but it generally cannot be relied on to
67 produce correct results if used without the thread-safe wrapper.
Jean-Paul Calderone1eeb29e2008-10-19 11:50:53 -040068 * doc/pyOpenSSL.tex: Correct the documentation for the set_passwd_cb
69 callback parameter so that it accurately describes the required
70 signature.
Jean-Paul Calderone002bf462008-10-19 11:35:40 -040071
Jean-Paul Calderonea319ca92008-09-22 08:45:40 -0400722008-09-22 Jean-Paul Calderone <exarkun@twistedmatrix.com>
73
Jean-Paul Calderoneb5fdbbf2008-09-22 09:04:09 -040074 * Release 0.8a1
75
Jean-Paul Calderoneb7d6db22008-09-21 18:57:56 -0400762008-09-21 Jean-Paul Calderone <exarkun@twistedmatrix.com>
77
78 * src/ssl/ssl.h, src/ssl/ssl.c: Add a thread-local storage key
Jean-Paul Calderone002bf462008-10-19 11:35:40 -040079 which will be used to store and retrieve PyThreadState pointers
80 whenever it is necessary to release or re-acquire the GIL.
Jean-Paul Calderoneb7d6db22008-09-21 18:57:56 -040081
82 * src/ssl/context.c: Change global_verify_callback so that it
Jean-Paul Calderone002bf462008-10-19 11:35:40 -040083 unconditionally manipulates the Python threadstate, rather than
84 checking the tstate field which is now always NULL.
Jean-Paul Calderoneb7d6db22008-09-21 18:57:56 -040085
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -0400862008-04-26 Jean-Paul Calderone <exarkun@twistedmatrix.com>
87
Jean-Paul Calderone5ef86512008-04-26 19:06:28 -040088 * src/ssl/context.c: Change global_passphrase_callback and
89 global_info_callback so that they acquire the GIL before
90 invoking any CPython APIs and do not release it until after they
91 are finished invoking all of them (based heavily on on patch
92 from Dan Williams).
Jean-Paul Calderoneaea5d902008-04-26 19:53:39 -040093 * src/ssl/crypto.c: Initialize OpenSSL thread support so that it
94 is valid to use OpenSSL APIs from more than one thread (based on
95 patch from Dan Williams).
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -040096 * test/test_crypto.py: Add tests for load_privatekey and
97 dump_privatekey when a passphrase or a passphrase callback is
98 supplied.
Jean-Paul Calderone5ef86512008-04-26 19:06:28 -040099 * test/test_ssl.py: Add tests for Context.set_passwd_cb and
100 Context.set_info_callback.
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -0400101
Jean-Paul Calderonee53ccf72008-04-11 11:40:39 -04001022008-04-11 Jean-Paul Calderone <exarkun@twistedmatrix.com>
103
104 * Release 0.7
105
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -04001062008-03-26 Jean-Paul Calderone <exarkun@twistedmatrix.com>
107
108 * src/crypto/x509name.c: Add X509Name.get_components
109
Jean-Paul Calderone9ab16c02008-03-25 15:22:47 -04001102008-03-25 Jean-Paul Calderone <exarkun@twistedmatrix.com>
111
112 * src/crypto/x509name.c: Add hash and der methods to X509Name.
Jean-Paul Calderonec8215432008-03-25 15:34:21 -0400113 * src/crypto/x509.c: Fix a bug in X509.get_notBefore and
114 X509.get_notAfter preventing UTCTIME format timestamps from
115 working.
Jean-Paul Calderone9ab16c02008-03-25 15:22:47 -0400116
Jean-Paul Calderone3de9f622008-03-12 14:12:19 -04001172008-03-12 Jean-Paul Calderone <exarkun@twistedmatrix.com>
118
119 * Fix coding problems in examples/. Remove keys and certificates
120 and add a note about how to generate new ones.
121
Jean-Paul Calderone525ef802008-03-09 20:39:42 -04001222008-03-09 Jean-Paul Calderone <exarkun@twistedmatrix.com>
123
124 * src/crypto/x509.c: Add getters and setters for the notBefore and
125 notAfter attributes of X509s.
Jean-Paul Calderoneac0d95f2008-03-10 00:00:42 -0400126 * src/crypto/pkey.h, src/crypto/pkey.c, src/crypto/x509req.c,
127 src/crypto/x509.c: Track the initialized and public/private state
128 of EVP_PKEY structures underlying the crypto_PKeyObj type and
129 reject X509Req signature operations on keys not suitable for the
130 task.
Jean-Paul Calderone525ef802008-03-09 20:39:42 -0400131
Jean-Paul Calderoneda92ccc2008-03-06 23:48:12 -05001322008-03-06 Jean-Paul Calderone <exarkun@twistedmatrix.com>
133
134 * src/crypto/x509name.c: Fix tp_compare so it only returns -1, 0, or
135 1. This eliminates a RuntimeWarning emitted by Python.
136 * src/crypto/x509req.c: Fix reference counting for X509Name returned
137 by X509Req.get_subject. This removes a segfault when the subject
138 name outlives the request object.
139 * src/crypto/x509.c: Change get_serial_number and set_serial_number
140 to accept Python longs.
141 * doc/pyOpenSSL.tex: A number of minor corrections.
142
Jean-Paul Calderone7df40db2008-03-03 15:12:42 -05001432008-03-03 Jean-Paul Calderone <exarkun@twistedmatrix.com>
144
145 * src/crypto/crypto.c: Expose X509_verify_cert_error_string. (patch
146 from Victor Stinner)
147
Jean-Paul Calderone12ea9a02008-02-22 12:24:39 -05001482008-02-22 Jean-Paul Calderone <exarkun@twistedmatrix.com>
149
150 * src/ssl/connection.c src/ssl/context.c src/ssl/ssl.c: Fix
151 compilation on Windows. (patch from Michael Schneider)
152
Jean-Paul Calderone72b8f0f2008-02-21 23:57:40 -05001532008-02-21 Jean-Paul Calderone <exarkun@twistedmatrix.com>
154
155 * src/ssl/connection.c: Expose SSL_get_shutdown and
156 SSL_set_shutdown. (patch from James Knight)
157 * src/ssl/ssl.c: Expose SSL_SENT_SHUTDOWN and SSL_RECEIVED_SHUTDOWN.
158 (patch from James Knight)
159
Jean-Paul Calderone779db6b2008-02-19 21:00:37 -05001602008-02-19 Jean-Paul Calderone <exarkun@twistedmatrix.com>
161
162 * src/ssl/context.c: Expose SSL_CTX_add_extra_chain_cert.
163 * src/crypto/x509name.c: Fix memory leaks in __getattr__ and
164 __setattr_ implementations.
Jean-Paul Calderone19555b92008-02-19 22:29:57 -0500165 * src/crypto/x509.c: Fix memory leak in X509.get_pubkey().
166 * leakcheck/: An attempt at a systematic approach to leak
167 elimination.
Jean-Paul Calderone779db6b2008-02-19 21:00:37 -0500168
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001692004-08-13 Martin Sjögren <msjogren@gmail.com>
170
171 * Released version 0.6.
172
1732004-08-11 Martin Sjögren <msjogren@gmail.com>
174
175 * doc/pyOpenSSL.tex: Updates to the docs.
176
1772004-08-10 Martin Sjögren <msjogren@gmail.com>
178
179 * src/crypto/x509.c: Add X509.add_extensions based on a patch
180 from Han S. Lee.
181 * src/ssl/ssl.c: Add more SSL_OP_ constants. Patch from Mihai
182 Ibanescu.
183
1842004-08-09 Martin Sjögren <msjogren@gmail.com>
185
186 * setup.py src/crypto/: Add support for Netscape SPKI extensions
187 based on a patch from Tollef Fog Heen.
188 * src/crypto/crypto.c: Add support for python passphrase callbacks
189 based on a patch from Robert Olson.
190
1912004-08-03 Martin Sjögren <msjogren@gmail.com>
192
193 * src/ssl/context.c: Applied patch from Frederic Peters to add
194 Context.use_certificate_chain_file.
195 * src/crypto/x509.c: Applid patch from Tollef Fog Heen to add
196 X509.subject_name_hash and X509.digest.
197
1982004-08-02 Martin Sjögren <msjogren@gmail.com>
199
200 * src/crypto/crypto.c src/ssl/ssl.c: Applied patch from Bastian
201 Kleineidam to fix full names of exceptions.
202
2032004-07-19 Martin Sjögren <msjogren@gmail.com>
204
205 * doc/pyOpenSSL.tex: Fix the errors regarding X509Name's field names.
Jean-Paul Calderone828c9cb2008-04-26 18:06:54 -0400206
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05002072004-07-18 Martin Sjögren <msjogren@gmail.com>
208
209 * examples/certgen.py: Fixed wrong attributes in doc string, thanks
210 Remy. (SFbug#913315)
211 * __init__.py, setup.py, version.py: Add __version__, as suggested by
212 Ronald Oussoren in SFbug#888729.
213 * examples/proxy.py: Fix typos, thanks Mihai Ibanescu. (SFpatch#895820)
214
2152003-01-09 Martin Sjögren <martin@strakt.com>
216
217 * Use cyclic GC protocol in SSL.Connection, SSL.Context, crypto.PKCS12
218 and crypto.X509Name.
219
2202002-12-02 Martin Sjögren <martin@strakt.com>
221
222 * tsafe.py: Add some missing methods.
223
2242002-10-06 Martin Sjögren <martin@strakt.com>
225
226 * __init__.py: Import tsafe too!
227
2282002-10-05 Martin Sjögren <martin@strakt.com>
229
230 * src/crypto/x509name.c: Use unicode strings instead of ordinary
231 strings in getattr/setattr. Note that plain ascii strings should
232 still work.
233
2342002-09-17 Martin Sjögren <martin@strakt.com>
235
236 * Released version 0.5.1.
237
2382002-09-09 Martin Sjögren <martin@strakt.com>
239
240 * setup.cfg: Fixed build requirements for rpms.
241
2422002-09-07 Martin Sjögren <martin@strakt.com>
243
244 * src/ssl/connection.c: Fix sendall() method. It segfaulted because
245 it was too generous about giving away the GIL.
246 * Added SecureXMLRPCServer example, contributed by Michal Wallace.
247
2482002-09-06 Martin Sjögren <martin@strakt.com>
249
250 * setup.cfg: Updated the build requirements.
251 * src/ssl/connection.c: Fix includes for AIX.
252
2532002-09-04 Anders Hammarquist <iko@strakt.com>
254
255 * Added type checks in all the other places where we expect
256 specific types of objects passed.
257
2582002-09-04 Martin Sjögren <martin@strakt.com>
259
260 * src/crypto/crypto.c: Added an explicit type check in the dump_*
261 functions, so that they won't die when e.g. None is passed in.
262
2632002-08-25 Martin Sjögren <martin@strakt.com>
264
265 * doc/pyOpenSSL.tex: Docs for PKCS12.
266
2672002-08-24 Martin Sjögren <martin@strakt.com>
268
269 * src/crypto: Added basic PKCS12 support, thanks to Mark Welch
270 <mark@collab.net>
271
2722002-08-16 Martin Sjögren <martin@strakt.com>
273
274 * D'oh! Fixes for python 1.5 and python 2.1.
275
2762002-08-15 Martin Sjögren <martin@strakt.com>
277
278 * Version 0.5. Yay!
279
2802002-07-25 Martin Sjögren <martin@strakt.com>
281
282 * src/ssl/context.c: Added set_options method.
283 * src/ssl/ssl.c: Added constants for Context.set_options method.
284
2852002-07-23 Martin Sjögren <martin@strakt.com>
286
287 * Updated docs
288 * src/ssl/connection.c: Changed the get_cipher_list method to actually
289 return a list! WARNING: This change makes the API incompatible with
290 earlier versions!
291
2922002-07-15 Martin Sjögren <martin@strakt.com>
293
294 * src/ssl/connection.[ch]: Removed the fileno method, it uses the
295 transport object's fileno instead.
296
2972002-07-09 Martin Sjögren <martin@strakt.com>
298
299 * src/crypto/x509.c src/crypto/x509name.c: Fixed segfault bug where
300 you used an X509Name after its X509 had been destroyed.
301 * src/crypto/crypto.[ch] src/crypto/x509req.c src/crypto/x509ext.[ch]:
302 Added X509 Extension support. Thanks to maas-Maarten Zeeman
303 <maas@awanim.com>
304 * src/crypto/pkey.c: Added bits() and type() methods.
305
3062002-07-08 Martin Sjögren <martin@strakt.com>
307
308 * src/ssl/connection.c: Moved the contents of setup_ssl into the
309 constructor, thereby fixing some segfault bugs :)
310 * src/ssl/connection.c: Added connect_ex and sendall methods.
311 * src/crypto/x509name.c: Cleaned up comparisons and NID lookup.
312 Thank you Maas-Maarten Zeeman <maas@awanim.com>
313 * src/rand/rand.c: Fix RAND_screen import.
314 * src/crypto/crypto.c src/crypto/pkcs7.[ch]: Added PKCS7 management,
315 courtesy of Maas-Maarten Zeeman <maas@awanim.com>
316 * src/crypto/x509req.c: Added verify method.
317
3182002-06-17 Martin Sjögren <martin@strakt.com>
319
320 * rpm/, setup.cfg: Added improved RPM-building stuff, thanks to
321 Mihai Ibanescu <misa@redhat.com>
322
3232002-06-14 Martin Sjögren <martin@strakt.com>
324
325 * examples/proxy.py: Example code for using OpenSSL through a proxy
326 contributed by Mihai Ibanescu <misa@redhat.com>
327 * Updated installation instruction and added them to the TeX manual.
328
3292002-06-13 Martin Sjögren <martin@strakt.com>
330
331 * src/ssl/context.c: Changed global_verify_callback so that it uses
332 PyObject_IsTrue instead of requring ints.
333 * Added pymemcompat.h to make the memory management uniform and
334 backwards-compatible.
335 * src/util.h: Added conditional definition of PyModule_AddObject and
336 PyModule_AddIntConstant
337 * src/ssl/connection.c: Socket methods are no longer explicitly
338 wrapped. fileno() is the only method the transport layer object HAS
339 to support, but if you want to use connect, accept or sock_shutdown,
340 then the transport layer object has to supply connect, accept
341 and shutdown respectively.
342
3432002-06-12 Martin Sjögren <martin@strakt.com>
344
345 * Changed comments to docstrings that are visible in Python.
346 * src/ssl/connection.c: Added set_connect_state and set_accept_state
347 methods. Thanks to Mark Welch <mark@collab.net> for this.
348
3492002-06-11 Martin Sjögren <martin@strakt.com>
350
351 * src/ssl/connection.c: accept and connect now use SSL_set_accept_state
352 and SSL_set_connect_state respectively, instead of SSL_accept and
353 SSL_connect.
354 * src/ssl/connection.c: Added want_read and want_write methods.
355
3562002-06-05 Martin Sjögren <martin@strakt.com>
357
358 * src/ssl/connection.c: Added error messages for windows. The code is
359 copied from Python's socketmodule.c. Ick.
360 * src/ssl/connection.c: Changed the parameters to the SysCallError. It
361 always has a tuple (number, string) now, even though the number
362 might not always be useful.
363
3642002-04-05 Martin Sjögren <md9ms@mdstud.chalmers.se>
365
366 * Worked more on the Debian packaging, hopefully the packages
367 are getting into the main Debian archive soon.
368
3692002-01-10 Martin Sjögren <martin@strakt.com>
370
371 * Worked some more on the Debian packaging, it's turning out real
372 nice.
373 * Changed format on this file, I'm going to try to be a bit more
374 verbose about my changes, and this format makes it easier.
375
3762002-01-08 Martin Sjögren <martin@strakt.com>
377
378 * Version 0.4.1
379 * Added some example code
380 * Added the thread safe Connection object in the 'tsafe' submodule
381 * New Debian packaging
382
3832001-08-09 Martin Sjögren <martin@strakt.com>
384
385 * Version 0.4
386 * Added a compare function for X509Name structures.
387 * Moved the submodules to separate .so files, with tiny C APIs so they
388 can communicate
389 * Skeletal OpenSSL/__init__.py
390 * Removed the err submodule, use crypto.Error and SSL.Error instead
391
3922001-08-06 Martin Sjögren <martin@strakt.com>
393
394 * Version 0.3
395 * Added more types for dealing with certificates (X509Store, X509Req,
396 PKey)
397 * Functionality to load private keys, certificates and certificate
398 requests from memory buffers, and store them too
399 * X509 and X509Name objects can now be modified as well, very neat when
400 creating certificates ;)
401 * Added SSL_MODE_AUTO_RETRY to smooth things for blocking sockets
402 * Added a sock_shutdown() method to the Connection type
403 * I don't understand why, but I can't use Py_InitModule() to create
404 submodules in Python 2.0, the interpreter segfaults on the cleanup
405 process when I do. I added a conditional compile on the version
406 number, falling back to my own routine. It would of course be nice to
407 investigate what is happening, but I don't have the time to do so
408 * Do INCREF on the type objects before inserting them in the
409 dictionary, so they will never reach refcount 0 (they are, after all,
410 statically allocated)
411
4122001-07-30 Martin Sjögren <martin@strakt.com>
413
414 * Version 0.2
415 * Lots of tweaking and comments in the code
416 * Now uses distutils instead of the stupid Setup file
417 * Hacked doc/tools/mkhowto, html generation should now work
418
4192001-07-16 Martin Sjögren <martin@strakt.com>
420
421 * Initial release (0.1, don't expect much from this one :-)
422