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