Beginnings of experimental support for NASM assembler. This is a free
[openssl.git] / CHANGES
1
2  OpenSSL CHANGES
3  _______________
4
5  Changes between 0.9.3a and 0.9.4
6
7   *) New function RSA_check_key and new openssl rsa option -check
8      for verifying the consistency of RSA keys.
9      [Ulf Moeller, Bodo Moeller]
10
11   *) Various changes to make Win32 compile work: 
12      1. Casts to avoid "loss of data" warnings in p5_crpt2.c
13      2. Change unsigned int to int in b_dump.c to avoid "signed/unsigned
14         comparison" warnings.
15      3. Add sk_<TYPE>_sort to DEF file generator and do make update.
16
17   *) Add a debugging option to PKCS#5 v2 key generation function: when
18      you #define DEBUG_PKCS5V2 passwords, salts, iteration counts and
19      derived keys are printed to stderr.
20      [Steve Henson]
21
22   *) Copy the flags in ASN1_STRING_dup().
23      [Roman E. Pavlov <pre@mo.msk.ru>]
24
25   *) The x509 application mishandled signing requests containing DSA
26      keys when the signing key was also DSA and the parameters didn't match.
27
28      It was supposed to omit the parameters when they matched the signing key:
29      the verifying software was then supposed to automatically use the CA's
30      parameters if they were absent from the end user certificate.
31
32      Omitting parameters is no longer recommended. The test was also
33      the wrong way round! This was probably due to unusual behaviour in
34      EVP_cmp_parameters() which returns 1 if the parameters match. 
35      This meant that parameters were omitted when they *didn't* match and
36      the certificate was useless. Certificates signed with 'ca' didn't have
37      this bug.
38      [Steve Henson, reported by Doug Erickson <Doug.Erickson@Part.NET>]
39
40   *) Memory leak checking had some problems.  The interface is as follows:
41      Applications can use
42          CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) aka MemCheck_start(),
43          CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) aka MemCheck_stop();
44      "off" is now the default.
45      The library internally uses
46          CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) aka MemCheck_off(),
47          CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) aka MemCheck_on()
48      to disable memory-checking temporarily.
49
50      Some inconsistent states that previously were possible (and were
51      even the default) are now avoided.
52      [Bodo Moeller]
53
54   *) Introduce "mode" for SSL structures (with defaults in SSL_CTX),
55      which largely parallels "options", but is for changing API behaviour,
56      whereas "options" are about protocol behaviour.
57      Initial "mode" flags (still experimental) are:
58
59      SSL_MODE_ENABLE_PARTIAL_WRITE   Allow SSL_write to report success when
60                                      a single record has been written.
61      SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER  Don't insist that SSL_write
62                                      retries use the same buffer location.
63                                      (But all of the contents must be
64                                      copied!)
65      [Bodo Moeller]
66
67   *) Bugfix: SSL_set_mode ignored its parameter, only SSL_CTX_set_mode
68      worked.
69
70   *) Fix problems with no-hmac etc.
71      [Ulf Möller, pointed out by Brian Wellington <bwelling@tislabs.com>]
72
73   *) New functions RSA_get_default_method(), RSA_set_method() and
74      RSA_get_method(). These allows replacement of RSA_METHODs without having
75      to mess around with the internals of an RSA structure.
76      [Steve Henson]
77
78   *) Fix memory leaks in DSA_do_sign and DSA_is_prime.
79      Also really enable memory leak checks in openssl.c and in some
80      test programs.
81      [Chad C. Mulligan, Bodo Moeller]
82
83   *) Fix a bug in d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() which can mess
84      up the length of negative integers. This has now been simplified to just
85      store the length when it is first determined and use it later, rather
86      than trying to keep track of where data is copied and updating it to
87      point to the end.
88      [Steve Henson, reported by Brien Wheeler
89       <bwheeler@authentica-security.com>]
90
91   *) Add a new function PKCS7_signatureVerify. This allows the verification
92      of a PKCS#7 signature but with the signing certificate passed to the
93      function itself. This contrasts with PKCS7_dataVerify which assumes the
94      certificate is present in the PKCS#7 structure. This isn't always the
95      case: certificates can be omitted from a PKCS#7 structure and be
96      distributed by "out of band" means (such as a certificate database).
97      [Steve Henson]
98
99   *) Complete the PEM_* macros with DECLARE_PEM versions to replace the
100      function prototypes in pem.h, also change util/mkdef.pl to add the
101      necessary function names. 
102      [Steve Henson]
103
104   *) mk1mf.pl (used by Windows builds) did not properly read the
105      options set by Configure in the top level Makefile, and Configure
106      was not even able to write more than one option correctly.
107      Fixed, now "no-idea no-rc5 -DCRYPTO_MDEBUG" etc. works as intended.
108      [Bodo Moeller]
109
110   *) New functions CONF_load_bio() and CONF_load_fp() to allow a config
111      file to be loaded from a BIO or FILE pointer. The BIO version will
112      for example allow memory BIOs to contain config info.
113      [Steve Henson]
114
115   *) New function "CRYPTO_num_locks" that returns CRYPTO_NUM_LOCKS.
116      Whoever hopes to achieve shared-library compatibility across versions
117      must use this, not the compile-time macro.
118      (Exercise 0.9.4: Which is the minimum library version required by
119      such programs?)
120      Note: All this applies only to multi-threaded programs, others don't
121      need locks.
122      [Bodo Moeller]
123
124   *) Add missing case to s3_clnt.c state machine -- one of the new SSL tests
125      through a BIO pair triggered the default case, i.e.
126      SSLerr(...,SSL_R_UNKNOWN_STATE).
127      [Bodo Moeller]
128
129   *) New "BIO pair" concept (crypto/bio/bss_bio.c) so that applications
130      can use the SSL library even if none of the specific BIOs is
131      appropriate.
132      [Bodo Moeller]
133
134   *) Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value
135      for the encoded length.
136      [Jeon KyoungHo <khjeon@sds.samsung.co.kr>]
137
138   *) Add initial documentation of the X509V3 functions.
139      [Steve Henson]
140
141   *) Add a new pair of functions PEM_write_PKCS8PrivateKey() and 
142      PEM_write_bio_PKCS8PrivateKey() that are equivalent to
143      PEM_write_PrivateKey() and PEM_write_bio_PrivateKey() but use the more
144      secure PKCS#8 private key format with a high iteration count.
145      [Steve Henson]
146
147   *) Fix determination of Perl interpreter: A perl or perl5
148      _directory_ in $PATH was also accepted as the interpreter.
149      [Ralf S. Engelschall]
150
151   *) Fix demos/sign/sign.c: well there wasn't anything strictly speaking
152      wrong with it but it was very old and did things like calling
153      PEM_ASN1_read() directly and used MD5 for the hash not to mention some
154      unusual formatting.
155      [Steve Henson]
156
157   *) Fix demos/selfsign.c: it used obsolete and deleted functions, changed
158      to use the new extension code.
159      [Steve Henson]
160
161   *) Implement the PEM_read/PEM_write functions in crypto/pem/pem_all.c
162      with macros. This should make it easier to change their form, add extra
163      arguments etc. Fix a few PEM prototypes which didn't have cipher as a
164      constant.
165      [Steve Henson]
166
167   *) Add to configuration table a new entry that can specify an alternative
168      name for unistd.h (for pre-POSIX systems); we need this for NeXTstep,
169      according to Mark Crispin <MRC@Panda.COM>.
170      [Bodo Moeller]
171
172 #if 0
173   *) DES CBC did not update the IV. Weird.
174      [Ben Laurie]
175 #else
176      des_cbc_encrypt does not update the IV, but des_ncbc_encrypt does.
177      Changing the behaviour of the former might break existing programs --
178      where IV updating is needed, des_ncbc_encrypt can be used.
179 #endif
180
181   *) When bntest is run from "make test" it drives bc to check its
182      calculations, as well as internally checking them. If an internal check
183      fails, it needs to cause bc to give a non-zero result or make test carries
184      on without noticing the failure. Fixed.
185      [Ben Laurie]
186
187   *) DES library cleanups.
188      [Ulf Möller]
189
190   *) Add support for PKCS#5 v2.0 PBE algorithms. This will permit PKCS#8 to be
191      used with any cipher unlike PKCS#5 v1.5 which can at most handle 64 bit
192      ciphers. NOTE: although the key derivation function has been verified
193      against some published test vectors it has not been extensively tested
194      yet. Added a -v2 "cipher" option to pkcs8 application to allow the use
195      of v2.0.
196      [Steve Henson]
197
198   *) Instead of "mkdir -p", which is not fully portable, use new
199      Perl script "util/mkdir-p.pl".
200      [Bodo Moeller]
201
202   *) Rewrite the way password based encryption (PBE) is handled. It used to
203      assume that the ASN1 AlgorithmIdentifier parameter was a PBEParameter
204      structure. This was true for the PKCS#5 v1.5 and PKCS#12 PBE algorithms
205      but doesn't apply to PKCS#5 v2.0 where it can be something else. Now
206      the 'parameter' field of the AlgorithmIdentifier is passed to the
207      underlying key generation function so it must do its own ASN1 parsing.
208      This has also changed the EVP_PBE_CipherInit() function which now has a
209      'parameter' argument instead of literal salt and iteration count values
210      and the function EVP_PBE_ALGOR_CipherInit() has been deleted.
211      [Steve Henson]
212
213   *) Support for PKCS#5 v1.5 compatible password based encryption algorithms
214      and PKCS#8 functionality. New 'pkcs8' application linked to openssl.
215      Needed to change the PEM_STRING_EVP_PKEY value which was just "PRIVATE
216      KEY" because this clashed with PKCS#8 unencrypted string. Since this
217      value was just used as a "magic string" and not used directly its
218      value doesn't matter.
219      [Steve Henson]
220
221   *) Introduce some semblance of const correctness to BN. Shame C doesn't
222      support mutable.
223      [Ben Laurie]
224
225   *) "linux-sparc64" configuration (ultrapenguin).
226      [Ray Miller <ray.miller@oucs.ox.ac.uk>]
227      "linux-sparc" configuration.
228      [Christian Forster <fo@hawo.stw.uni-erlangen.de>]
229
230   *) config now generates no-xxx options for missing ciphers.
231      [Ulf Möller]
232
233   *) Support the EBCDIC character set (work in progress).
234      File ebcdic.c not yet included because it has a different license.
235      [Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>]
236
237   *) Support BS2000/OSD-POSIX.
238      [Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>]
239
240   *) Make callbacks for key generation use void * instead of char *.
241      [Ben Laurie]
242
243   *) Make S/MIME samples compile (not yet tested).
244      [Ben Laurie]
245
246   *) Additional typesafe stacks.
247      [Ben Laurie]
248
249   *) New configuration variants "bsdi-elf-gcc" (BSD/OS 4.x).
250      [Bodo Moeller]
251
252
253  Changes between 0.9.3 and 0.9.3a  [29 May 1999]
254
255   *) New configuration variant "sco5-gcc".
256
257   *) Updated some demos.
258      [Sean O Riordain, Wade Scholine]
259
260   *) Add missing BIO_free at exit of pkcs12 application.
261      [Wu Zhigang]
262
263   *) Fix memory leak in conf.c.
264      [Steve Henson]
265
266   *) Updates for Win32 to assembler version of MD5.
267      [Steve Henson]
268
269   *) Set #! path to perl in apps/der_chop to where we found it
270      instead of using a fixed path.
271      [Bodo Moeller]
272
273   *) SHA library changes for irix64-mips4-cc.
274      [Andy Polyakov]
275
276   *) Improvements for VMS support.
277      [Richard Levitte]
278
279
280  Changes between 0.9.2b and 0.9.3  [24 May 1999]
281
282   *) Bignum library bug fix. IRIX 6 passes "make test" now!
283      This also avoids the problems with SC4.2 and unpatched SC5.  
284      [Andy Polyakov <appro@fy.chalmers.se>]
285
286   *) New functions sk_num, sk_value and sk_set to replace the previous macros.
287      These are required because of the typesafe stack would otherwise break 
288      existing code. If old code used a structure member which used to be STACK
289      and is now STACK_OF (for example cert in a PKCS7_SIGNED structure) with
290      sk_num or sk_value it would produce an error because the num, data members
291      are not present in STACK_OF. Now it just produces a warning. sk_set
292      replaces the old method of assigning a value to sk_value
293      (e.g. sk_value(x, i) = y) which the library used in a few cases. Any code
294      that does this will no longer work (and should use sk_set instead) but
295      this could be regarded as a "questionable" behaviour anyway.
296      [Steve Henson]
297
298   *) Fix most of the other PKCS#7 bugs. The "experimental" code can now
299      correctly handle encrypted S/MIME data.
300      [Steve Henson]
301
302   *) Change type of various DES function arguments from des_cblock
303      (which means, in function argument declarations, pointer to char)
304      to des_cblock * (meaning pointer to array with 8 char elements),
305      which allows the compiler to do more typechecking; it was like
306      that back in SSLeay, but with lots of ugly casts.
307
308      Introduce new type const_des_cblock.
309      [Bodo Moeller]
310
311   *) Reorganise the PKCS#7 library and get rid of some of the more obvious
312      problems: find RecipientInfo structure that matches recipient certificate
313      and initialise the ASN1 structures properly based on passed cipher.
314      [Steve Henson]
315
316   *) Belatedly make the BN tests actually check the results.
317      [Ben Laurie]
318
319   *) Fix the encoding and decoding of negative ASN1 INTEGERS and conversion
320      to and from BNs: it was completely broken. New compilation option
321      NEG_PUBKEY_BUG to allow for some broken certificates that encode public
322      key elements as negative integers.
323      [Steve Henson]
324
325   *) Reorganize and speed up MD5.
326      [Andy Polyakov <appro@fy.chalmers.se>]
327
328   *) VMS support.
329      [Richard Levitte <richard@levitte.org>]
330
331   *) New option -out to asn1parse to allow the parsed structure to be
332      output to a file. This is most useful when combined with the -strparse
333      option to examine the output of things like OCTET STRINGS.
334      [Steve Henson]
335
336   *) Make SSL library a little more fool-proof by not requiring any longer
337      that SSL_set_{accept,connect}_state be called before
338      SSL_{accept,connect} may be used (SSL_set_..._state is omitted
339      in many applications because usually everything *appeared* to work as
340      intended anyway -- now it really works as intended).
341      [Bodo Moeller]
342
343   *) Move openssl.cnf out of lib/.
344      [Ulf Möller]
345
346   *) Fix various things to let OpenSSL even pass ``egcc -pipe -O2 -Wall
347      -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
348      -Wmissing-declarations -Wnested-externs -Winline'' with EGCS 1.1.2+ 
349      [Ralf S. Engelschall]
350
351   *) Various fixes to the EVP and PKCS#7 code. It may now be able to
352      handle PKCS#7 enveloped data properly.
353      [Sebastian Akerman <sak@parallelconsulting.com>, modified by Steve]
354
355   *) Create a duplicate of the SSL_CTX's CERT in SSL_new instead of
356      copying pointers.  The cert_st handling is changed by this in
357      various ways (and thus what used to be known as ctx->default_cert
358      is now called ctx->cert, since we don't resort to s->ctx->[default_]cert
359      any longer when s->cert does not give us what we need).
360      ssl_cert_instantiate becomes obsolete by this change.
361      As soon as we've got the new code right (possibly it already is?),
362      we have solved a couple of bugs of the earlier code where s->cert
363      was used as if it could not have been shared with other SSL structures.
364
365      Note that using the SSL API in certain dirty ways now will result
366      in different behaviour than observed with earlier library versions:
367      Changing settings for an SSL_CTX *ctx after having done s = SSL_new(ctx)
368      does not influence s as it used to.
369      
370      In order to clean up things more thoroughly, inside SSL_SESSION
371      we don't use CERT any longer, but a new structure SESS_CERT
372      that holds per-session data (if available); currently, this is
373      the peer's certificate chain and, for clients, the server's certificate
374      and temporary key.  CERT holds only those values that can have
375      meaningful defaults in an SSL_CTX.
376      [Bodo Moeller]
377
378   *) New function X509V3_EXT_i2d() to create an X509_EXTENSION structure
379      from the internal representation. Various PKCS#7 fixes: remove some
380      evil casts and set the enc_dig_alg field properly based on the signing
381      key type.
382      [Steve Henson]
383
384   *) Allow PKCS#12 password to be set from the command line or the
385      environment. Let 'ca' get its config file name from the environment
386      variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req'
387      and 'x509').
388      [Steve Henson]
389
390   *) Allow certificate policies extension to use an IA5STRING for the
391      organization field. This is contrary to the PKIX definition but
392      VeriSign uses it and IE5 only recognises this form. Document 'x509'
393      extension option.
394      [Steve Henson]
395
396   *) Add PEDANTIC compiler flag to allow compilation with gcc -pedantic,
397      without disallowing inline assembler and the like for non-pedantic builds.
398      [Ben Laurie]
399
400   *) Support Borland C++ builder.
401      [Janez Jere <jj@void.si>, modified by Ulf Möller]
402
403   *) Support Mingw32.
404      [Ulf Möller]
405
406   *) SHA-1 cleanups and performance enhancements.
407      [Andy Polyakov <appro@fy.chalmers.se>]
408
409   *) Sparc v8plus assembler for the bignum library.
410      [Andy Polyakov <appro@fy.chalmers.se>]
411
412   *) Accept any -xxx and +xxx compiler options in Configure.
413      [Ulf Möller]
414
415   *) Update HPUX configuration.
416      [Anonymous]
417   
418   *) Add missing sk_<type>_unshift() function to safestack.h
419      [Ralf S. Engelschall]
420
421   *) New function SSL_CTX_use_certificate_chain_file that sets the
422      "extra_cert"s in addition to the certificate.  (This makes sense
423      only for "PEM" format files, as chains as a whole are not
424      DER-encoded.)
425      [Bodo Moeller]
426
427   *) Support verify_depth from the SSL API.
428      x509_vfy.c had what can be considered an off-by-one-error:
429      Its depth (which was not part of the external interface)
430      was actually counting the number of certificates in a chain;
431      now it really counts the depth.
432      [Bodo Moeller]
433
434   *) Bugfix in crypto/x509/x509_cmp.c: The SSLerr macro was used
435      instead of X509err, which often resulted in confusing error
436      messages since the error codes are not globally unique
437      (e.g. an alleged error in ssl3_accept when a certificate
438      didn't match the private key).
439
440   *) New function SSL_CTX_set_session_id_context that allows to set a default
441      value (so that you don't need SSL_set_session_id_context for each
442      connection using the SSL_CTX).
443      [Bodo Moeller]
444
445   *) OAEP decoding bug fix.
446      [Ulf Möller]
447
448   *) Support INSTALL_PREFIX for package builders, as proposed by
449      David Harris.
450      [Bodo Moeller]
451
452   *) New Configure options "threads" and "no-threads".  For systems
453      where the proper compiler options are known (currently Solaris
454      and Linux), "threads" is the default.
455      [Bodo Moeller]
456
457   *) New script util/mklink.pl as a faster substitute for util/mklink.sh.
458      [Bodo Moeller]
459
460   *) Install various scripts to $(OPENSSLDIR)/misc, not to
461      $(INSTALLTOP)/bin -- they shouldn't clutter directories
462      such as /usr/local/bin.
463      [Bodo Moeller]
464
465   *) "make linux-shared" to build shared libraries.
466      [Niels Poppe <niels@netbox.org>]
467
468   *) New Configure option no-<cipher> (rsa, idea, rc5, ...).
469      [Ulf Möller]
470
471   *) Add the PKCS#12 API documentation to openssl.txt. Preliminary support for
472      extension adding in x509 utility.
473      [Steve Henson]
474
475   *) Remove NOPROTO sections and error code comments.
476      [Ulf Möller]
477
478   *) Partial rewrite of the DEF file generator to now parse the ANSI
479      prototypes.
480      [Steve Henson]
481
482   *) New Configure options --prefix=DIR and --openssldir=DIR.
483      [Ulf Möller]
484
485   *) Complete rewrite of the error code script(s). It is all now handled
486      by one script at the top level which handles error code gathering,
487      header rewriting and C source file generation. It should be much better
488      than the old method: it now uses a modified version of Ulf's parser to
489      read the ANSI prototypes in all header files (thus the old K&R definitions
490      aren't needed for error creation any more) and do a better job of
491      translating function codes into names. The old 'ASN1 error code imbedded
492      in a comment' is no longer necessary and it doesn't use .err files which
493      have now been deleted. Also the error code call doesn't have to appear all
494      on one line (which resulted in some large lines...).
495      [Steve Henson]
496
497   *) Change #include filenames from <foo.h> to <openssl/foo.h>.
498      [Bodo Moeller]
499
500   *) Change behaviour of ssl2_read when facing length-0 packets: Don't return
501      0 (which usually indicates a closed connection), but continue reading.
502      [Bodo Moeller]
503
504   *) Fix some race conditions.
505      [Bodo Moeller]
506
507   *) Add support for CRL distribution points extension. Add Certificate
508      Policies and CRL distribution points documentation.
509      [Steve Henson]
510
511   *) Move the autogenerated header file parts to crypto/opensslconf.h.
512      [Ulf Möller]
513
514   *) Fix new 56-bit DES export ciphersuites: they were using 7 bytes instead of
515      8 of keying material. Merlin has also confirmed interop with this fix
516      between OpenSSL and Baltimore C/SSL 2.0 and J/SSL 2.0.
517      [Merlin Hughes <merlin@baltimore.ie>]
518
519   *) Fix lots of warnings.
520      [Richard Levitte <levitte@stacken.kth.se>]
521  
522   *) In add_cert_dir() in crypto/x509/by_dir.c, break out of the loop if
523      the directory spec didn't end with a LIST_SEPARATOR_CHAR.
524      [Richard Levitte <levitte@stacken.kth.se>]
525  
526   *) Fix problems with sizeof(long) == 8.
527      [Andy Polyakov <appro@fy.chalmers.se>]
528
529   *) Change functions to ANSI C.
530      [Ulf Möller]
531
532   *) Fix typos in error codes.
533      [Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>, Ulf Möller]
534
535   *) Remove defunct assembler files from Configure.
536      [Ulf Möller]
537
538   *) SPARC v8 assembler BIGNUM implementation.
539      [Andy Polyakov <appro@fy.chalmers.se>]
540
541   *) Support for Certificate Policies extension: both print and set.
542      Various additions to support the r2i method this uses.
543      [Steve Henson]
544
545   *) A lot of constification, and fix a bug in X509_NAME_oneline() that could
546      return a const string when you are expecting an allocated buffer.
547      [Ben Laurie]
548
549   *) Add support for ASN1 types UTF8String and VISIBLESTRING, also the CHOICE
550      types DirectoryString and DisplayText.
551      [Steve Henson]
552
553   *) Add code to allow r2i extensions to access the configuration database,
554      add an LHASH database driver and add several ctx helper functions.
555      [Steve Henson]
556
557   *) Fix an evil bug in bn_expand2() which caused various BN functions to
558      fail when they extended the size of a BIGNUM.
559      [Steve Henson]
560
561   *) Various utility functions to handle SXNet extension. Modify mkdef.pl to
562      support typesafe stack.
563      [Steve Henson]
564
565   *) Fix typo in SSL_[gs]et_options().
566      [Nils Frostberg <nils@medcom.se>]
567
568   *) Delete various functions and files that belonged to the (now obsolete)
569      old X509V3 handling code.
570      [Steve Henson]
571
572   *) New Configure option "rsaref".
573      [Ulf Möller]
574
575   *) Don't auto-generate pem.h.
576      [Bodo Moeller]
577
578   *) Introduce type-safe ASN.1 SETs.
579      [Ben Laurie]
580
581   *) Convert various additional casted stacks to type-safe STACK_OF() variants.
582      [Ben Laurie, Ralf S. Engelschall, Steve Henson]
583
584   *) Introduce type-safe STACKs. This will almost certainly break lots of code
585      that links with OpenSSL (well at least cause lots of warnings), but fear
586      not: the conversion is trivial, and it eliminates loads of evil casts. A
587      few STACKed things have been converted already. Feel free to convert more.
588      In the fullness of time, I'll do away with the STACK type altogether.
589      [Ben Laurie]
590
591   *) Add `openssl ca -revoke <certfile>' facility which revokes a certificate
592      specified in <certfile> by updating the entry in the index.txt file.
593      This way one no longer has to edit the index.txt file manually for
594      revoking a certificate. The -revoke option does the gory details now.
595      [Massimiliano Pala <madwolf@openca.org>, Ralf S. Engelschall]
596
597   *) Fix `openssl crl -noout -text' combination where `-noout' killed the
598      `-text' option at all and this way the `-noout -text' combination was
599      inconsistent in `openssl crl' with the friends in `openssl x509|rsa|dsa'.
600      [Ralf S. Engelschall]
601
602   *) Make sure a corresponding plain text error message exists for the
603      X509_V_ERR_CERT_REVOKED/23 error number which can occur when a
604      verify callback function determined that a certificate was revoked.
605      [Ralf S. Engelschall]
606
607   *) Bugfix: In test/testenc, don't test "openssl <cipher>" for
608      ciphers that were excluded, e.g. by -DNO_IDEA.  Also, test
609      all available cipers including rc5, which was forgotten until now.
610      In order to let the testing shell script know which algorithms
611      are available, a new (up to now undocumented) command
612      "openssl list-cipher-commands" is used.
613      [Bodo Moeller]
614
615   *) Bugfix: s_client occasionally would sleep in select() when
616      it should have checked SSL_pending() first.
617      [Bodo Moeller]
618
619   *) New functions DSA_do_sign and DSA_do_verify to provide access to
620      the raw DSA values prior to ASN.1 encoding.
621      [Ulf Möller]
622
623   *) Tweaks to Configure
624      [Niels Poppe <niels@netbox.org>]
625
626   *) Add support for PKCS#5 v2.0 ASN1 PBES2 structures. No other support,
627      yet...
628      [Steve Henson]
629
630   *) New variables $(RANLIB) and $(PERL) in the Makefiles.
631      [Ulf Möller]
632
633   *) New config option to avoid instructions that are illegal on the 80386.
634      The default code is faster, but requires at least a 486.
635      [Ulf Möller]
636   
637   *) Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and
638      SSL2_SERVER_VERSION (not used at all) macros, which are now the
639      same as SSL2_VERSION anyway.
640      [Bodo Moeller]
641
642   *) New "-showcerts" option for s_client.
643      [Bodo Moeller]
644
645   *) Still more PKCS#12 integration. Add pkcs12 application to openssl
646      application. Various cleanups and fixes.
647      [Steve Henson]
648
649   *) More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and
650      modify error routines to work internally. Add error codes and PBE init
651      to library startup routines.
652      [Steve Henson]
653
654   *) Further PKCS#12 integration. Added password based encryption, PKCS#8 and
655      packing functions to asn1 and evp. Changed function names and error
656      codes along the way.
657      [Steve Henson]
658
659   *) PKCS12 integration: and so it begins... First of several patches to
660      slowly integrate PKCS#12 functionality into OpenSSL. Add PKCS#12
661      objects to objects.h
662      [Steve Henson]
663
664   *) Add a new 'indent' option to some X509V3 extension code. Initial ASN1
665      and display support for Thawte strong extranet extension.
666      [Steve Henson]
667
668   *) Add LinuxPPC support.
669      [Jeff Dubrule <igor@pobox.org>]
670
671   *) Get rid of redundant BN file bn_mulw.c, and rename bn_div64 to
672      bn_div_words in alpha.s.
673      [Hannes Reinecke <H.Reinecke@hw.ac.uk> and Ben Laurie]
674
675   *) Make sure the RSA OAEP test is skipped under -DRSAref because
676      OAEP isn't supported when OpenSSL is built with RSAref.
677      [Ulf Moeller <ulf@fitug.de>]
678
679   *) Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h 
680      so they no longer are missing under -DNOPROTO. 
681      [Soren S. Jorvang <soren@t.dk>]
682
683
684  Changes between 0.9.1c and 0.9.2b  [22 Mar 1999]
685
686   *) Make SSL_get_peer_cert_chain() work in servers. Unfortunately, it still
687      doesn't work when the session is reused. Coming soon!
688      [Ben Laurie]
689
690   *) Fix a security hole, that allows sessions to be reused in the wrong
691      context thus bypassing client cert protection! All software that uses
692      client certs and session caches in multiple contexts NEEDS PATCHING to
693      allow session reuse! A fuller solution is in the works.
694      [Ben Laurie, problem pointed out by Holger Reif, Bodo Moeller (and ???)]
695
696   *) Some more source tree cleanups (removed obsolete files
697      crypto/bf/asm/bf586.pl, test/test.txt and crypto/sha/asm/f.s; changed
698      permission on "config" script to be executable) and a fix for the INSTALL
699      document.
700      [Ulf Moeller <ulf@fitug.de>]
701
702   *) Remove some legacy and erroneous uses of malloc, free instead of
703      Malloc, Free.
704      [Lennart Bang <lob@netstream.se>, with minor changes by Steve]
705
706   *) Make rsa_oaep_test return non-zero on error.
707      [Ulf Moeller <ulf@fitug.de>]
708
709   *) Add support for native Solaris shared libraries. Configure
710      solaris-sparc-sc4-pic, make, then run shlib/solaris-sc4.sh. It'd be nice
711      if someone would make that last step automatic.
712      [Matthias Loepfe <Matthias.Loepfe@AdNovum.CH>]
713
714   *) ctx_size was not built with the right compiler during "make links". Fixed.
715      [Ben Laurie]
716
717   *) Change the meaning of 'ALL' in the cipher list. It now means "everything
718      except NULL ciphers". This means the default cipher list will no longer
719      enable NULL ciphers. They need to be specifically enabled e.g. with
720      the string "DEFAULT:eNULL".
721      [Steve Henson]
722
723   *) Fix to RSA private encryption routines: if p < q then it would
724      occasionally produce an invalid result. This will only happen with
725      externally generated keys because OpenSSL (and SSLeay) ensure p > q.
726      [Steve Henson]
727
728   *) Be less restrictive and allow also `perl util/perlpath.pl
729      /path/to/bin/perl' in addition to `perl util/perlpath.pl /path/to/bin',
730      because this way one can also use an interpreter named `perl5' (which is
731      usually the name of Perl 5.xxx on platforms where an Perl 4.x is still
732      installed as `perl').
733      [Matthias Loepfe <Matthias.Loepfe@adnovum.ch>]
734
735   *) Let util/clean-depend.pl work also with older Perl 5.00x versions.
736      [Matthias Loepfe <Matthias.Loepfe@adnovum.ch>]
737
738   *) Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add
739      advapi32.lib to Win32 build and change the pem test comparision
740      to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the
741      suggestion). Fix misplaced ASNI prototypes and declarations in evp.h
742      and crypto/des/ede_cbcm_enc.c.
743      [Steve Henson]
744
745   *) DES quad checksum was broken on big-endian architectures. Fixed.
746      [Ben Laurie]
747
748   *) Comment out two functions in bio.h that aren't implemented. Fix up the
749      Win32 test batch file so it (might) work again. The Win32 test batch file
750      is horrible: I feel ill....
751      [Steve Henson]
752
753   *) Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected
754      in e_os.h. Audit of header files to check ANSI and non ANSI
755      sections: 10 functions were absent from non ANSI section and not exported
756      from Windows DLLs. Fixed up libeay.num for new functions.
757      [Steve Henson]
758
759   *) Make `openssl version' output lines consistent.
760      [Ralf S. Engelschall]
761
762   *) Fix Win32 symbol export lists for BIO functions: Added
763      BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data
764      to ms/libeay{16,32}.def.
765      [Ralf S. Engelschall]
766
767   *) Second round of fixing the OpenSSL perl/ stuff. It now at least compiled
768      fine under Unix and passes some trivial tests I've now added. But the
769      whole stuff is horribly incomplete, so a README.1ST with a disclaimer was
770      added to make sure no one expects that this stuff really works in the
771      OpenSSL 0.9.2 release.  Additionally I've started to clean the XS sources
772      up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and
773      openssl_bio.xs.
774      [Ralf S. Engelschall]
775
776   *) Fix the generation of two part addresses in perl.
777      [Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie]
778
779   *) Add config entry for Linux on MIPS.
780      [John Tobey <jtobey@channel1.com>]
781
782   *) Make links whenever Configure is run, unless we are on Windoze.
783      [Ben Laurie]
784
785   *) Permit extensions to be added to CRLs using crl_section in openssl.cnf.
786      Currently only issuerAltName and AuthorityKeyIdentifier make any sense
787      in CRLs.
788      [Steve Henson]
789
790   *) Add a useful kludge to allow package maintainers to specify compiler and
791      other platforms details on the command line without having to patch the
792      Configure script everytime: One now can use ``perl Configure
793      <id>:<details>'', i.e. platform ids are allowed to have details appended
794      to them (seperated by colons). This is treated as there would be a static
795      pre-configured entry in Configure's %table under key <id> with value
796      <details> and ``perl Configure <id>'' is called.  So, when you want to
797      perform a quick test-compile under FreeBSD 3.1 with pgcc and without
798      assembler stuff you can use ``perl Configure "FreeBSD-elf:pgcc:-O6:::"''
799      now, which overrides the FreeBSD-elf entry on-the-fly.
800      [Ralf S. Engelschall]
801
802   *) Disable new TLS1 ciphersuites by default: they aren't official yet.
803      [Ben Laurie]
804
805   *) Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified
806      on the `perl Configure ...' command line. This way one can compile
807      OpenSSL libraries with Position Independent Code (PIC) which is needed
808      for linking it into DSOs.
809      [Ralf S. Engelschall]
810
811   *) Remarkably, export ciphers were totally broken and no-one had noticed!
812      Fixed.
813      [Ben Laurie]
814
815   *) Cleaned up the LICENSE document: The official contact for any license
816      questions now is the OpenSSL core team under openssl-core@openssl.org.
817      And add a paragraph about the dual-license situation to make sure people
818      recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply
819      to the OpenSSL toolkit.
820      [Ralf S. Engelschall]
821
822   *) General source tree makefile cleanups: Made `making xxx in yyy...'
823      display consistent in the source tree and replaced `/bin/rm' by `rm'.
824      Additonally cleaned up the `make links' target: Remove unnecessary
825      semicolons, subsequent redundant removes, inline point.sh into mklink.sh
826      to speed processing and no longer clutter the display with confusing
827      stuff. Instead only the actually done links are displayed.
828      [Ralf S. Engelschall]
829
830   *) Permit null encryption ciphersuites, used for authentication only. It used
831      to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this.
832      It is now necessary to set SSL_FORBID_ENULL to prevent the use of null
833      encryption.
834      [Ben Laurie]
835
836   *) Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder
837      signed attributes when verifying signatures (this would break them), 
838      the detached data encoding was wrong and public keys obtained using
839      X509_get_pubkey() weren't freed.
840      [Steve Henson]
841
842   *) Add text documentation for the BUFFER functions. Also added a work around
843      to a Win95 console bug. This was triggered by the password read stuff: the
844      last character typed gets carried over to the next fread(). If you were 
845      generating a new cert request using 'req' for example then the last
846      character of the passphrase would be CR which would then enter the first
847      field as blank.
848      [Steve Henson]
849
850   *) Added the new `Includes OpenSSL Cryptography Software' button as
851      doc/openssl_button.{gif,html} which is similar in style to the old SSLeay
852      button and can be used by applications based on OpenSSL to show the
853      relationship to the OpenSSL project.  
854      [Ralf S. Engelschall]
855
856   *) Remove confusing variables in function signatures in files
857      ssl/ssl_lib.c and ssl/ssl.h.
858      [Lennart Bong <lob@kulthea.stacken.kth.se>]
859
860   *) Don't install bss_file.c under PREFIX/include/
861      [Lennart Bong <lob@kulthea.stacken.kth.se>]
862
863   *) Get the Win32 compile working again. Modify mkdef.pl so it can handle
864      functions that return function pointers and has support for NT specific
865      stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various
866      #ifdef WIN32 and WINNTs sprinkled about the place and some changes from
867      unsigned to signed types: this was killing the Win32 compile.
868      [Steve Henson]
869
870   *) Add new certificate file to stack functions,
871      SSL_add_dir_cert_subjects_to_stack() and
872      SSL_add_file_cert_subjects_to_stack().  These largely supplant
873      SSL_load_client_CA_file(), and can be used to add multiple certs easily
874      to a stack (usually this is then handed to SSL_CTX_set_client_CA_list()).
875      This means that Apache-SSL and similar packages don't have to mess around
876      to add as many CAs as they want to the preferred list.
877      [Ben Laurie]
878
879   *) Experiment with doxygen documentation. Currently only partially applied to
880      ssl/ssl_lib.c.
881      See http://www.stack.nl/~dimitri/doxygen/index.html, and run doxygen with
882      openssl.doxy as the configuration file.
883      [Ben Laurie]
884   
885   *) Get rid of remaining C++-style comments which strict C compilers hate.
886      [Ralf S. Engelschall, pointed out by Carlos Amengual]
887
888   *) Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
889      compiled in by default: it has problems with large keys.
890      [Steve Henson]
891
892   *) Add a bunch of SSL_xxx() functions for configuring the temporary RSA and
893      DH private keys and/or callback functions which directly correspond to
894      their SSL_CTX_xxx() counterparts but work on a per-connection basis. This
895      is needed for applications which have to configure certificates on a
896      per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis
897      (e.g. s_server). 
898         For the RSA certificate situation is makes no difference, but
899      for the DSA certificate situation this fixes the "no shared cipher"
900      problem where the OpenSSL cipher selection procedure failed because the
901      temporary keys were not overtaken from the context and the API provided
902      no way to reconfigure them. 
903         The new functions now let applications reconfigure the stuff and they
904      are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh,
905      SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback.  Additionally a new
906      non-public-API function ssl_cert_instantiate() is used as a helper
907      function and also to reduce code redundancy inside ssl_rsa.c.
908      [Ralf S. Engelschall]
909
910   *) Move s_server -dcert and -dkey options out of the undocumented feature
911      area because they are useful for the DSA situation and should be
912      recognized by the users.
913      [Ralf S. Engelschall]
914
915   *) Fix the cipher decision scheme for export ciphers: the export bits are
916      *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within
917      SSL_EXP_MASK.  So, the original variable has to be used instead of the
918      already masked variable.
919      [Richard Levitte <levitte@stacken.kth.se>]
920
921   *) Fix 'port' variable from `int' to `unsigned int' in crypto/bio/b_sock.c
922      [Richard Levitte <levitte@stacken.kth.se>]
923
924   *) Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()
925      from `int' to `unsigned int' because it's a length and initialized by
926      EVP_DigestFinal() which expects an `unsigned int *'.
927      [Richard Levitte <levitte@stacken.kth.se>]
928
929   *) Don't hard-code path to Perl interpreter on shebang line of Configure
930      script. Instead use the usual Shell->Perl transition trick.
931      [Ralf S. Engelschall]
932
933   *) Make `openssl x509 -noout -modulus' functional also for DSA certificates
934      (in addition to RSA certificates) to match the behaviour of `openssl dsa
935      -noout -modulus' as it's already the case for `openssl rsa -noout
936      -modulus'.  For RSA the -modulus is the real "modulus" while for DSA
937      currently the public key is printed (a decision which was already done by
938      `openssl dsa -modulus' in the past) which serves a similar purpose.
939      Additionally the NO_RSA no longer completely removes the whole -modulus
940      option; it now only avoids using the RSA stuff. Same applies to NO_DSA
941      now, too.
942      [Ralf S.  Engelschall]
943
944   *) Add Arne Ansper's reliable BIO - this is an encrypted, block-digested
945      BIO. See the source (crypto/evp/bio_ok.c) for more info.
946      [Arne Ansper <arne@ats.cyber.ee>]
947
948   *) Dump the old yucky req code that tried (and failed) to allow raw OIDs
949      to be added. Now both 'req' and 'ca' can use new objects defined in the
950      config file.
951      [Steve Henson]
952
953   *) Add cool BIO that does syslog (or event log on NT).
954      [Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie]
955
956   *) Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5,
957      TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and
958      TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher
959      Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt.
960      [Ben Laurie]
961
962   *) Add preliminary config info for new extension code.
963      [Steve Henson]
964
965   *) Make RSA_NO_PADDING really use no padding.
966      [Ulf Moeller <ulf@fitug.de>]
967
968   *) Generate errors when private/public key check is done.
969      [Ben Laurie]
970
971   *) Overhaul for 'crl' utility. New function X509_CRL_print. Partial support
972      for some CRL extensions and new objects added.
973      [Steve Henson]
974
975   *) Really fix the ASN1 IMPLICIT bug this time... Partial support for private
976      key usage extension and fuller support for authority key id.
977      [Steve Henson]
978
979   *) Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved
980      padding method for RSA, which is recommended for new applications in PKCS
981      #1 v2.0 (RFC 2437, October 1998).
982      OAEP (Optimal Asymmetric Encryption Padding) has better theoretical
983      foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure
984      against Bleichbacher's attack on RSA.
985      [Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by
986       Ben Laurie]
987
988   *) Updates to the new SSL compression code
989      [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
990
991   *) Fix so that the version number in the master secret, when passed
992      via RSA, checks that if TLS was proposed, but we roll back to SSLv3
993      (because the server will not accept higher), that the version number
994      is 0x03,0x01, not 0x03,0x00
995      [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
996
997   *) Run extensive memory leak checks on SSL apps. Fixed *lots* of memory
998      leaks in ssl/ relating to new X509_get_pubkey() behaviour. Also fixes
999      in apps/ and an unrelated leak in crypto/dsa/dsa_vrf.c
1000      [Steve Henson]
1001
1002   *) Support for RAW extensions where an arbitrary extension can be
1003      created by including its DER encoding. See apps/openssl.cnf for
1004      an example.
1005      [Steve Henson]
1006
1007   *) Make sure latest Perl versions don't interpret some generated C array
1008      code as Perl array code in the crypto/err/err_genc.pl script.
1009      [Lars Weber <3weber@informatik.uni-hamburg.de>]
1010
1011   *) Modify ms/do_ms.bat to not generate assembly language makefiles since
1012      not many people have the assembler. Various Win32 compilation fixes and
1013      update to the INSTALL.W32 file with (hopefully) more accurate Win32
1014      build instructions.
1015      [Steve Henson]
1016
1017   *) Modify configure script 'Configure' to automatically create crypto/date.h
1018      file under Win32 and also build pem.h from pem.org. New script
1019      util/mkfiles.pl to create the MINFO file on environments that can't do a
1020      'make files': perl util/mkfiles.pl >MINFO should work.
1021      [Steve Henson]
1022
1023   *) Major rework of DES function declarations, in the pursuit of correctness
1024      and purity. As a result, many evil casts evaporated, and some weirdness,
1025      too. You may find this causes warnings in your code. Zapping your evil
1026      casts will probably fix them. Mostly.
1027      [Ben Laurie]
1028
1029   *) Fix for a typo in asn1.h. Bug fix to object creation script
1030      obj_dat.pl. It considered a zero in an object definition to mean
1031      "end of object": none of the objects in objects.h have any zeros
1032      so it wasn't spotted.
1033      [Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>]
1034
1035   *) Add support for Triple DES Cipher Block Chaining with Output Feedback
1036      Masking (CBCM). In the absence of test vectors, the best I have been able
1037      to do is check that the decrypt undoes the encrypt, so far. Send me test
1038      vectors if you have them.
1039      [Ben Laurie]
1040
1041   *) Correct calculation of key length for export ciphers (too much space was
1042      allocated for null ciphers). This has not been tested!
1043      [Ben Laurie]
1044
1045   *) Modifications to the mkdef.pl for Win32 DEF file creation. The usage
1046      message is now correct (it understands "crypto" and "ssl" on its
1047      command line). There is also now an "update" option. This will update
1048      the util/ssleay.num and util/libeay.num files with any new functions.
1049      If you do a: 
1050      perl util/mkdef.pl crypto ssl update
1051      it will update them.
1052      [Steve Henson]
1053
1054   *) Overhauled the Perl interface (perl/*):
1055      - ported BN stuff to OpenSSL's different BN library
1056      - made the perl/ source tree CVS-aware
1057      - renamed the package from SSLeay to OpenSSL (the files still contain
1058        their history because I've copied them in the repository)
1059      - removed obsolete files (the test scripts will be replaced
1060        by better Test::Harness variants in the future)
1061      [Ralf S. Engelschall]
1062
1063   *) First cut for a very conservative source tree cleanup:
1064      1. merge various obsolete readme texts into doc/ssleay.txt
1065      where we collect the old documents and readme texts.
1066      2. remove the first part of files where I'm already sure that we no
1067      longer need them because of three reasons: either they are just temporary
1068      files which were left by Eric or they are preserved original files where
1069      I've verified that the diff is also available in the CVS via "cvs diff
1070      -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for
1071      the crypto/md/ stuff).
1072      [Ralf S. Engelschall]
1073
1074   *) More extension code. Incomplete support for subject and issuer alt
1075      name, issuer and authority key id. Change the i2v function parameters
1076      and add an extra 'crl' parameter in the X509V3_CTX structure: guess
1077      what that's for :-) Fix to ASN1 macro which messed up
1078      IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
1079      [Steve Henson]
1080
1081   *) Preliminary support for ENUMERATED type. This is largely copied from the
1082      INTEGER code.
1083      [Steve Henson]
1084
1085   *) Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
1086      [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
1087
1088   *) Make sure `make rehash' target really finds the `openssl' program.
1089      [Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>]
1090
1091   *) Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
1092      like to hear about it if this slows down other processors.
1093      [Ben Laurie]
1094
1095   *) Add CygWin32 platform information to Configure script.
1096      [Alan Batie <batie@aahz.jf.intel.com>]
1097
1098   *) Fixed ms/32all.bat script: `no_asm' -> `no-asm'
1099      [Rainer W. Gerling <gerling@mpg-gv.mpg.de>]
1100   
1101   *) New program nseq to manipulate netscape certificate sequences
1102      [Steve Henson]
1103
1104   *) Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a
1105      few typos.
1106      [Steve Henson]
1107
1108   *) Fixes to BN code.  Previously the default was to define BN_RECURSION
1109      but the BN code had some problems that would cause failures when
1110      doing certificate verification and some other functions.
1111      [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
1112
1113   *) Add ASN1 and PEM code to support netscape certificate sequences.
1114      [Steve Henson]
1115
1116   *) Add ASN1 and PEM code to support netscape certificate sequences.
1117      [Steve Henson]
1118
1119   *) Add several PKIX and private extended key usage OIDs.
1120      [Steve Henson]
1121
1122   *) Modify the 'ca' program to handle the new extension code. Modify
1123      openssl.cnf for new extension format, add comments.
1124      [Steve Henson]
1125
1126   *) More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req'
1127      and add a sample to openssl.cnf so req -x509 now adds appropriate
1128      CA extensions.
1129      [Steve Henson]
1130
1131   *) Continued X509 V3 changes. Add to other makefiles, integrate with the
1132      error code, add initial support to X509_print() and x509 application.
1133      [Steve Henson]
1134
1135   *) Takes a deep breath and start addding X509 V3 extension support code. Add
1136      files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this
1137      stuff is currently isolated and isn't even compiled yet.
1138      [Steve Henson]
1139
1140   *) Continuing patches for GeneralizedTime. Fix up certificate and CRL
1141      ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print.
1142      Removed the versions check from X509 routines when loading extensions:
1143      this allows certain broken certificates that don't set the version
1144      properly to be processed.
1145      [Steve Henson]
1146
1147   *) Deal with irritating shit to do with dependencies, in YAAHW (Yet Another
1148      Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which
1149      can still be regenerated with "make depend".
1150      [Ben Laurie]
1151
1152   *) Spelling mistake in C version of CAST-128.
1153      [Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>]
1154
1155   *) Changes to the error generation code. The perl script err-code.pl 
1156      now reads in the old error codes and retains the old numbers, only
1157      adding new ones if necessary. It also only changes the .err files if new
1158      codes are added. The makefiles have been modified to only insert errors
1159      when needed (to avoid needlessly modifying header files). This is done
1160      by only inserting errors if the .err file is newer than the auto generated
1161      C file. To rebuild all the error codes from scratch (the old behaviour)
1162      either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl
1163      or delete all the .err files.
1164      [Steve Henson]
1165
1166   *) CAST-128 was incorrectly implemented for short keys. The C version has
1167      been fixed, but is untested. The assembler versions are also fixed, but
1168      new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
1169      to regenerate it if needed.
1170      [Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
1171       Hagino <itojun@kame.net>]
1172
1173   *) File was opened incorrectly in randfile.c.
1174      [Ulf Möller <ulf@fitug.de>]
1175
1176   *) Beginning of support for GeneralizedTime. d2i, i2d, check and print
1177      functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or
1178      GeneralizedTime. ASN1_TIME is the proper type used in certificates et
1179      al: it's just almost always a UTCTime. Note this patch adds new error
1180      codes so do a "make errors" if there are problems.
1181      [Steve Henson]
1182
1183   *) Correct Linux 1 recognition in config.
1184      [Ulf Möller <ulf@fitug.de>]
1185
1186   *) Remove pointless MD5 hash when using DSA keys in ca.
1187      [Anonymous <nobody@replay.com>]
1188
1189   *) Generate an error if given an empty string as a cert directory. Also
1190      generate an error if handed NULL (previously returned 0 to indicate an
1191      error, but didn't set one).
1192      [Ben Laurie, reported by Anonymous <nobody@replay.com>]
1193
1194   *) Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
1195      [Ben Laurie]
1196
1197   *) Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct
1198      parameters. This was causing a warning which killed off the Win32 compile.
1199      [Steve Henson]
1200
1201   *) Remove C++ style comments from crypto/bn/bn_local.h.
1202      [Neil Costigan <neil.costigan@celocom.com>]
1203
1204   *) The function OBJ_txt2nid was broken. It was supposed to return a nid
1205      based on a text string, looking up short and long names and finally
1206      "dot" format. The "dot" format stuff didn't work. Added new function
1207      OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote 
1208      OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the
1209      OID is not part of the table.
1210      [Steve Henson]
1211
1212   *) Add prototypes to X509 lookup/verify methods, fixing a bug in
1213      X509_LOOKUP_by_alias().
1214      [Ben Laurie]
1215
1216   *) Sort openssl functions by name.
1217      [Ben Laurie]
1218
1219   *) Get the gendsa program working (hopefully) and add it to app list. Remove
1220      encryption from sample DSA keys (in case anyone is interested the password
1221      was "1234").
1222      [Steve Henson]
1223
1224   *) Make _all_ *_free functions accept a NULL pointer.
1225      [Frans Heymans <fheymans@isaserver.be>]
1226
1227   *) If a DH key is generated in s3_srvr.c, don't blow it by trying to use
1228      NULL pointers.
1229      [Anonymous <nobody@replay.com>]
1230
1231   *) s_server should send the CAfile as acceptable CAs, not its own cert.
1232      [Bodo Moeller <3moeller@informatik.uni-hamburg.de>]
1233
1234   *) Don't blow it for numeric -newkey arguments to apps/req.
1235      [Bodo Moeller <3moeller@informatik.uni-hamburg.de>]
1236
1237   *) Temp key "for export" tests were wrong in s3_srvr.c.
1238      [Anonymous <nobody@replay.com>]
1239
1240   *) Add prototype for temp key callback functions
1241      SSL_CTX_set_tmp_{rsa,dh}_callback().
1242      [Ben Laurie]
1243
1244   *) Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
1245      DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
1246      [Steve Henson]
1247
1248   *) X509_name_add_entry() freed the wrong thing after an error.
1249      [Arne Ansper <arne@ats.cyber.ee>]
1250
1251   *) rsa_eay.c would attempt to free a NULL context.
1252      [Arne Ansper <arne@ats.cyber.ee>]
1253
1254   *) BIO_s_socket() had a broken should_retry() on Windoze.
1255      [Arne Ansper <arne@ats.cyber.ee>]
1256
1257   *) BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH.
1258      [Arne Ansper <arne@ats.cyber.ee>]
1259
1260   *) Make sure the already existing X509_STORE->depth variable is initialized
1261      in X509_STORE_new(), but document the fact that this variable is still
1262      unused in the certificate verification process.
1263      [Ralf S. Engelschall]
1264
1265   *) Fix the various library and apps files to free up pkeys obtained from
1266      X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions.
1267      [Steve Henson]
1268
1269   *) Fix reference counting in X509_PUBKEY_get(). This makes
1270      demos/maurice/example2.c work, amongst others, probably.
1271      [Steve Henson and Ben Laurie]
1272
1273   *) First cut of a cleanup for apps/. First the `ssleay' program is now named
1274      `openssl' and second, the shortcut symlinks for the `openssl <command>'
1275      are no longer created. This way we have a single and consistent command
1276      line interface `openssl <command>', similar to `cvs <command>'.
1277      [Ralf S. Engelschall, Paul Sutton and Ben Laurie]
1278
1279   *) ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey
1280      BIT STRING wrapper always have zero unused bits.
1281      [Steve Henson]
1282
1283   *) Add CA.pl, perl version of CA.sh, add extended key usage OID.
1284      [Steve Henson]
1285
1286   *) Make the top-level INSTALL documentation easier to understand.
1287      [Paul Sutton]
1288
1289   *) Makefiles updated to exit if an error occurs in a sub-directory
1290      make (including if user presses ^C) [Paul Sutton]
1291
1292   *) Make Montgomery context stuff explicit in RSA data structure.
1293      [Ben Laurie]
1294
1295   *) Fix build order of pem and err to allow for generated pem.h.
1296      [Ben Laurie]
1297
1298   *) Fix renumbering bug in X509_NAME_delete_entry().
1299      [Ben Laurie]
1300
1301   *) Enhanced the err-ins.pl script so it makes the error library number 
1302      global and can add a library name. This is needed for external ASN1 and
1303      other error libraries.
1304      [Steve Henson]
1305
1306   *) Fixed sk_insert which never worked properly.
1307      [Steve Henson]
1308
1309   *) Fix ASN1 macros so they can handle indefinite length construted 
1310      EXPLICIT tags. Some non standard certificates use these: they can now
1311      be read in.
1312      [Steve Henson]
1313
1314   *) Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc)
1315      into a single doc/ssleay.txt bundle. This way the information is still
1316      preserved but no longer messes up this directory. Now it's new room for
1317      the new set of documenation files.
1318      [Ralf S. Engelschall]
1319
1320   *) SETs were incorrectly DER encoded. This was a major pain, because they
1321      shared code with SEQUENCEs, which aren't coded the same. This means that
1322      almost everything to do with SETs or SEQUENCEs has either changed name or
1323      number of arguments.
1324      [Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>]
1325
1326   *) Fix test data to work with the above.
1327      [Ben Laurie]
1328
1329   *) Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but
1330      was already fixed by Eric for 0.9.1 it seems.
1331      [Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>]
1332
1333   *) Autodetect FreeBSD3.
1334      [Ben Laurie]
1335
1336   *) Fix various bugs in Configure. This affects the following platforms:
1337      nextstep
1338      ncr-scde
1339      unixware-2.0
1340      unixware-2.0-pentium
1341      sco5-cc.
1342      [Ben Laurie]
1343
1344   *) Eliminate generated files from CVS. Reorder tests to regenerate files
1345      before they are needed.
1346      [Ben Laurie]
1347
1348   *) Generate Makefile.ssl from Makefile.org (to keep CVS happy).
1349      [Ben Laurie]
1350
1351
1352  Changes between 0.9.1b and 0.9.1c  [23-Dec-1998]
1353
1354   *) Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and 
1355      changed SSLeay to OpenSSL in version strings.
1356      [Ralf S. Engelschall]
1357   
1358   *) Some fixups to the top-level documents.
1359      [Paul Sutton]
1360
1361   *) Fixed the nasty bug where rsaref.h was not found under compile-time
1362      because the symlink to include/ was missing.
1363      [Ralf S. Engelschall]
1364
1365   *) Incorporated the popular no-RSA/DSA-only patches 
1366      which allow to compile a RSA-free SSLeay.
1367      [Andrew Cooke / Interrader Ldt., Ralf S. Engelschall]
1368
1369   *) Fixed nasty rehash problem under `make -f Makefile.ssl links'
1370      when "ssleay" is still not found.
1371      [Ralf S. Engelschall]
1372
1373   *) Added more platforms to Configure: Cray T3E, HPUX 11, 
1374      [Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>]
1375
1376   *) Updated the README file.
1377      [Ralf S. Engelschall]
1378
1379   *) Added various .cvsignore files in the CVS repository subdirs
1380      to make a "cvs update" really silent.
1381      [Ralf S. Engelschall]
1382
1383   *) Recompiled the error-definition header files and added
1384      missing symbols to the Win32 linker tables.
1385      [Ralf S. Engelschall]
1386
1387   *) Cleaned up the top-level documents;
1388      o new files: CHANGES and LICENSE
1389      o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay 
1390      o merged COPYRIGHT into LICENSE
1391      o removed obsolete TODO file
1392      o renamed MICROSOFT to INSTALL.W32
1393      [Ralf S. Engelschall]
1394
1395   *) Removed dummy files from the 0.9.1b source tree: 
1396      crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi
1397      crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f
1398      crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f
1399      crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f
1400      util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f
1401      [Ralf S. Engelschall]
1402
1403   *) Added various platform portability fixes.
1404      [Mark J. Cox]
1405
1406   *) The Genesis of the OpenSSL rpject:
1407      We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A.
1408      Young and Tim J. Hudson created while they were working for C2Net until
1409      summer 1998.
1410      [The OpenSSL Project]
1411  
1412
1413  Changes between 0.9.0b and 0.9.1b  [not released]
1414
1415   *) Updated a few CA certificates under certs/
1416      [Eric A. Young]
1417
1418   *) Changed some BIGNUM api stuff.
1419      [Eric A. Young]
1420
1421   *) Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD, 
1422      DGUX x86, Linux Alpha, etc.
1423      [Eric A. Young]
1424
1425   *) New COMP library [crypto/comp/] for SSL Record Layer Compression: 
1426      RLE (dummy implemented) and ZLIB (really implemented when ZLIB is
1427      available).
1428      [Eric A. Young]
1429
1430   *) Add -strparse option to asn1pars program which parses nested 
1431      binary structures 
1432      [Dr Stephen Henson <shenson@bigfoot.com>]
1433
1434   *) Added "oid_file" to ssleay.cnf for "ca" and "req" programs.
1435      [Eric A. Young]
1436
1437   *) DSA fix for "ca" program.
1438      [Eric A. Young]
1439
1440   *) Added "-genkey" option to "dsaparam" program.
1441      [Eric A. Young]
1442
1443   *) Added RIPE MD160 (rmd160) message digest.
1444      [Eric A. Young]
1445
1446   *) Added -a (all) option to "ssleay version" command.
1447      [Eric A. Young]
1448
1449   *) Added PLATFORM define which is the id given to Configure.
1450      [Eric A. Young]
1451
1452   *) Added MemCheck_XXXX functions to crypto/mem.c for memory checking.
1453      [Eric A. Young]
1454
1455   *) Extended the ASN.1 parser routines.
1456      [Eric A. Young]
1457
1458   *) Extended BIO routines to support REUSEADDR, seek, tell, etc.
1459      [Eric A. Young]
1460
1461   *) Added a BN_CTX to the BN library.
1462      [Eric A. Young]
1463
1464   *) Fixed the weak key values in DES library
1465      [Eric A. Young]
1466
1467   *) Changed API in EVP library for cipher aliases.
1468      [Eric A. Young]
1469
1470   *) Added support for RC2/64bit cipher.
1471      [Eric A. Young]
1472
1473   *) Converted the lhash library to the crypto/mem.c functions.
1474      [Eric A. Young]
1475
1476   *) Added more recognized ASN.1 object ids.
1477      [Eric A. Young]
1478
1479   *) Added more RSA padding checks for SSL/TLS.
1480      [Eric A. Young]
1481
1482   *) Added BIO proxy/filter functionality.
1483      [Eric A. Young]
1484
1485   *) Added extra_certs to SSL_CTX which can be used
1486      send extra CA certificates to the client in the CA cert chain sending
1487      process. It can be configured with SSL_CTX_add_extra_chain_cert().
1488      [Eric A. Young]
1489
1490   *) Now Fortezza is denied in the authentication phase because
1491      this is key exchange mechanism is not supported by SSLeay at all.
1492      [Eric A. Young]
1493
1494   *) Additional PKCS1 checks.
1495      [Eric A. Young]
1496
1497   *) Support the string "TLSv1" for all TLS v1 ciphers.
1498      [Eric A. Young]
1499
1500   *) Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the
1501      ex_data index of the SSL context in the X509_STORE_CTX ex_data.
1502      [Eric A. Young]
1503
1504   *) Fixed a few memory leaks.
1505      [Eric A. Young]
1506
1507   *) Fixed various code and comment typos.
1508      [Eric A. Young]
1509
1510   *) A minor bug in ssl/s3_clnt.c where there would always be 4 0 
1511      bytes sent in the client random.
1512      [Edward Bishop <ebishop@spyglass.com>]
1513