Fix major cockup with short keys in CAST-128.
[openssl.git] / CHANGES
1
2  OpenSSL CHANGES
3  _______________
4
5
6  Changes between 0.9.1c and 0.9.2
7
8   *) CAST-128 was incorrectly implemented for short keys. The C version has
9      been fixed, but is untested. The assembler versions are also fixed, but
10      new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
11      to regenerate it if needed.
12      [Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
13       Hagino <itojun@kame.net>]
14
15   *) File was opened incorrectly in randfile.c.
16      [Ulf Möller <ulf@fitug.de>]
17
18   *) Beginning of support for GeneralizedTime. d2i, i2d, check and print
19      functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or
20      GeneralizedTime. ASN1_TIME is the proper type used in certificates et
21      al: it's just almost always a UTCTime. Note this patch adds new error
22      codes so do a "make errors" if there are problems.
23      [Steve Henson]
24
25   *) Correct Linux 1 recognition in config.
26      [Ulf Möller <ulf@fitug.de>]
27
28   *) Remove pointless MD5 hash when using DSA keys in ca.
29      [Anonymous <nobody@replay.com>]
30
31   *) Generate an error if given an empty string as a cert directory. Also
32      generate an error if handed NULL (previously returned 0 to indicate an
33      error, but didn't set one).
34      [Ben Laurie, reported by Anonymous <nobody@replay.com>]
35
36   *) Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
37      [Ben Laurie]
38
39   *) Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct
40      parameters. This was causing a warning which killed off the Win32 compile.
41      [Steve Henson]
42
43   *) Remove C++ style comments from crypto/bn/bn_local.h.
44      [Neil Costigan <neil.costigan@celocom.com>]
45
46   *) The function OBJ_txt2nid was broken. It was supposed to return a nid
47      based on a text string, looking up short and long names and finally
48      "dot" format. The "dot" format stuff didn't work. Added new function
49      OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote 
50      OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the
51      OID is not part of the table.
52      [Steve Henson]
53
54   *) Add prototypes to X509 lookup/verify methods, fixing a bug in
55      X509_LOOKUP_by_alias().
56      [Ben Laurie]
57
58   *) Sort openssl functions by name.
59      [Ben Laurie]
60
61   *) Get the gendsa program working (hopefully) and add it to app list. Remove
62      encryption from sample DSA keys (in case anyone is interested the password
63      was "1234").
64      [Steve Henson]
65
66   *) Make _all_ *_free functions accept a NULL pointer.
67      [Frans Heymans <fheymans@isaserver.be>]
68
69   *) If a DH key is generated in s3_srvr.c, don't blow it by trying to use
70      NULL pointers.
71      [Anonymous <nobody@replay.com>]
72
73   *) s_server should send the CAfile as acceptable CAs, not its own cert.
74      [Bodo Moeller <3moeller@informatik.uni-hamburg.de>]
75
76   *) Don't blow it for numeric -newkey arguments to apps/req.
77      [Bodo Moeller <3moeller@informatik.uni-hamburg.de>]
78
79   *) Temp key "for export" tests were wrong in s3_srvr.c.
80      [Anonymous <nobody@replay.com>]
81
82   *) Add prototype for temp key callback functions
83      SSL_CTX_set_tmp_{rsa,dh}_callback().
84      [Ben Laurie]
85
86   *) Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
87      DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
88      [Steve Henson]
89
90   *) X509_name_add_entry() freed the wrong thing after an error.
91      [Arne Ansper <arne@ats.cyber.ee>]
92
93   *) rsa_eay.c would attempt to free a NULL context.
94      [Arne Ansper <arne@ats.cyber.ee>]
95
96   *) BIO_s_socket() had a broken should_retry() on Windoze.
97      [Arne Ansper <arne@ats.cyber.ee>]
98
99   *) BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH.
100      [Arne Ansper <arne@ats.cyber.ee>]
101
102   *) Make sure the already existing X509_STORE->depth variable is initialized
103      in X509_STORE_new(), but document the fact that this variable is still
104      unused in the certificate verification process.
105      [Ralf S. Engelschall]
106
107   *) Fix the various library and apps files to free up pkeys obtained from
108      X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions.
109      [Steve Henson]
110
111   *) Fix reference counting in X509_PUBKEY_get(). This makes
112      demos/maurice/example2.c work, amongst others, probably.
113      [Steve Henson and Ben Laurie]
114
115   *) First cut of a cleanup for apps/. First the `ssleay' program is now named
116      `openssl' and second, the shortcut symlinks for the `openssl <command>'
117      are no longer created. This way we have a single and consistent command
118      line interface `openssl <command>', similar to `cvs <command>'.
119      [Ralf S. Engelschall, Paul Sutton and Ben Laurie]
120
121   *) ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey
122      BIT STRING wrapper always have zero unused bits.
123      [Steve Henson]
124
125   *) Add CA.pl, perl version of CA.sh, add extended key usage OID.
126      [Steve Henson]
127
128   *) Make the top-level INSTALL documentation easier to understand.
129      [Paul Sutton]
130
131   *) Makefiles updated to exit if an error occurs in a sub-directory
132      make (including if user presses ^C) [Paul Sutton]
133
134   *) Make Montgomery context stuff explicit in RSA data structure.
135      [Ben Laurie]
136
137   *) Fix build order of pem and err to allow for generated pem.h.
138      [Ben Laurie]
139
140   *) Fix renumbering bug in X509_NAME_delete_entry().
141      [Ben Laurie]
142
143   *) Enhanced the err-ins.pl script so it makes the error library number 
144      global and can add a library name. This is needed for external ASN1 and
145      other error libraries.
146      [Steve Henson]
147
148   *) Fixed sk_insert which never worked properly.
149      [Steve Henson]
150
151   *) Fix ASN1 macros so they can handle indefinite length construted 
152      EXPLICIT tags. Some non standard certificates use these: they can now
153      be read in.
154      [Steve Henson]
155
156   *) Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc)
157      into a single doc/ssleay.txt bundle. This way the information is still
158      preserved but no longer messes up this directory. Now it's new room for
159      the new set of documenation files.
160      [Ralf S. Engelschall]
161
162   *) SETs were incorrectly DER encoded. This was a major pain, because they
163      shared code with SEQUENCEs, which aren't coded the same. This means that
164      almost everything to do with SETs or SEQUENCEs has either changed name or
165      number of arguments.
166      [Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>]
167
168   *) Fix test data to work with the above.
169      [Ben Laurie]
170
171   *) Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but
172      was already fixed by Eric for 0.9.1 it seems.
173      [Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>]
174
175   *) Autodetect FreeBSD3.
176      [Ben Laurie]
177
178   *) Fix various bugs in Configure. This affects the following platforms:
179      nextstep
180      ncr-scde
181      unixware-2.0
182      unixware-2.0-pentium
183      sco5-cc.
184      [Ben Laurie]
185
186   *) Eliminate generated files from CVS. Reorder tests to regenerate files
187      before they are needed.
188      [Ben Laurie]
189
190   *) Generate Makefile.ssl from Makefile.org (to keep CVS happy).
191      [Ben Laurie]
192
193  Changes between 0.9.1b and 0.9.1c
194
195   *) Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and 
196      changed SSLeay to OpenSSL in version strings.
197      [Ralf S. Engelschall]
198   
199   *) Some fixups to the top-level documents.
200      [Paul Sutton]
201
202   *) Fixed the nasty bug where rsaref.h was not found under compile-time
203      because the symlink to include/ was missing.
204      [Ralf S. Engelschall]
205
206   *) Incorporated the popular no-RSA/DSA-only patches 
207      which allow to compile a RSA-free SSLeay.
208      [Andrew Cooke / Interrader Ldt., Ralf S. Engelschall]
209
210   *) Fixed nasty rehash problem under `make -f Makefile.ssl links'
211      when "ssleay" is still not found.
212      [Ralf S. Engelschall]
213
214   *) Added more platforms to Configure: Cray T3E, HPUX 11, 
215      [Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>]
216
217   *) Updated the README file.
218      [Ralf S. Engelschall]
219
220   *) Added various .cvsignore files in the CVS repository subdirs
221      to make a "cvs update" really silent.
222      [Ralf S. Engelschall]
223
224   *) Recompiled the error-definition header files and added
225      missing symbols to the Win32 linker tables.
226      [Ralf S. Engelschall]
227
228   *) Cleaned up the top-level documents;
229      o new files: CHANGES and LICENSE
230      o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay 
231      o merged COPYRIGHT into LICENSE
232      o removed obsolete TODO file
233      o renamed MICROSOFT to INSTALL.W32
234      [Ralf S. Engelschall]
235
236   *) Removed dummy files from the 0.9.1b source tree: 
237      crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi
238      crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f
239      crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f
240      crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f
241      util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f
242      [Ralf S. Engelschall]
243
244   *) Added various platform portability fixes.
245      [Mark J. Cox]
246
247   *) The Genesis of the OpenSSL rpject:
248      We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A.
249      Young and Tim J. Hudson created while they were working for C2Net until
250      summer 1998.
251      [The OpenSSL Project]
252  
253  Changes between 0.9.0b and 0.9.1b
254
255   *) Updated a few CA certificates under certs/
256      [Eric A. Young]
257
258   *) Changed some BIGNUM api stuff.
259      [Eric A. Young]
260
261   *) Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD, 
262      DGUX x86, Linux Alpha, etc.
263      [Eric A. Young]
264
265   *) New COMP library [crypto/comp/] for SSL Record Layer Compression: 
266      RLE (dummy implemented) and ZLIB (really implemented when ZLIB is
267      available).
268      [Eric A. Young]
269
270   *) Add -strparse option to asn1pars program which parses nested 
271      binary structures 
272      [Dr Stephen Henson <shenson@bigfoot.com>]
273
274   *) Added "oid_file" to ssleay.cnf for "ca" and "req" programs.
275      [Eric A. Young]
276
277   *) DSA fix for "ca" program.
278      [Eric A. Young]
279
280   *) Added "-genkey" option to "dsaparam" program.
281      [Eric A. Young]
282
283   *) Added RIPE MD160 (rmd160) message digest.
284      [Eric A. Young]
285
286   *) Added -a (all) option to "ssleay version" command.
287      [Eric A. Young]
288
289   *) Added PLATFORM define which is the id given to Configure.
290      [Eric A. Young]
291
292   *) Added MemCheck_XXXX functions to crypto/mem.c for memory checking.
293      [Eric A. Young]
294
295   *) Extended the ASN.1 parser routines.
296      [Eric A. Young]
297
298   *) Extended BIO routines to support REUSEADDR, seek, tell, etc.
299      [Eric A. Young]
300
301   *) Added a BN_CTX to the BN library.
302      [Eric A. Young]
303
304   *) Fixed the weak key values in DES library
305      [Eric A. Young]
306
307   *) Changed API in EVP library for cipher aliases.
308      [Eric A. Young]
309
310   *) Added support for RC2/64bit cipher.
311      [Eric A. Young]
312
313   *) Converted the lhash library to the crypto/mem.c functions.
314      [Eric A. Young]
315
316   *) Added more recognized ASN.1 object ids.
317      [Eric A. Young]
318
319   *) Added more RSA padding checks for SSL/TLS.
320      [Eric A. Young]
321
322   *) Added BIO proxy/filter functionality.
323      [Eric A. Young]
324
325   *) Added extra_certs to SSL_CTX which can be used
326      send extra CA certificates to the client in the CA cert chain sending
327      process. It can be configured with SSL_CTX_add_extra_chain_cert().
328      [Eric A. Young]
329
330   *) Now Fortezza is denied in the authentication phase because
331      this is key exchange mechanism is not supported by SSLeay at all.
332      [Eric A. Young]
333
334   *) Additional PKCS1 checks.
335      [Eric A. Young]
336
337   *) Support the string "TLSv1" for all TLS v1 ciphers.
338      [Eric A. Young]
339
340   *) Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the
341      ex_data index of the SSL context in the X509_STORE_CTX ex_data.
342      [Eric A. Young]
343
344   *) Fixed a few memory leaks.
345      [Eric A. Young]
346
347   *) Fixed various code and comment typos.
348      [Eric A. Young]
349
350   *) A minor bug in ssl/s3_clnt.c where there would always be 4 0 
351      bytes sent in the client random.
352      [Edward Bishop <ebishop@spyglass.com>]
353