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