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