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