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