More extension code. Incomplete support for subject and issuer alt
[openssl.git] / CHANGES
1
2  OpenSSL CHANGES
3  _______________
4
5
6  Changes between 0.9.1c and 0.9.2
7
8   *) More extension code. Incomplete support for subject and issuer alt
9      name, issuer and authority key id. Change the i2v function parameters
10      and add an extra 'crl' parameter in the X509V3_CTX structure: guess
11      what that's for :-) Fix to ASN1 macro which messed up
12      IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
13      [Steve Henson]
14
15   *) Preliminary support for ENUMERATED type. This is largely copied from the
16      INTEGER code.
17      [Steve Henson]
18
19   *) Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
20      [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
21
22   *) Make sure `make rehash' target really finds the `openssl' program.
23      [Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>]
24
25   *) Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
26      like to hear about it if this slows down other processors.
27      [Ben Laurie]
28
29   *) Add CygWin32 platform information to Configure script.
30      [Alan Batie <batie@aahz.jf.intel.com>]
31
32   *) Fixed ms/32all.bat script: `no_asm' -> `no-asm'
33      [Rainer W. Gerling <gerling@mpg-gv.mpg.de>]
34   
35   *) New program nseq to manipulate netscape certificate sequences
36      [Steve Henson]
37
38   *) Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a
39      few typos.
40      [Steve Henson]
41
42   *) Fixes to BN code.  Previously the default was to define BN_RECURSION
43      but the BN code had some problems that would cause failures when
44      doing certificate verification and some other functions.
45      [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
46
47   *) Add ASN1 and PEM code to support netscape certificate sequences.
48      [Steve Henson]
49
50   *) Add ASN1 and PEM code to support netscape certificate sequences.
51      [Steve Henson]
52
53   *) Add several PKIX and private extended key usage OIDs.
54      [Steve Henson]
55
56   *) Modify the 'ca' program to handle the new extension code. Modify
57      openssl.cnf for new extension format, add comments.
58      [Steve Henson]
59
60   *) More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req'
61      and add a sample to openssl.cnf so req -x509 now adds appropriate
62      CA extensions.
63      [Steve Henson]
64
65   *) Continued X509 V3 changes. Add to other makefiles, integrate with the
66      error code, add initial support to X509_print() and x509 application.
67      [Steve Henson]
68
69   *) Takes a deep breath and start addding X509 V3 extension support code. Add
70      files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this
71      stuff is currently isolated and isn't even compiled yet.
72      [Steve Henson]
73
74   *) Continuing patches for GeneralizedTime. Fix up certificate and CRL
75      ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print.
76      Removed the versions check from X509 routines when loading extensions:
77      this allows certain broken certificates that don't set the version
78      properly to be processed.
79      [Steve Henson]
80
81   *) Deal with irritating shit to do with dependencies, in YAAHW (Yet Another
82      Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which
83      can still be regenerated with "make depend".
84      [Ben Laurie]
85
86   *) Spelling mistake in C version of CAST-128.
87      [Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>]
88
89   *) Changes to the error generation code. The perl script err-code.pl 
90      now reads in the old error codes and retains the old numbers, only
91      adding new ones if necessary. It also only changes the .err files if new
92      codes are added. The makefiles have been modified to only insert errors
93      when needed (to avoid needlessly modifying header files). This is done
94      by only inserting errors if the .err file is newer than the auto generated
95      C file. To rebuild all the error codes from scratch (the old behaviour)
96      either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl
97      or delete all the .err files.
98      [Steve Henson]
99
100   *) CAST-128 was incorrectly implemented for short keys. The C version has
101      been fixed, but is untested. The assembler versions are also fixed, but
102      new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
103      to regenerate it if needed.
104      [Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
105       Hagino <itojun@kame.net>]
106
107   *) File was opened incorrectly in randfile.c.
108      [Ulf Möller <ulf@fitug.de>]
109
110   *) Beginning of support for GeneralizedTime. d2i, i2d, check and print
111      functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or
112      GeneralizedTime. ASN1_TIME is the proper type used in certificates et
113      al: it's just almost always a UTCTime. Note this patch adds new error
114      codes so do a "make errors" if there are problems.
115      [Steve Henson]
116
117   *) Correct Linux 1 recognition in config.
118      [Ulf Möller <ulf@fitug.de>]
119
120   *) Remove pointless MD5 hash when using DSA keys in ca.
121      [Anonymous <nobody@replay.com>]
122
123   *) Generate an error if given an empty string as a cert directory. Also
124      generate an error if handed NULL (previously returned 0 to indicate an
125      error, but didn't set one).
126      [Ben Laurie, reported by Anonymous <nobody@replay.com>]
127
128   *) Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
129      [Ben Laurie]
130
131   *) Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct
132      parameters. This was causing a warning which killed off the Win32 compile.
133      [Steve Henson]
134
135   *) Remove C++ style comments from crypto/bn/bn_local.h.
136      [Neil Costigan <neil.costigan@celocom.com>]
137
138   *) The function OBJ_txt2nid was broken. It was supposed to return a nid
139      based on a text string, looking up short and long names and finally
140      "dot" format. The "dot" format stuff didn't work. Added new function
141      OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote 
142      OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the
143      OID is not part of the table.
144      [Steve Henson]
145
146   *) Add prototypes to X509 lookup/verify methods, fixing a bug in
147      X509_LOOKUP_by_alias().
148      [Ben Laurie]
149
150   *) Sort openssl functions by name.
151      [Ben Laurie]
152
153   *) Get the gendsa program working (hopefully) and add it to app list. Remove
154      encryption from sample DSA keys (in case anyone is interested the password
155      was "1234").
156      [Steve Henson]
157
158   *) Make _all_ *_free functions accept a NULL pointer.
159      [Frans Heymans <fheymans@isaserver.be>]
160
161   *) If a DH key is generated in s3_srvr.c, don't blow it by trying to use
162      NULL pointers.
163      [Anonymous <nobody@replay.com>]
164
165   *) s_server should send the CAfile as acceptable CAs, not its own cert.
166      [Bodo Moeller <3moeller@informatik.uni-hamburg.de>]
167
168   *) Don't blow it for numeric -newkey arguments to apps/req.
169      [Bodo Moeller <3moeller@informatik.uni-hamburg.de>]
170
171   *) Temp key "for export" tests were wrong in s3_srvr.c.
172      [Anonymous <nobody@replay.com>]
173
174   *) Add prototype for temp key callback functions
175      SSL_CTX_set_tmp_{rsa,dh}_callback().
176      [Ben Laurie]
177
178   *) Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
179      DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
180      [Steve Henson]
181
182   *) X509_name_add_entry() freed the wrong thing after an error.
183      [Arne Ansper <arne@ats.cyber.ee>]
184
185   *) rsa_eay.c would attempt to free a NULL context.
186      [Arne Ansper <arne@ats.cyber.ee>]
187
188   *) BIO_s_socket() had a broken should_retry() on Windoze.
189      [Arne Ansper <arne@ats.cyber.ee>]
190
191   *) BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH.
192      [Arne Ansper <arne@ats.cyber.ee>]
193
194   *) Make sure the already existing X509_STORE->depth variable is initialized
195      in X509_STORE_new(), but document the fact that this variable is still
196      unused in the certificate verification process.
197      [Ralf S. Engelschall]
198
199   *) Fix the various library and apps files to free up pkeys obtained from
200      X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions.
201      [Steve Henson]
202
203   *) Fix reference counting in X509_PUBKEY_get(). This makes
204      demos/maurice/example2.c work, amongst others, probably.
205      [Steve Henson and Ben Laurie]
206
207   *) First cut of a cleanup for apps/. First the `ssleay' program is now named
208      `openssl' and second, the shortcut symlinks for the `openssl <command>'
209      are no longer created. This way we have a single and consistent command
210      line interface `openssl <command>', similar to `cvs <command>'.
211      [Ralf S. Engelschall, Paul Sutton and Ben Laurie]
212
213   *) ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey
214      BIT STRING wrapper always have zero unused bits.
215      [Steve Henson]
216
217   *) Add CA.pl, perl version of CA.sh, add extended key usage OID.
218      [Steve Henson]
219
220   *) Make the top-level INSTALL documentation easier to understand.
221      [Paul Sutton]
222
223   *) Makefiles updated to exit if an error occurs in a sub-directory
224      make (including if user presses ^C) [Paul Sutton]
225
226   *) Make Montgomery context stuff explicit in RSA data structure.
227      [Ben Laurie]
228
229   *) Fix build order of pem and err to allow for generated pem.h.
230      [Ben Laurie]
231
232   *) Fix renumbering bug in X509_NAME_delete_entry().
233      [Ben Laurie]
234
235   *) Enhanced the err-ins.pl script so it makes the error library number 
236      global and can add a library name. This is needed for external ASN1 and
237      other error libraries.
238      [Steve Henson]
239
240   *) Fixed sk_insert which never worked properly.
241      [Steve Henson]
242
243   *) Fix ASN1 macros so they can handle indefinite length construted 
244      EXPLICIT tags. Some non standard certificates use these: they can now
245      be read in.
246      [Steve Henson]
247
248   *) Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc)
249      into a single doc/ssleay.txt bundle. This way the information is still
250      preserved but no longer messes up this directory. Now it's new room for
251      the new set of documenation files.
252      [Ralf S. Engelschall]
253
254   *) SETs were incorrectly DER encoded. This was a major pain, because they
255      shared code with SEQUENCEs, which aren't coded the same. This means that
256      almost everything to do with SETs or SEQUENCEs has either changed name or
257      number of arguments.
258      [Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>]
259
260   *) Fix test data to work with the above.
261      [Ben Laurie]
262
263   *) Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but
264      was already fixed by Eric for 0.9.1 it seems.
265      [Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>]
266
267   *) Autodetect FreeBSD3.
268      [Ben Laurie]
269
270   *) Fix various bugs in Configure. This affects the following platforms:
271      nextstep
272      ncr-scde
273      unixware-2.0
274      unixware-2.0-pentium
275      sco5-cc.
276      [Ben Laurie]
277
278   *) Eliminate generated files from CVS. Reorder tests to regenerate files
279      before they are needed.
280      [Ben Laurie]
281
282   *) Generate Makefile.ssl from Makefile.org (to keep CVS happy).
283      [Ben Laurie]
284
285  Changes between 0.9.1b and 0.9.1c
286
287   *) Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and 
288      changed SSLeay to OpenSSL in version strings.
289      [Ralf S. Engelschall]
290   
291   *) Some fixups to the top-level documents.
292      [Paul Sutton]
293
294   *) Fixed the nasty bug where rsaref.h was not found under compile-time
295      because the symlink to include/ was missing.
296      [Ralf S. Engelschall]
297
298   *) Incorporated the popular no-RSA/DSA-only patches 
299      which allow to compile a RSA-free SSLeay.
300      [Andrew Cooke / Interrader Ldt., Ralf S. Engelschall]
301
302   *) Fixed nasty rehash problem under `make -f Makefile.ssl links'
303      when "ssleay" is still not found.
304      [Ralf S. Engelschall]
305
306   *) Added more platforms to Configure: Cray T3E, HPUX 11, 
307      [Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>]
308
309   *) Updated the README file.
310      [Ralf S. Engelschall]
311
312   *) Added various .cvsignore files in the CVS repository subdirs
313      to make a "cvs update" really silent.
314      [Ralf S. Engelschall]
315
316   *) Recompiled the error-definition header files and added
317      missing symbols to the Win32 linker tables.
318      [Ralf S. Engelschall]
319
320   *) Cleaned up the top-level documents;
321      o new files: CHANGES and LICENSE
322      o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay 
323      o merged COPYRIGHT into LICENSE
324      o removed obsolete TODO file
325      o renamed MICROSOFT to INSTALL.W32
326      [Ralf S. Engelschall]
327
328   *) Removed dummy files from the 0.9.1b source tree: 
329      crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi
330      crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f
331      crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f
332      crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f
333      util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f
334      [Ralf S. Engelschall]
335
336   *) Added various platform portability fixes.
337      [Mark J. Cox]
338
339   *) The Genesis of the OpenSSL rpject:
340      We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A.
341      Young and Tim J. Hudson created while they were working for C2Net until
342      summer 1998.
343      [The OpenSSL Project]
344  
345  Changes between 0.9.0b and 0.9.1b
346
347   *) Updated a few CA certificates under certs/
348      [Eric A. Young]
349
350   *) Changed some BIGNUM api stuff.
351      [Eric A. Young]
352
353   *) Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD, 
354      DGUX x86, Linux Alpha, etc.
355      [Eric A. Young]
356
357   *) New COMP library [crypto/comp/] for SSL Record Layer Compression: 
358      RLE (dummy implemented) and ZLIB (really implemented when ZLIB is
359      available).
360      [Eric A. Young]
361
362   *) Add -strparse option to asn1pars program which parses nested 
363      binary structures 
364      [Dr Stephen Henson <shenson@bigfoot.com>]
365
366   *) Added "oid_file" to ssleay.cnf for "ca" and "req" programs.
367      [Eric A. Young]
368
369   *) DSA fix for "ca" program.
370      [Eric A. Young]
371
372   *) Added "-genkey" option to "dsaparam" program.
373      [Eric A. Young]
374
375   *) Added RIPE MD160 (rmd160) message digest.
376      [Eric A. Young]
377
378   *) Added -a (all) option to "ssleay version" command.
379      [Eric A. Young]
380
381   *) Added PLATFORM define which is the id given to Configure.
382      [Eric A. Young]
383
384   *) Added MemCheck_XXXX functions to crypto/mem.c for memory checking.
385      [Eric A. Young]
386
387   *) Extended the ASN.1 parser routines.
388      [Eric A. Young]
389
390   *) Extended BIO routines to support REUSEADDR, seek, tell, etc.
391      [Eric A. Young]
392
393   *) Added a BN_CTX to the BN library.
394      [Eric A. Young]
395
396   *) Fixed the weak key values in DES library
397      [Eric A. Young]
398
399   *) Changed API in EVP library for cipher aliases.
400      [Eric A. Young]
401
402   *) Added support for RC2/64bit cipher.
403      [Eric A. Young]
404
405   *) Converted the lhash library to the crypto/mem.c functions.
406      [Eric A. Young]
407
408   *) Added more recognized ASN.1 object ids.
409      [Eric A. Young]
410
411   *) Added more RSA padding checks for SSL/TLS.
412      [Eric A. Young]
413
414   *) Added BIO proxy/filter functionality.
415      [Eric A. Young]
416
417   *) Added extra_certs to SSL_CTX which can be used
418      send extra CA certificates to the client in the CA cert chain sending
419      process. It can be configured with SSL_CTX_add_extra_chain_cert().
420      [Eric A. Young]
421
422   *) Now Fortezza is denied in the authentication phase because
423      this is key exchange mechanism is not supported by SSLeay at all.
424      [Eric A. Young]
425
426   *) Additional PKCS1 checks.
427      [Eric A. Young]
428
429   *) Support the string "TLSv1" for all TLS v1 ciphers.
430      [Eric A. Young]
431
432   *) Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the
433      ex_data index of the SSL context in the X509_STORE_CTX ex_data.
434      [Eric A. Young]
435
436   *) Fixed a few memory leaks.
437      [Eric A. Young]
438
439   *) Fixed various code and comment typos.
440      [Eric A. Young]
441
442   *) A minor bug in ssl/s3_clnt.c where there would always be 4 0 
443      bytes sent in the client random.
444      [Edward Bishop <ebishop@spyglass.com>]
445