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