]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES
RC4 tune-up featuring 30-40% performance improvement on most RISC
[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
d71c6bc5
DSH
7 *) New -noout option to asn1parse. This causes no output to be produced
8 its main use is when combined with -strparse and -out to extract data
9 from a file (which may not be in ASN.1 format).
10 [Steve Henson]
11
2d681b77
DSH
12 *) Fix for pkcs12 program. It was hashing an invalid certificate pointer
13 when producing the local key id.
14 [Richard Levitte <levitte@stacken.kth.se>]
15
3908cdf4
DSH
16 *) New option -dhparam in s_server. This allows a DH parameter file to be
17 stated explicitly. If it is not stated then it tries the first server
18 certificate file. The previous behaviour hard coded the filename
19 "server.pem".
20 [Steve Henson]
21
3ea23631
DSH
22 *) Add -pubin and -pubout options to the rsa and dsa commands. These allow
23 a public key to be input or output. For example:
24 openssl rsa -in key.pem -pubout -out pubkey.pem
25 Also added necessary DSA public key functions to handle this.
26 [Steve Henson]
27
393f2c65
DSH
28 *) Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained
29 in the message. This was handled by allowing
30 X509_find_by_issuer_and_serial() to tolerate a NULL passed to it.
31 [Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>]
32
33 *) Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null
34 to the end of the strings whereas this didn't. This would cause problems
35 if strings read with d2i_ASN1_bytes() were later modified.
36 [Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>]
37
4579dd5d
DSH
38 *) Fix for base64 decode bug. When a base64 bio reads only one line of
39 data and it contains EOF it will end up returning an error. This is
40 caused by input 46 bytes long. The cause is due to the way base64
41 BIOs find the start of base64 encoded data. They do this by trying a
42 trial decode on each line until they find one that works. When they
43 do a flag is set and it starts again knowing it can pass all the
44 data directly through the decoder. Unfortunately it doesn't reset
45 the context it uses. This means that if EOF is reached an attempt
46 is made to pass two EOFs through the context and this causes the
47 resulting error. This can also cause other problems as well. As is
48 usual with these problems it takes *ages* to find and the fix is
49 trivial: move one line.
50 [Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer) ]
51
06f4536a
DSH
52 *) Ugly workaround to get s_client and s_server working under Windows. The
53 old code wouldn't work because it needed to select() on sockets and the
54 tty (for keypresses and to see if data could be written). Win32 only
55 supports select() on sockets so we select() with a 1s timeout on the
56 sockets and then see if any characters are waiting to be read, if none
57 are present then we retry, we also assume we can always write data to
58 the tty. This isn't nice because the code then blocks until we've
59 received a complete line of data and it is effectively polling the
60 keyboard at 1s intervals: however it's quite a bit better than not
61 working at all :-) A dedicated Windows application might handle this
62 with an event loop for example.
63 [Steve Henson]
64
1c80019a
DSH
65 *) Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign
66 and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions
67 will be called when RSA_sign() and RSA_verify() are used. This is useful
68 if rsa_pub_dec() and rsa_priv_enc() equivalents are not available.
69 For this to work properly RSA_public_decrypt() and RSA_private_encrypt()
70 should *not* be used: RSA_sign() and RSA_verify() must be used instead.
71 This necessitated the support of an extra signature type NID_md5_sha1
72 for SSL signatures and modifications to the SSL library to use it instead
73 of calling RSA_public_decrypt() and RSA_private_encrypt().
74 [Steve Henson]
75
090d848e
DSH
76 *) Add new -verify -CAfile and -CApath options to the crl program, these
77 will lookup a CRL issuers certificate and verify the signature in a
78 similar way to the verify program. Tidy up the crl program so it
79 no longer acesses structures directly. Make the ASN1 CRL parsing a bit
80 less strict. It will now permit CRL extensions even if it is not
81 a V2 CRL: this will allow it to tolerate some broken CRLs.
82 [Steve Henson]
83
396f6314
BM
84 *) Initialize all non-automatic variables each time one of the openssl
85 sub-programs is started (this is necessary as they may be started
86 multiple times from the "OpenSSL>" prompt).
87 [Lennart Bang, Bodo Moeller]
88
4a61a64f
DSH
89 *) Preliminary compilation option RSA_NULL which disables RSA crypto without
90 removing all other RSA functionality (this is what NO_RSA does). This
91 is so (for example) those in the US can disable those operations covered
92 by the RSA patent while allowing storage and parsing of RSA keys and RSA
93 key generation.
94 [Steve Henson]
95
c1082a90 96 *) Non-copying interface to BIO pairs.
6f7af152 97 (still largely untested)
c1082a90
BM
98 [Bodo Moeller]
99
a785abc3
DSH
100 *) New function ANS1_tag2str() to convert an ASN1 tag to a descriptive
101 ASCII string. This was handled independently in various places before.
102 [Steve Henson]
103
aef838fc
DSH
104 *) New functions UTF8_getc() and UTF8_putc() that parse and generate
105 UTF8 strings a character at a time.
106 [Steve Henson]
107
074309b7
BM
108 *) Use client_version from client hello to select the protocol
109 (s23_srvr.c) and for RSA client key exchange verification
110 (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications.
111 [Bodo Moeller]
112
8ce97163
DSH
113 *) Add various utility functions to handle SPKACs, these were previously
114 handled by poking round in the structure internals. Added new function
115 NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to
116 print, verify and generate SPKACs. Based on an original idea from
117 Massimiliano Pala <madwolf@comune.modena.it> but extensively modified.
118 [Steve Henson]
119
2d4287da
AP
120 *) RIPEMD160 is operational on all platforms and is back in 'make test'.
121 [Andy Polyakov]
122
87a25f90
DSH
123 *) Allow the config file extension section to be overwritten on the
124 command line. Based on an original idea from Massimiliano Pala
125 <madwolf@comune.modena.it>. The new option is called -extensions
126 and can be applied to ca, req and x509. Also -reqexts to override
127 the request extensions in req and -crlexts to override the crl extensions
128 in ca.
129 [Steve Henson]
130
f9150e54
DSH
131 *) Add new feature to the SPKAC handling in ca. Now you can include
132 the same field multiple times by preceding it by "XXXX." for example:
133 1.OU="Unit name 1"
134 2.OU="Unit name 2"
135 this is the same syntax as used in the req config file.
136 [Steve Henson]
137
c79b16e1
DSH
138 *) Allow certificate extensions to be added to certificate requests. These
139 are specified in a 'req_extensions' option of the req section of the
140 config file. They can be printed out with the -text option to req but
141 are otherwise ignored at present.
142 [Steve Henson]
143
96c2201b 144 *) Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first
0f7e6fe1 145 data read consists of only the final block it would not decrypted because
7b65c329
DSH
146 EVP_CipherUpdate() would correctly report zero bytes had been decrypted.
147 A misplaced 'break' also meant the decrypted final block might not be
148 copied until the next read.
149 [Steve Henson]
150
13066cee
DSH
151 *) Initial support for DH_METHOD. Again based on RSA_METHOD. Also added
152 a few extra parameters to the DH structure: these will be useful if
153 for example we want the value of 'q' or implement X9.42 DH.
154 [Steve Henson]
155
c0711f7f
DSH
156 *) Initial support for DSA_METHOD. This is based on the RSA_METHOD and
157 provides hooks that allow the default DSA functions or functions on a
158 "per key" basis to be replaced. This allows hardware acceleration and
159 hardware key storage to be handled without major modification to the
160 library. Also added low level modexp hooks and CRYPTO_EX structure and
161 associated functions.
162 [Steve Henson]
163
8484721a
DSH
164 *) Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO
165 as "read only": it can't be written to and the buffer it points to will
166 not be freed. Reading from a read only BIO is much more efficient than
167 a normal memory BIO. This was added because there are several times when
168 an area of memory needs to be read from a BIO. The previous method was
169 to create a memory BIO and write the data to it, this results in two
170 copies of the data and an O(n^2) reading algorithm. There is a new
171 function BIO_new_mem_buf() which creates a read only memory BIO from
172 an area of memory. Also modified the PKCS#7 routines to use read only
173 memory BIOSs.
174 [Steve Henson]
175
de1915e4
BM
176 *) Bugfix: ssl23_get_client_hello did not work properly when called in
177 state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of
178 a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read,
179 but a retry condition occured while trying to read the rest.
180 [Bodo Moeller]
181
c6c34506
DSH
182 *) The PKCS7_ENC_CONTENT_new() function was setting the content type as
183 NID_pkcs7_encrypted by default: this was wrong since this should almost
184 always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle
185 the encrypted data type: this is a more sensible place to put it and it
186 allows the PKCS#12 code to be tidied up that duplicated this
187 functionality.
188 [Steve Henson]
189
fd520577
DSH
190 *) Changed obj_dat.pl script so it takes its input and output files on
191 the command line. This should avoid shell escape redirection problems
192 under Win32.
193 [Steve Henson]
194
87c49f62 195 *) Initial support for certificate extension requests, these are included
fd520577
DSH
196 in things like Xenroll certificate requests. Included functions to allow
197 extensions to be obtained and added.
87c49f62
DSH
198 [Steve Henson]
199
1b1a6e78
BM
200 *) -crlf option to s_client and s_server for sending newlines as
201 CRLF (as required by many protocols).
202 [Bodo Moeller]
203
9a577e29 204 Changes between 0.9.3a and 0.9.4 [09 Aug 1999]
dfbaf956 205
9a577e29 206 *) Install libRSAglue.a when OpenSSL is built with RSAref.
dfbaf956 207 [Ralf S. Engelschall]
74678cc2 208
96395158
RE
209 *) A few more ``#ifndef NO_FP_API / #endif'' pairs for consistency.
210 [Andrija Antonijevic <TheAntony2@bigfoot.com>]
211
ed7f60fb
DSH
212 *) Fix -startdate and -enddate (which was missing) arguments to 'ca'
213 program.
214 [Steve Henson]
215
48c843c3
BM
216 *) New function DSA_dup_DH, which duplicates DSA parameters/keys as
217 DH parameters/keys (q is lost during that conversion, but the resulting
218 DH parameters contain its length).
219
220 For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is
221 much faster than DH_generate_parameters (which creates parameters
222 where p = 2*q + 1), and also the smaller q makes DH computations
223 much more efficient (160-bit exponentiation instead of 1024-bit
224 exponentiation); so this provides a convenient way to support DHE
225 ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of
226 utter importance to use
227 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
228 or
229 SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
230 when such DH parameters are used, because otherwise small subgroup
231 attacks may become possible!
232 [Bodo Moeller]
233
234 *) Avoid memory leak in i2d_DHparams.
235 [Bodo Moeller]
236
922180d7
DSH
237 *) Allow the -k option to be used more than once in the enc program:
238 this allows the same encrypted message to be read by multiple recipients.
239 [Steve Henson]
240
3e3d2ea2
DSH
241 *) New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
242 an ASN1_OBJECT to a text string. If the "no_name" parameter is set then
243 it will always use the numerical form of the OID, even if it has a short
244 or long name.
245 [Steve Henson]
246
770d19b8
DSH
247 *) Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
248 method only got called if p,q,dmp1,dmq1,iqmp components were present,
249 otherwise bn_mod_exp was called. In the case of hardware keys for example
250 no private key components need be present and it might store extra data
96c2201b
BM
251 in the RSA structure, which cannot be accessed from bn_mod_exp.
252 By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for
253 private key operations.
770d19b8
DSH
254 [Steve Henson]
255
a0618e3e
AP
256 *) Added support for SPARC Linux.
257 [Andy Polyakov]
258
74678cc2
BM
259 *) pem_password_cb function type incompatibly changed from
260 typedef int pem_password_cb(char *buf, int size, int rwflag);
261 to
262 ....(char *buf, int size, int rwflag, void *userdata);
263 so that applications can pass data to their callbacks:
264 The PEM[_ASN1]_{read,write}... functions and macros now take an
265 additional void * argument, which is just handed through whenever
266 the password callback is called.
96c2201b 267 [Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller]
74678cc2
BM
268
269 New function SSL_CTX_set_default_passwd_cb_userdata.
270
271 Compatibility note: As many C implementations push function arguments
272 onto the stack in reverse order, the new library version is likely to
273 interoperate with programs that have been compiled with the old
274 pem_password_cb definition (PEM_whatever takes some data that
275 happens to be on the stack as its last argument, and the callback
276 just ignores this garbage); but there is no guarantee whatsoever that
277 this will work.
0cceb1c7 278
664b9985
BM
279 *) The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
280 (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
281 problems not only on Windows, but also on some Unix platforms.
2e0fc875 282 To avoid problematic command lines, these definitions are now in an
57119943
BM
283 auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl
284 for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds).
664b9985
BM
285 [Bodo Moeller]
286
7363455f
AP
287 *) MIPS III/IV assembler module is reimplemented.
288 [Andy Polyakov]
289
6434450c
UM
290 *) More DES library cleanups: remove references to srand/rand and
291 delete an unused file.
292