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