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