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