]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES
Document -startdate and -enddate in usage summary.
[thirdparty/openssl.git] / CHANGES
CommitLineData
651d0aff 1
f1c236f8 2 OpenSSL CHANGES
651d0aff
RE
3 _______________
4
d91e201e
RE
5 Changes between 0.9.4 and 0.9.5 [xx XXX 1999]
6
396f6314
BM
7 *) Initialize all non-automatic variables each time one of the openssl
8 sub-programs is started (this is necessary as they may be started
9 multiple times from the "OpenSSL>" prompt).
10 [Lennart Bang, Bodo Moeller]
11
4a61a64f
DSH
12 *) Preliminary compilation option RSA_NULL which disables RSA crypto without
13 removing all other RSA functionality (this is what NO_RSA does). This
14 is so (for example) those in the US can disable those operations covered
15 by the RSA patent while allowing storage and parsing of RSA keys and RSA
16 key generation.
17 [Steve Henson]
18
c1082a90 19 *) Non-copying interface to BIO pairs.
6f7af152 20 (still largely untested)
c1082a90
BM
21 [Bodo Moeller]
22
a785abc3
DSH
23 *) New function ANS1_tag2str() to convert an ASN1 tag to a descriptive
24 ASCII string. This was handled independently in various places before.
25 [Steve Henson]
26
aef838fc
DSH
27 *) New functions UTF8_getc() and UTF8_putc() that parse and generate
28 UTF8 strings a character at a time.
29 [Steve Henson]
30
074309b7
BM
31 *) Use client_version from client hello to select the protocol
32 (s23_srvr.c) and for RSA client key exchange verification
33 (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications.
34 [Bodo Moeller]
35
8ce97163
DSH
36 *) Add various utility functions to handle SPKACs, these were previously
37 handled by poking round in the structure internals. Added new function
38 NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to
39 print, verify and generate SPKACs. Based on an original idea from
40 Massimiliano Pala <madwolf@comune.modena.it> but extensively modified.
41 [Steve Henson]
42
2d4287da
AP
43 *) RIPEMD160 is operational on all platforms and is back in 'make test'.
44 [Andy Polyakov]
45
87a25f90
DSH
46 *) Allow the config file extension section to be overwritten on the
47 command line. Based on an original idea from Massimiliano Pala
48 <madwolf@comune.modena.it>. The new option is called -extensions
49 and can be applied to ca, req and x509. Also -reqexts to override
50 the request extensions in req and -crlexts to override the crl extensions
51 in ca.
52 [Steve Henson]
53
f9150e54
DSH
54 *) Add new feature to the SPKAC handling in ca. Now you can include
55 the same field multiple times by preceding it by "XXXX." for example:
56 1.OU="Unit name 1"
57 2.OU="Unit name 2"
58 this is the same syntax as used in the req config file.
59 [Steve Henson]
60
c79b16e1
DSH
61 *) Allow certificate extensions to be added to certificate requests. These
62 are specified in a 'req_extensions' option of the req section of the
63 config file. They can be printed out with the -text option to req but
64 are otherwise ignored at present.
65 [Steve Henson]
66
7b65c329
DSH
67 *) Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first data
68 read consists of only the final block it would not decrypted because
69 EVP_CipherUpdate() would correctly report zero bytes had been decrypted.
70 A misplaced 'break' also meant the decrypted final block might not be
71 copied until the next read.
72 [Steve Henson]
73
13066cee
DSH
74 *) Initial support for DH_METHOD. Again based on RSA_METHOD. Also added
75 a few extra parameters to the DH structure: these will be useful if
76 for example we want the value of 'q' or implement X9.42 DH.
77 [Steve Henson]
78
c0711f7f
DSH
79 *) Initial support for DSA_METHOD. This is based on the RSA_METHOD and
80 provides hooks that allow the default DSA functions or functions on a
81 "per key" basis to be replaced. This allows hardware acceleration and
82 hardware key storage to be handled without major modification to the
83 library. Also added low level modexp hooks and CRYPTO_EX structure and
84 associated functions.
85 [Steve Henson]
86
8484721a
DSH
87 *) Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO
88 as "read only": it can't be written to and the buffer it points to will
89 not be freed. Reading from a read only BIO is much more efficient than
90 a normal memory BIO. This was added because there are several times when
91 an area of memory needs to be read from a BIO. The previous method was
92 to create a memory BIO and write the data to it, this results in two
93 copies of the data and an O(n^2) reading algorithm. There is a new
94 function BIO_new_mem_buf() which creates a read only memory BIO from
95 an area of memory. Also modified the PKCS#7 routines to use read only
96 memory BIOSs.
97 [Steve Henson]
98
de1915e4
BM
99 *) Bugfix: ssl23_get_client_hello did not work properly when called in
100 state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of
101 a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read,
102 but a retry condition occured while trying to read the rest.
103 [Bodo Moeller]
104
c6c34506
DSH
105 *) The PKCS7_ENC_CONTENT_new() function was setting the content type as
106 NID_pkcs7_encrypted by default: this was wrong since this should almost
107 always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle
108 the encrypted data type: this is a more sensible place to put it and it
109 allows the PKCS#12 code to be tidied up that duplicated this
110 functionality.
111 [Steve Henson]
112
fd520577
DSH
113 *) Changed obj_dat.pl script so it takes its input and output files on
114 the command line. This should avoid shell escape redirection problems
115 under Win32.
116 [Steve Henson]
117
87c49f62 118 *) Initial support for certificate extension requests, these are included
fd520577
DSH
119 in things like Xenroll certificate requests. Included functions to allow
120 extensions to be obtained and added.
87c49f62
DSH
121 [Steve Henson]
122
1b1a6e78
BM
123 *) -crlf option to s_client and s_server for sending newlines as
124 CRLF (as required by many protocols).
125 [Bodo Moeller]
126
9a577e29 127 Changes between 0.9.3a and 0.9.4 [09 Aug 1999]
dfbaf956 128
9a577e29 129 *) Install libRSAglue.a when OpenSSL is built with RSAref.
dfbaf956 130 [Ralf S. Engelschall]
74678cc2 131
96395158
RE
132 *) A few more ``#ifndef NO_FP_API / #endif'' pairs for consistency.
133 [Andrija Antonijevic <TheAntony2@bigfoot.com>]
134
ed7f60fb
DSH
135 *) Fix -startdate and -enddate (which was missing) arguments to 'ca'
136 program.
137 [Steve Henson]
138
48c843c3
BM
139 *) New function DSA_dup_DH, which duplicates DSA parameters/keys as
140 DH parameters/keys (q is lost during that conversion, but the resulting
141 DH parameters contain its length).
142
143 For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is
144 much faster than DH_generate_parameters (which creates parameters
145 where p = 2*q + 1), and also the smaller q makes DH computations
146 much more efficient (160-bit exponentiation instead of 1024-bit
147 exponentiation); so this provides a convenient way to support DHE
148 ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of
149 utter importance to use
150 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
151 or
152 SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
153 when such DH parameters are used, because otherwise small subgroup
154 attacks may become possible!
155 [Bodo Moeller]
156
157 *) Avoid memory leak in i2d_DHparams.
158 [Bodo Moeller]
159
922180d7
DSH
160 *) Allow the -k option to be used more than once in the enc program:
161 this allows the same encrypted message to be read by multiple recipients.
162 [Steve Henson]
163
3e3d2ea2
DSH
164 *) New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
165 an ASN1_OBJECT to a text string. If the "no_name" parameter is set then
166 it will always use the numerical form of the OID, even if it has a short
167 or long name.
168 [Steve Henson]
169
770d19b8
DSH
170 *) Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
171 method only got called if p,q,dmp1,dmq1,iqmp components were present,
172 otherwise bn_mod_exp was called. In the case of hardware keys for example
173 no private key components need be present and it might store extra data
174 in the RSA structure, which cannot be accessed from bn_mod_exp. By setting
175 RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for private key
176 operations.
177 [Steve Henson]
178
a0618e3e
AP
179 *) Added support for SPARC Linux.
180 [Andy Polyakov]
181
74678cc2
BM
182 *) pem_password_cb function type incompatibly changed from
183 typedef int pem_password_cb(char *buf, int size, int rwflag);
184 to
185 ....(char *buf, int size, int rwflag, void *userdata);
186 so that applications can pass data to their callbacks:
187 The PEM[_ASN1]_{read,write}... functions and macros now take an
188 additional void * argument, which is just handed through whenever
189 the password callback is called.
190 [Damien Miller <dmiller@ilogic.com.au>, with tiny changes by Bodo Moeller]
191
192 New function SSL_CTX_set_default_passwd_cb_userdata.
193
194 Compatibility note: As many C implementations push function arguments
195 onto the stack in reverse order, the new library version is likely to
196 interoperate with programs that have been compiled with the old
197 pem_password_cb definition (PEM_whatever takes some data that
198 happens to be on the stack as its last argument, and the callback
199 just ignores this garbage); but there is no guarantee whatsoever that
200 this will work.
0cceb1c7 201
664b9985
BM
202 *) The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
203 (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
204 problems not only on Windows, but also on some Unix platforms.
2e0fc875 205 To avoid problematic command lines, these definitions are now in an
57119943
BM
206 auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl
207 for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds).
664b9985
BM
208 [Bodo Moeller]
209
7363455f
AP
210 *) MIPS III/IV assembler module is reimplemented.
211 [Andy Polyakov]
212
6434450c
UM
213 *) More DES library cleanups: remove references to srand/rand and
214 delete an unused file.
215