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