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