]>
Commit | Line | Data |
---|---|---|
81a6c781 | 1 | |
f1c236f8 | 2 | OpenSSL CHANGES |
651d0aff RE |
3 | _______________ |
4 | ||
480af99e | 5 | Changes between 1.0.0 and 1.1.0 [xx XXX xxxx] |
aaf35f11 | 6 | |
637f374a DSH |
7 | *) Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only |
8 | a few changes are required: | |
9 | ||
10 | Add SSL_OP_NO_TLSv1_1 flag. | |
11 | Add TLSv1_1 methods. | |
12 | Update version checking logic to handle version 1.1. | |
13 | Add explicit IV handling (ported from DTLS code). | |
14 | Add command line options to s_client/s_server. | |
15 | [Steve Henson] | |
16 | ||
d2a53c22 DSH |
17 | *) Experiemental password based recipient info support for CMS library: |
18 | implementing RFC3211. | |
19 | [Steve Henson] | |
20 | ||
3d63b396 DSH |
21 | *) Split password based encryption into PBES2 and PBKDF2 functions. This |
22 | neatly separates the code into cipher and PBE sections and is required | |
23 | for some algorithms that split PBES2 into separate pieces (such as | |
24 | password based CMS). | |
18e503f3 DSH |
25 | [Steve Henson] |
26 | ||
b6dcdbfc DSH |
27 | *) Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where |
28 | return value is ignored. NB. The functions RAND_add(), RAND_seed(), | |
29 | BIO_set_cipher() and some obscure PEM functions were changed so they | |
30 | can now return an error. The RAND changes required a change to the | |
31 | RAND_METHOD structure. | |
32 | [Steve Henson] | |
33 | ||
acf20c7d DSH |
34 | *) New macro __owur for "OpenSSL Warn Unused Result". This makes use of |
35 | a gcc attribute to warn if the result of a function is ignored. This | |
36 | is enable if DEBUG_UNUSED is set. Add to several functions in evp.h | |
37 | whose return value is often ignored. | |
38 | [Steve Henson] | |
39 | ||
480af99e | 40 | Changes between 0.9.8m (?) and 1.0.0 [xx XXX xxxx] |
3d63b396 DSH |
41 | |
42 | *) Add load_crls() function to apps tidying load_certs() too. Add option | |
43 | to verify utility to allow additional CRLs to be included. | |
44 | [Steve Henson] | |
45 | ||
46 | *) Update OCSP request code to permit adding custom headers to the request: | |
47 | some responders need this. | |
48 | [Steve Henson] | |
49 | ||
a25f33d2 DSH |
50 | *) The function EVP_PKEY_sign() returns <=0 on error: check return code |
51 | correctly. | |
52 | [Julia Lawall <julia@diku.dk>] | |
53 | ||
17716680 DSH |
54 | *) Update verify callback code in apps/s_cb.c and apps/verify.c, it |
55 | needlessly dereferenced structures, used obsolete functions and | |
56 | didn't handle all updated verify codes correctly. | |
57 | [Steve Henson] | |
58 | ||
480af99e | 59 | *) Disable MD2 in the default configuration. |
0e4bc563 DSH |
60 | [Steve Henson] |
61 | ||
e30dd20c DSH |
62 | *) In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to |
63 | indicate the initial BIO being pushed or popped. This makes it possible | |
64 | to determine whether the BIO is the one explicitly called or as a result | |
65 | of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so | |
66 | it handles reference counts correctly and doesn't zero out the I/O bio | |
67 | when it is not being explicitly popped. WARNING: applications which | |
68 | included workarounds for the old buggy behaviour will need to be modified | |
69 | or they could free up already freed BIOs. | |
70 | [Steve Henson] | |
71 | ||
480af99e BM |
72 | *) Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni |
73 | renaming to all platforms (within the 0.9.8 branch, this was | |
74 | done conditionally on Netware platforms to avoid a name clash). | |
c05353c5 DSH |
75 | [Guenter <lists@gknw.net>] |
76 | ||
d741ccad DSH |
77 | *) Add ECDHE and PSK support to DTLS. |
78 | [Michael Tuexen <tuexen@fh-muenster.de>] | |
79 | ||
5f8f94a6 DSH |
80 | *) Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't |
81 | be used on C++. | |
82 | [Steve Henson] | |
83 | ||
e5fa864f DSH |
84 | *) Add "missing" function EVP_MD_flags() (without this the only way to |
85 | retrieve a digest flags is by accessing the structure directly. Update | |
86 | EVP_MD_do_all*() and EVP_CIPHER_do_all*() to include the name a digest | |
87 | or cipher is registered as in the "from" argument. Print out all | |
88 | registered digests in the dgst usage message instead of manually | |
89 | attempting to work them out. | |
90 | [Steve Henson] | |
91 | ||
22c98d4a DSH |
92 | *) If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello: |
93 | this allows the use of compression and extensions. Change default cipher | |
94 | string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2 | |
95 | by default unless an application cipher string requests it. | |
96 | [Steve Henson] | |
97 | ||
14023fe3 DSH |
98 | *) Alter match criteria in PKCS12_parse(). It used to try to use local |
99 | key ids to find matching certificates and keys but some PKCS#12 files | |
100 | don't follow the (somewhat unwritten) rules and this strategy fails. | |
101 | Now just gather all certificates together and the first private key | |
102 | then look for the first certificate that matches the key. | |
103 | [Steve Henson] | |
104 | ||
aaf35f11 DSH |
105 | *) Support use of registered digest and cipher names for dgst and cipher |
106 | commands instead of having to add each one as a special case. So now | |
107 | you can do: | |
108 | ||
109 | openssl sha256 foo | |
110 | ||
111 | as well as: | |
112 | ||
113 | openssl dgst -sha256 foo | |
114 | ||
115 | and this works for ENGINE based algorithms too. | |
116 | ||
117 | [Steve Henson] | |
3ff55e96 | 118 | |
b6af2c7e DSH |
119 | *) Update Gost ENGINE to support parameter files. |
120 | [Victor B. Wagner <vitus@cryptocom.ru>] | |
121 | ||
33ab2e31 DSH |
122 | *) Support GeneralizedTime in ca utility. |
123 | [Oliver Martin <oliver@volatilevoid.net>, Steve Henson] | |
124 | ||
c2c99e28 DSH |
125 | *) Enhance the hash format used for certificate directory links. The new |
126 | form uses the canonical encoding (meaning equivalent names will work | |
127 | even if they aren't identical) and uses SHA1 instead of MD5. This form | |
128 | is incompatible with the older format and as a result c_rehash should | |
129 | be used to rebuild symbolic links. | |
130 | [Steve Henson] | |
131 | ||
8125d9f9 DSH |
132 | *) Make PKCS#8 the default write format for private keys, replacing the |
133 | traditional format. This form is standardised, more secure and doesn't | |
134 | include an implicit MD5 dependency. | |
135 | [Steve Henson] | |
136 | ||
363bd0b4 DSH |
137 | *) Add a $gcc_devteam_warn option to Configure. The idea is that any code |
138 | committed to OpenSSL should pass this lot as a minimum. | |
139 | [Steve Henson] | |
140 | ||
12bf56c0 DSH |
141 | *) Add session ticket override functionality for use by EAP-FAST. |
142 | [Jouni Malinen <j@w1.fi>] | |
143 | ||
87d52468 DSH |
144 | *) Modify HMAC functions to return a value. Since these can be implemented |
145 | in an ENGINE errors can occur. | |
146 | [Steve Henson] | |
147 | ||
1ea6472e BL |
148 | *) Type-checked OBJ_bsearch_ex. |
149 | [Ben Laurie] | |
150 | ||
babb3798 BL |
151 | *) Type-checked OBJ_bsearch. Also some constification necessitated |
152 | by type-checking. Still to come: TXT_DB, bsearch(?), | |
153 | OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING, | |
1ea6472e BL |
154 | CONF_VALUE. |
155 | [Ben Laurie] | |
babb3798 | 156 | |
87d3a0cd DSH |
157 | *) New function OPENSSL_gmtime_adj() to add a specific number of days and |
158 | seconds to a tm structure directly, instead of going through OS | |
159 | specific date routines. This avoids any issues with OS routines such | |
160 | as the year 2038 bug. New *_adj() functions for ASN1 time structures | |
161 | and X509_time_adj_ex() to cover the extended range. The existing | |
162 | X509_time_adj() is still usable and will no longer have any date issues. | |
163 | [Steve Henson] | |
164 | ||
d43c4497 DSH |
165 | *) Delta CRL support. New use deltas option which will attempt to locate |
166 | and search any appropriate delta CRLs available. | |
167 | ||
168 | This work was sponsored by Google. | |
169 | [Steve Henson] | |
170 | ||
4b96839f DSH |
171 | *) Support for CRLs partitioned by reason code. Reorganise CRL processing |
172 | code and add additional score elements. Validate alternate CRL paths | |
173 | as part of the CRL checking and indicate a new error "CRL path validation | |
174 | error" in this case. Applications wanting additional details can use | |
175 | the verify callback and check the new "parent" field. If this is not | |
176 | NULL CRL path validation is taking place. Existing applications wont | |
177 | see this because it requires extended CRL support which is off by | |
178 | default. | |
179 | ||
180 | This work was sponsored by Google. | |
181 | [Steve Henson] | |
182 | ||
249a77f5 DSH |
183 | *) Support for freshest CRL extension. |
184 | ||
185 | This work was sponsored by Google. | |
186 | [Steve Henson] | |
187 | ||
d0fff69d DSH |
188 | *) Initial indirect CRL support. Currently only supported in the CRLs |
189 | passed directly and not via lookup. Process certificate issuer | |
190 | CRL entry extension and lookup CRL entries by bother issuer name | |
4b96839f | 191 | and serial number. Check and process CRL issuer entry in IDP extension. |
d0fff69d DSH |
192 | |
193 | This work was sponsored by Google. | |
194 | [Steve Henson] | |
195 | ||
9d84d4ed DSH |
196 | *) Add support for distinct certificate and CRL paths. The CRL issuer |
197 | certificate is validated separately in this case. Only enabled if | |
198 | an extended CRL support flag is set: this flag will enable additional | |
199 | CRL functionality in future. | |
200 | ||
201 | This work was sponsored by Google. | |
202 | [Steve Henson] | |
9d84d4ed | 203 | |
002e66c0 DSH |
204 | *) Add support for policy mappings extension. |
205 | ||
206 | This work was sponsored by Google. | |
207 | [Steve Henson] | |
208 | ||
e9746e03 DSH |
209 | *) Fixes to pathlength constraint, self issued certificate handling, |
210 | policy processing to align with RFC3280 and PKITS tests. | |
211 | ||
212 | This work was sponsored by Google. | |
213 | [Steve Henson] | |
214 | ||
215 | *) Support for name constraints certificate extension. DN, email, DNS | |
216 | and URI types are currently supported. | |
217 | ||
218 | This work was sponsored by Google. | |
219 | [Steve Henson] | |
220 | ||
4c329696 GT |
221 | *) To cater for systems that provide a pointer-based thread ID rather |
222 | than numeric, deprecate the current numeric thread ID mechanism and | |
223 | replace it with a structure and associated callback type. This | |
224 | mechanism allows a numeric "hash" to be extracted from a thread ID in | |
225 | either case, and on platforms where pointers are larger than 'long', | |
226 | mixing is done to help ensure the numeric 'hash' is usable even if it | |
227 | can't be guaranteed unique. The default mechanism is to use "&errno" | |
228 | as a pointer-based thread ID to distinguish between threads. | |
229 | ||
230 | Applications that want to provide their own thread IDs should now use | |
231 | CRYPTO_THREADID_set_callback() to register a callback that will call | |
232 | either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer(). | |
233 | ||
2ecd2ede BM |
234 | Note that ERR_remove_state() is now deprecated, because it is tied |
235 | to the assumption that thread IDs are numeric. ERR_remove_state(0) | |
236 | to free the current thread's error state should be replaced by | |
237 | ERR_remove_thread_state(NULL). | |
238 | ||
4c329696 GT |
239 | (This new approach replaces the functions CRYPTO_set_idptr_callback(), |
240 | CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in | |
241 | OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an | |
242 | application was previously providing a numeric thread callback that | |
243 | was inappropriate for distinguishing threads, then uniqueness might | |
244 | have been obtained with &errno that happened immediately in the | |
245 | intermediate development versions of OpenSSL; this is no longer the | |
246 | case, the numeric thread callback will now override the automatic use | |
247 | of &errno.) | |
248 | [Geoff Thorpe, with help from Bodo Moeller] | |
249 | ||
5cbd2033 DSH |
250 | *) Initial support for different CRL issuing certificates. This covers a |
251 | simple case where the self issued certificates in the chain exist and | |
252 | the real CRL issuer is higher in the existing chain. | |
e9746e03 DSH |
253 | |
254 | This work was sponsored by Google. | |
5cbd2033 DSH |
255 | [Steve Henson] |
256 | ||
5ce278a7 BL |
257 | *) Removed effectively defunct crypto/store from the build. |
258 | [Ben Laurie] | |
259 | ||
260 | *) Revamp of STACK to provide stronger type-checking. Still to come: | |
261 | TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE, | |
262 | ASN1_STRING, CONF_VALUE. | |
263 | [Ben Laurie] | |
264 | ||
8671b898 BL |
265 | *) Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer |
266 | RAM on SSL connections. This option can save about 34k per idle SSL. | |
267 | [Nick Mathewson] | |
268 | ||
3c1d6bbc BL |
269 | *) Revamp of LHASH to provide stronger type-checking. Still to come: |
270 | STACK, TXT_DB, bsearch, qsort. | |
271 | [Ben Laurie] | |
272 | ||
8931b30d DSH |
273 | *) Initial support for Cryptographic Message Syntax (aka CMS) based |
274 | on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility, | |
fd47c361 | 275 | support for data, signedData, compressedData, digestedData and |
eb9d8d8c DSH |
276 | encryptedData, envelopedData types included. Scripts to check against |
277 | RFC4134 examples draft and interop and consistency checks of many | |
278 | content types and variants. | |
8931b30d DSH |
279 | [Steve Henson] |
280 | ||
3df93571 | 281 | *) Add options to enc utility to support use of zlib compression BIO. |
8931b30d DSH |
282 | [Steve Henson] |
283 | ||
73980531 DSH |
284 | *) Extend mk1mf to support importing of options and assembly language |
285 | files from Configure script, currently only included in VC-WIN32. | |
286 | The assembly language rules can now optionally generate the source | |
287 | files from the associated perl scripts. | |
288 | [Steve Henson] | |
289 | ||
0e1dba93 DSH |
290 | *) Implement remaining functionality needed to support GOST ciphersuites. |
291 | Interop testing has been performed using CryptoPro implementations. | |
292 | [Victor B. Wagner <vitus@cryptocom.ru>] | |
293 | ||
0023adb4 AP |
294 | *) s390x assembler pack. |
295 | [Andy Polyakov] | |
296 | ||
4c7c5ff6 AP |
297 | *) ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU |
298 | "family." | |
299 | [Andy Polyakov] | |
300 | ||
761772d7 BM |
301 | *) Implement Opaque PRF Input TLS extension as specified in |
302 | draft-rescorla-tls-opaque-prf-input-00.txt. Since this is not an | |
303 | official specification yet and no extension type assignment by | |
304 | IANA exists, this extension (for now) will have to be explicitly | |
305 | enabled when building OpenSSL by providing the extension number | |
306 | to use. For example, specify an option | |
307 | ||
308 | -DTLSEXT_TYPE_opaque_prf_input=0x9527 | |
309 | ||
310 | to the "config" or "Configure" script to enable the extension, | |
311 | assuming extension number 0x9527 (which is a completely arbitrary | |
312 | and unofficial assignment based on the MD5 hash of the Internet | |
313 | Draft). Note that by doing so, you potentially lose | |
314 | interoperability with other TLS implementations since these might | |
315 | be using the same extension number for other purposes. | |
316 | ||
317 | SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the | |
318 | opaque PRF input value to use in the handshake. This will create | |
319 | an interal copy of the length-'len' string at 'src', and will | |
320 | return non-zero for success. | |
321 | ||
322 | To get more control and flexibility, provide a callback function | |
323 | by using | |
324 | ||
325 | SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb) | |
326 | SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg) | |
327 | ||
328 | where | |
329 | ||
330 | int (*cb)(SSL *, void *peerinput, size_t len, void *arg); | |
331 | void *arg; | |
332 | ||
333 | Callback function 'cb' will be called in handshakes, and is | |
334 | expected to use SSL_set_tlsext_opaque_prf_input() as appropriate. | |
335 | Argument 'arg' is for application purposes (the value as given to | |
336 | SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly | |
337 | be provided to the callback function). The callback function | |
338 | has to return non-zero to report success: usually 1 to use opaque | |
339 | PRF input just if possible, or 2 to enforce use of the opaque PRF | |
340 | input. In the latter case, the library will abort the handshake | |
341 | if opaque PRF input is not successfully negotiated. | |
342 | ||
343 | Arguments 'peerinput' and 'len' given to the callback function | |
344 | will always be NULL and 0 in the case of a client. A server will | |
345 | see the client's opaque PRF input through these variables if | |
346 | available (NULL and 0 otherwise). Note that if the server | |
347 | provides an opaque PRF input, the length must be the same as the | |
348 | length of the client's opaque PRF input. | |
349 | ||
350 | Note that the callback function will only be called when creating | |
351 | a new session (session resumption can resume whatever was | |
352 | previously negotiated), and will not be called in SSL 2.0 | |
353 | handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or | |
354 | SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended | |
355 | for applications that need to enforce opaque PRF input. | |
356 | ||
357 | [Bodo Moeller] | |
358 | ||
81025661 DSH |
359 | *) Update ssl code to support digests other than SHA1+MD5 for handshake |
360 | MAC. | |
361 | ||
362 | [Victor B. Wagner <vitus@cryptocom.ru>] | |
363 | ||
6434abbf DSH |
364 | *) Add RFC4507 support to OpenSSL. This includes the corrections in |
365 | RFC4507bis. The encrypted ticket format is an encrypted encoded | |
366 | SSL_SESSION structure, that way new session features are automatically | |
367 | supported. | |
368 | ||
ba0e826d DSH |
369 | If a client application caches session in an SSL_SESSION structure |
370 | support is transparent because tickets are now stored in the encoded | |
371 | SSL_SESSION. | |
372 | ||
373 | The SSL_CTX structure automatically generates keys for ticket | |
374 | protection in servers so again support should be possible | |
6434abbf DSH |
375 | with no application modification. |
376 | ||
377 | If a client or server wishes to disable RFC4507 support then the option | |
378 | SSL_OP_NO_TICKET can be set. | |
379 | ||
380 | Add a TLS extension debugging callback to allow the contents of any client | |
381 | or server extensions to be examined. | |
ec5d7473 DSH |
382 | |
383 | This work was sponsored by Google. | |
6434abbf DSH |
384 | [Steve Henson] |
385 | ||
3c07d3a3 DSH |
386 | *) Final changes to avoid use of pointer pointer casts in OpenSSL. |
387 | OpenSSL should now compile cleanly on gcc 4.2 | |
388 | [Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson] | |
389 | ||
b948e2c5 DSH |
390 | *) Update SSL library to use new EVP_PKEY MAC API. Include generic MAC |
391 | support including streaming MAC support: this is required for GOST | |
392 | ciphersuite support. | |
393 | [Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson] | |
394 | ||
9cfc8a9d DSH |
395 | *) Add option -stream to use PKCS#7 streaming in smime utility. New |
396 | function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream() | |
397 | to output in BER and PEM format. | |
398 | [Steve Henson] | |
399 | ||
47b71e6e DSH |
400 | *) Experimental support for use of HMAC via EVP_PKEY interface. This |
401 | allows HMAC to be handled via the EVP_DigestSign*() interface. The | |
402 | EVP_PKEY "key" in this case is the HMAC key, potentially allowing | |
2022cfe0 DSH |
403 | ENGINE support for HMAC keys which are unextractable. New -mac and |
404 | -macopt options to dgst utility. | |
47b71e6e DSH |
405 | [Steve Henson] |
406 | ||
d952c79a DSH |
407 | *) New option -sigopt to dgst utility. Update dgst to use |
408 | EVP_Digest{Sign,Verify}*. These two changes make it possible to use | |
409 | alternative signing paramaters such as X9.31 or PSS in the dgst | |
410 | utility. | |
411 | [Steve Henson] | |
412 | ||
fd5bc65c BM |
413 | *) Change ssl_cipher_apply_rule(), the internal function that does |
414 | the work each time a ciphersuite string requests enabling | |
415 | ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or | |
416 | removing ("!foo+bar") a class of ciphersuites: Now it maintains | |
417 | the order of disabled ciphersuites such that those ciphersuites | |
418 | that most recently went from enabled to disabled not only stay | |
419 | in order with respect to each other, but also have higher priority | |
420 | than other disabled ciphersuites the next time ciphersuites are | |
421 | enabled again. | |
422 | ||
423 | This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable | |
424 | the same ciphersuites as with "HIGH" alone, but in a specific | |
425 | order where the PSK ciphersuites come first (since they are the | |
426 | most recently disabled ciphersuites when "HIGH" is parsed). | |
427 | ||
428 | Also, change ssl_create_cipher_list() (using this new | |
429 | funcionality) such that between otherwise identical | |
430 | cihpersuites, ephemeral ECDH is preferred over ephemeral DH in | |
431 | the default order. | |
432 | [Bodo Moeller] | |
433 | ||
0a05123a BM |
434 | *) Change ssl_create_cipher_list() so that it automatically |
435 | arranges the ciphersuites in reasonable order before starting | |
436 | to process the rule string. Thus, the definition for "DEFAULT" | |
437 | (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but | |
438 | remains equivalent to "AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH". | |
439 | This makes it much easier to arrive at a reasonable default order | |
440 | in applications for which anonymous ciphers are OK (meaning | |
441 | that you can't actually use DEFAULT). | |
442 | [Bodo Moeller; suggested by Victor Duchovni] | |
443 | ||
52b8dad8 BM |
444 | *) Split the SSL/TLS algorithm mask (as used for ciphersuite string |
445 | processing) into multiple integers instead of setting | |
446 | "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK", | |
447 | "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer. | |
448 | (These masks as well as the individual bit definitions are hidden | |
449 | away into the non-exported interface ssl/ssl_locl.h, so this | |
450 | change to the definition of the SSL_CIPHER structure shouldn't | |
451 | affect applications.) This give us more bits for each of these | |
452 | categories, so there is no longer a need to coagulate AES128 and | |
453 | AES256 into a single algorithm bit, and to coagulate Camellia128 | |
454 | and Camellia256 into a single algorithm bit, which has led to all | |
455 | kinds of kludges. | |
456 | ||
457 | Thus, among other things, the kludge introduced in 0.9.7m and | |
458 | 0.9.8e for masking out AES256 independently of AES128 or masking | |
459 | out Camellia256 independently of AES256 is not needed here in 0.9.9. | |
460 | ||
461 | With the change, we also introduce new ciphersuite aliases that | |
462 | so far were missing: "AES128", "AES256", "CAMELLIA128", and | |
463 | "CAMELLIA256". | |
464 | [Bodo Moeller] | |
465 | ||
357d5de5 NL |
466 | *) Add support for dsa-with-SHA224 and dsa-with-SHA256. |
467 | Use the leftmost N bytes of the signature input if the input is | |
468 | larger than the prime q (with N being the size in bytes of q). | |
469 | [Nils Larsch] | |
470 | ||
11d8cdc6 DSH |
471 | *) Very *very* experimental PKCS#7 streaming encoder support. Nothing uses |
472 | it yet and it is largely untested. | |
473 | [Steve Henson] | |
474 | ||
06e2dd03 NL |
475 | *) Add support for the ecdsa-with-SHA224/256/384/512 signature types. |
476 | [Nils Larsch] | |
477 | ||
de121164 | 478 | *) Initial incomplete changes to avoid need for function casts in OpenSSL |
297e6f19 | 479 | some compilers (gcc 4.2 and later) reject their use. Safestack is |
a6fbcb42 | 480 | reimplemented. Update ASN1 to avoid use of legacy functions. |
de121164 DSH |
481 | [Steve Henson] |
482 | ||
3189772e AP |
483 | *) Win32/64 targets are linked with Winsock2. |
484 | [Andy Polyakov] | |
485 | ||
010fa0b3 DSH |
486 | *) Add an X509_CRL_METHOD structure to allow CRL processing to be redirected |
487 | to external functions. This can be used to increase CRL handling | |
488 | efficiency especially when CRLs are very large by (for example) storing | |
489 | the CRL revoked certificates in a database. | |
490 | [Steve Henson] | |
491 | ||
5d20c4fb DSH |
492 | *) Overhaul of by_dir code. Add support for dynamic loading of CRLs so |
493 | new CRLs added to a directory can be used. New command line option | |
494 | -verify_return_error to s_client and s_server. This causes real errors | |
495 | to be returned by the verify callback instead of carrying on no matter | |
496 | what. This reflects the way a "real world" verify callback would behave. | |
497 | [Steve Henson] | |
498 | ||
499 | *) GOST engine, supporting several GOST algorithms and public key formats. | |
500 | Kindly donated by Cryptocom. | |
501 | [Cryptocom] | |
502 | ||
bc7535bc DSH |
503 | *) Partial support for Issuing Distribution Point CRL extension. CRLs |
504 | partitioned by DP are handled but no indirect CRL or reason partitioning | |
505 | (yet). Complete overhaul of CRL handling: now the most suitable CRL is | |
506 | selected via a scoring technique which handles IDP and AKID in CRLs. | |
507 | [Steve Henson] | |
508 | ||
509 | *) New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which | |
510 | will ultimately be used for all verify operations: this will remove the | |
511 | X509_STORE dependency on certificate verification and allow alternative | |
512 | lookup methods. X509_STORE based implementations of these two callbacks. | |
513 | [Steve Henson] | |
514 | ||
f6e7d014 DSH |
515 | *) Allow multiple CRLs to exist in an X509_STORE with matching issuer names. |
516 | Modify get_crl() to find a valid (unexpired) CRL if possible. | |
517 | [Steve Henson] | |
518 | ||
edc54021 DSH |
519 | *) New function X509_CRL_match() to check if two CRLs are identical. Normally |
520 | this would be called X509_CRL_cmp() but that name is already used by | |
521 | a function that just compares CRL issuer names. Cache several CRL | |
522 | extensions in X509_CRL structure and cache CRLDP in X509. | |
523 | [Steve Henson] | |
524 | ||
450ea834 DSH |
525 | *) Store a "canonical" representation of X509_NAME structure (ASN1 Name) |
526 | this maps equivalent X509_NAME structures into a consistent structure. | |
527 | Name comparison can then be performed rapidly using memcmp(). | |
528 | [Steve Henson] | |
529 | ||
454dbbc5 DSH |
530 | *) Non-blocking OCSP request processing. Add -timeout option to ocsp |
531 | utility. | |
c1c6c0bf DSH |
532 | [Steve Henson] |
533 | ||
b7683e3a DSH |
534 | *) Allow digests to supply their own micalg string for S/MIME type using |
535 | the ctrl EVP_MD_CTRL_MICALG. | |
536 | [Steve Henson] | |
537 | ||
538 | *) During PKCS7 signing pass the PKCS7 SignerInfo structure to the | |
539 | EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN | |
540 | ctrl. It can then customise the structure before and/or after signing | |
541 | if necessary. | |
542 | [Steve Henson] | |
543 | ||
0ee2166c DSH |
544 | *) New function OBJ_add_sigid() to allow application defined signature OIDs |
545 | to be added to OpenSSLs internal tables. New function OBJ_sigid_free() | |
546 | to free up any added signature OIDs. | |
547 | [Steve Henson] | |
548 | ||
5ba4bf35 DSH |
549 | *) New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(), |
550 | EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal | |
551 | digest and cipher tables. New options added to openssl utility: | |
552 | list-message-digest-algorithms and list-cipher-algorithms. | |
553 | [Steve Henson] | |
554 | ||
c4e7870a BM |
555 | *) Change the array representation of binary polynomials: the list |
556 | of degrees of non-zero coefficients is now terminated with -1. | |
557 | Previously it was terminated with 0, which was also part of the | |
558 | value; thus, the array representation was not applicable to | |
559 | polynomials where t^0 has coefficient zero. This change makes | |
560 | the array representation useful in a more general context. | |
561 | [Douglas Stebila] | |
562 | ||
89bbe14c BM |
563 | *) Various modifications and fixes to SSL/TLS cipher string |
564 | handling. For ECC, the code now distinguishes between fixed ECDH | |
565 | with RSA certificates on the one hand and with ECDSA certificates | |
566 | on the other hand, since these are separate ciphersuites. The | |
567 | unused code for Fortezza ciphersuites has been removed. | |
568 | ||
569 | For consistency with EDH, ephemeral ECDH is now called "EECDH" | |
570 | (not "ECDHE"). For consistency with the code for DH | |
571 | certificates, use of ECDH certificates is now considered ECDH | |
572 | authentication, not RSA or ECDSA authentication (the latter is | |
573 | merely the CA's signing algorithm and not actively used in the | |
574 | protocol). | |
575 | ||
576 | The temporary ciphersuite alias "ECCdraft" is no longer | |
577 | available, and ECC ciphersuites are no longer excluded from "ALL" | |
578 | and "DEFAULT". The following aliases now exist for RFC 4492 | |
579 | ciphersuites, most of these by analogy with the DH case: | |
580 | ||
581 | kECDHr - ECDH cert, signed with RSA | |
582 | kECDHe - ECDH cert, signed with ECDSA | |
583 | kECDH - ECDH cert (signed with either RSA or ECDSA) | |
584 | kEECDH - ephemeral ECDH | |
585 | ECDH - ECDH cert or ephemeral ECDH | |
586 | ||
587 | aECDH - ECDH cert | |
588 | aECDSA - ECDSA cert | |
589 | ECDSA - ECDSA cert | |
590 | ||
591 | AECDH - anonymous ECDH | |
592 | EECDH - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH") | |
593 | ||
594 | [Bodo Moeller] | |
595 | ||
fb7b3932 DSH |
596 | *) Add additional S/MIME capabilities for AES and GOST ciphers if supported. |
597 | Use correct micalg parameters depending on digest(s) in signed message. | |
598 | [Steve Henson] | |
599 | ||
01b8b3c7 DSH |
600 | *) Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process |
601 | an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code. | |
602 | [Steve Henson] | |
de9fcfe3 | 603 | |
58aa573a | 604 | *) Initial engine support for EVP_PKEY_METHOD. New functions to permit |
c9777d26 DSH |
605 | an engine to register a method. Add ENGINE lookups for methods and |
606 | functional reference processing. | |
58aa573a DSH |
607 | [Steve Henson] |
608 | ||
91c9e621 DSH |
609 | *) New functions EVP_Digest{Sign,Verify)*. These are enchance versions of |
610 | EVP_{Sign,Verify}* which allow an application to customise the signature | |
611 | process. | |
612 | [Steve Henson] | |
613 | ||
55311921 DSH |
614 | *) New -resign option to smime utility. This adds one or more signers |
615 | to an existing PKCS#7 signedData structure. Also -md option to use an | |
616 | alternative message digest algorithm for signing. | |
617 | [Steve Henson] | |
618 | ||
a6e7fcd1 DSH |
619 | *) Tidy up PKCS#7 routines and add new functions to make it easier to |
620 | create PKCS7 structures containing multiple signers. Update smime | |
621 | application to support multiple signers. | |
622 | [Steve Henson] | |
623 | ||
121dd39f DSH |
624 | *) New -macalg option to pkcs12 utility to allow setting of an alternative |
625 | digest MAC. | |
626 | [Steve Henson] | |
627 | ||
856640b5 | 628 | *) Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC. |
b8f702a0 | 629 | Reorganize PBE internals to lookup from a static table using NIDs, |
6d3a1eac DSH |
630 | add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl: |
631 | EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative | |
632 | PRF which will be automatically used with PBES2. | |
856640b5 DSH |
633 | [Steve Henson] |
634 | ||
34b3c72e | 635 | *) Replace the algorithm specific calls to generate keys in "req" with the |
959e8dfe DSH |
636 | new API. |
637 | [Steve Henson] | |
638 | ||
399a6f0b DSH |
639 | *) Update PKCS#7 enveloped data routines to use new API. This is now |
640 | supported by any public key method supporting the encrypt operation. A | |
641 | ctrl is added to allow the public key algorithm to examine or modify | |
642 | the PKCS#7 RecipientInfo structure if it needs to: for RSA this is | |
643 | a no op. | |
644 | [Steve Henson] | |
28e4fe34 | 645 | |
03919683 DSH |
646 | *) Add a ctrl to asn1 method to allow a public key algorithm to express |
647 | a default digest type to use. In most cases this will be SHA1 but some | |
648 | algorithms (such as GOST) need to specify an alternative digest. The | |
649 | return value indicates how strong the prefernce is 1 means optional and | |
650 | 2 is mandatory (that is it is the only supported type). Modify | |
651 | ASN1_item_sign() to accept a NULL digest argument to indicate it should | |
652 | use the default md. Update openssl utilities to use the default digest | |
653 | type for signing if it is not explicitly indicated. | |
654 | [Steve Henson] | |
655 | ||
ee1d9ec0 DSH |
656 | *) Use OID cross reference table in ASN1_sign() and ASN1_verify(). New |
657 | EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant | |
658 | signing method from the key type. This effectively removes the link | |
659 | between digests and public key types. | |
660 | [Steve Henson] | |
661 | ||
d2027098 DSH |
662 | *) Add an OID cross reference table and utility functions. Its purpose is to |
663 | translate between signature OIDs such as SHA1WithrsaEncryption and SHA1, | |
664 | rsaEncryption. This will allow some of the algorithm specific hackery | |
665 | needed to use the correct OID to be removed. | |
666 | [Steve Henson] | |
667 | ||
492a9e24 DSH |
668 | *) Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO |
669 | structures for PKCS7_sign(). They are now set up by the relevant public | |
670 | key ASN1 method. | |
671 | [Steve Henson] | |
672 | ||
9ca7047d DSH |
673 | *) Add provisional EC pkey method with support for ECDSA and ECDH. |
674 | [Steve Henson] | |
675 | ||
ffb1ac67 DSH |
676 | *) Add support for key derivation (agreement) in the API, DH method and |
677 | pkeyutl. | |
678 | [Steve Henson] | |
679 | ||
3ba0885a DSH |
680 | *) Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support |
681 | public and private key formats. As a side effect these add additional | |
682 | command line functionality not previously available: DSA signatures can be | |
683 | generated and verified using pkeyutl and DH key support and generation in | |
684 | pkey, genpkey. | |
685 | [Steve Henson] | |
686 | ||
4700aea9 UM |
687 | *) BeOS support. |
688 | [Oliver Tappe <zooey@hirschkaefer.de>] | |
689 | ||
690 | *) New make target "install_html_docs" installs HTML renditions of the | |
691 | manual pages. | |
692 | [Oliver Tappe <zooey@hirschkaefer.de>] | |
693 | ||
f5cda4cb DSH |
694 | *) New utility "genpkey" this is analagous to "genrsa" etc except it can |
695 | generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to | |
696 | support key and parameter generation and add initial key generation | |
697 | functionality for RSA. | |
698 | [Steve Henson] | |
699 | ||
f733a5ef DSH |
700 | *) Add functions for main EVP_PKEY_method operations. The undocumented |
701 | functions EVP_PKEY_{encrypt,decrypt} have been renamed to | |
702 | EVP_PKEY_{encrypt,decrypt}_old. | |
703 | [Steve Henson] | |
704 | ||
0b6f3c66 DSH |
705 | *) Initial definitions for EVP_PKEY_METHOD. This will be a high level public |
706 | key API, doesn't do much yet. | |
707 | [Steve Henson] | |
708 | ||
0b33dac3 DSH |
709 | *) New function EVP_PKEY_asn1_get0_info() to retrieve information about |
710 | public key algorithms. New option to openssl utility: | |
711 | "list-public-key-algorithms" to print out info. | |
712 | [Steve Henson] | |
713 | ||
33273721 BM |
714 | *) Implement the Supported Elliptic Curves Extension for |
715 | ECC ciphersuites from draft-ietf-tls-ecc-12.txt. | |
716 | [Douglas Stebila] | |
717 | ||
246e0931 DSH |
718 | *) Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or |
719 | EVP_CIPHER structures to avoid later problems in EVP_cleanup(). | |
720 | [Steve Henson] | |
721 | ||
3e4585c8 | 722 | *) New utilities pkey and pkeyparam. These are similar to algorithm specific |
f5cda4cb | 723 | utilities such as rsa, dsa, dsaparam etc except they process any key |
3e4585c8 | 724 | type. |
3e84b6e1 DSH |
725 | [Steve Henson] |
726 | ||
35208f36 DSH |
727 | *) Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New |
728 | functions EVP_PKEY_print_public(), EVP_PKEY_print_private(), | |
729 | EVP_PKEY_print_param() to print public key data from an EVP_PKEY | |
730 | structure. | |
731 | [Steve Henson] | |
732 | ||
448be743 DSH |
733 | *) Initial support for pluggable public key ASN1. |
734 | De-spaghettify the public key ASN1 handling. Move public and private | |
735 | key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate | |
736 | algorithm specific handling to a single module within the relevant | |
737 | algorithm directory. Add functions to allow (near) opaque processing | |
738 | of public and private key structures. | |
739 | [Steve Henson] | |
740 | ||
36ca4ba6 BM |
741 | *) Implement the Supported Point Formats Extension for |
742 | ECC ciphersuites from draft-ietf-tls-ecc-12.txt. | |
743 | [Douglas Stebila] | |
744 | ||
ddac1974 NL |
745 | *) Add initial support for RFC 4279 PSK TLS ciphersuites. Add members |
746 | for the psk identity [hint] and the psk callback functions to the | |
747 | SSL_SESSION, SSL and SSL_CTX structure. | |
748 | ||
749 | New ciphersuites: | |
750 | PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA, | |
751 | PSK-AES256-CBC-SHA | |
752 | ||
753 | New functions: | |
754 | SSL_CTX_use_psk_identity_hint | |
755 | SSL_get_psk_identity_hint | |
756 | SSL_get_psk_identity | |
757 | SSL_use_psk_identity_hint | |
758 | ||
759 | [Mika Kousa and Pasi Eronen of Nokia Corporation] | |
760 | ||
c7235be6 UM |
761 | *) Add RFC 3161 compliant time stamp request creation, response generation |
762 | and response verification functionality. | |
763 |