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