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