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