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