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