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