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