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