]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES
Add notes on the added support for aep and sureware crypto cards in
[thirdparty/openssl.git] / CHANGES
CommitLineData
81a6c781 1
f1c236f8 2 OpenSSL CHANGES
651d0aff
RE
3 _______________
4
a9d2bc49 5 Changes between 0.9.6 and 0.9.7 [xx XXX 2001]
a43cf9fa 6
b9a3ef4c
RL
7 OpenSSL 0.9.6a/0.9.6b/0.9.6c (bugfix releases, 5 Apr 2001, 9 July 2001
8 and 21 Dec 2001) and OpenSSL 0.9.7 were developed in parallel, based
9 on OpenSSL 0.9.6.
e9ad0d2c 10
a9d2bc49 11 Change log entries are tagged as follows:
daba492c
BM
12 -) applies to 0.9.6a/0.9.6b/0.9.6c only
13 *) applies to 0.9.6a/0.9.6b/0.9.6c and 0.9.7
a9d2bc49
BM
14 +) applies to 0.9.7 only
15
3cd039dd
RL
16 +) Support for crypto accelerator cards from Accelerated Encryption
17 Processing, www.aep.ie. (Use engine 'aep')
18 The support was copied from 0.9.6c [engine] and adapted/corrected
19 to work with the new engine framework.
20 [AEP Inc. and Richard Levitte]
21
22 +) Support for SureWare crypto accelerator cards from Baltimore
23 Technologies. (Use engine 'sureware')
24 The support was copied from 0.9.6c [engine] and adapted
25 to work with the new engine framework.
26 [Richard Levitte]
27
b9a3ef4c
RL
28 *) Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested
29 value is 0.
30 [Richard Levitte]
31
1199e2d8
RL
32 +) Have the CHIL engine fork-safe (as defined by nCipher) and actually
33 make the newer ENGINE framework commands for the CHIL engine work.
34 [Toomas Kiisk <vix@cyber.ee> and Richard Levitte]
35
a3fffd64
RL
36 +) Make it possible to produce shared libraries on ReliantUNIX.
37 [Robert Dahlem <Robert.Dahlem@ffm2.siemens.de> via Richard Levitte]
38
f14845d9
RL
39 *) Add the configuration target linux-s390x.
40 [Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte]
41
80bb905d
RL
42 +) Add the configuration target debug-linux-ppro.
43 Make 'openssl rsa' use the general key loading routines
44 implemented in apps.c, and make those routines able to
45 handle the key format FORMAT_NETSCAPE and the variant
46 FORMAT_IISSGC.
47 [Toomas Kiisk <vix@cyber.ee> via Richard Levitte]
48
49 *) Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
50 [Toomas Kiisk <vix@cyber.ee> via Richard Levitte]
51
8242a6a9
RL
52 +) Add -keyform to rsautl, and document -engine.
53 [Richard Levitte, inspired by Toomas Kiisk <vix@cyber.ee>]
54
a14e2d9d
BM
55 +) Change BIO_new_file (crypto/bio/bss_file.c) to use new
56 BIO_R_NO_SUCH_FILE error code rather than the generic
57 ERR_R_SYS_LIB error code if fopen() fails with ENOENT.
58 [Ben Laurie]
59
60 +) Add new functions
61 ERR_peek_last_error
62 ERR_peek_last_error_line
63 ERR_peek_last_error_line_data.
64 These are similar to
65 ERR_peek_error
66 ERR_peek_error_line
67 ERR_peek_error_line_data,
68 but report on the latest error recorded rather than the first one
69 still in the error queue.
70 [Ben Laurie, Bodo Moeller]
71
df5eaa8a
DSH
72 +) default_algorithms option in ENGINE config module. This allows things
73 like:
74 default_algorithms = ALL
75 default_algorithms = RSA, DSA, RAND, CIPHERS, DIGESTS
76 [Steve Henson]
77
c9501c22
DSH
78 +) Prelminary ENGINE config module.
79 [Steve Henson]
80
8c74b5e5
BM
81 *) The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of
82 ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag
83 variable as an indication that a ClientHello message has been
84 received. As the flag value will be lost between multiple
85 invocations of ssl3_accept when using non-blocking I/O, the
86 function may not be aware that a handshake has actually taken
87 place, thus preventing a new session from being added to the
88 session cache.
89
90 To avoid this problem, we now set s->new_session to 2 instead of
91 using a local variable.
92 [Lutz Jaenicke, Bodo Moeller]
93
c59ba5b5
BM
94 *) Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c)
95 if the SSL_R_LENGTH_MISMATCH error is detected.
96 [Geoff Thorpe, Bodo Moeller]
97
bc37d996
DSH
98 +) New experimental application configuration code.
99 [Steve Henson]
100
d59fb0dd
BM
101 *) New 'shared_ldflag' column in Configure platform table.
102 [Richard Levitte]
103
e5d6528a
BM
104 *) Fix EVP_CIPHER_mode macro.
105 ["Dan S. Camper" <dan@bti.net>]
106
6f9079fd
RL
107 +) Change the AES code to follow the same name structure as all other
108 symmetric ciphers, and behave the same way. Move everything to
109 the directory crypto/aes, thereby obsoleting crypto/rijndael.
110 [Stephen Sprunk <stephen@sprunk.org> and Richard Levitte]
111
dcbbf83d
UM
112 *) Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown
113 type, we must throw them away by setting rr->length to 0.
114 [D P Chang <dpc@qualys.com>]
115
3c89d78d
BM
116 -) OpenSSL 0.9.6c released [21 dec 2001]
117
7c517a04
BL
118 +) SECURITY: remove unsafe setjmp/signal interaction from ui_openssl.c.
119 [Ben Laurie and Theo de Raadt]
120
66df02fd
BM
121 *) Fix BN_rand_range bug pointed out by Dominikus Scherkl
122 <Dominikus.Scherkl@biodata.com>. (The previous implementation
123 worked incorrectly for those cases where range = 10..._2 and
124 3*range is two bits longer than range.)
125 [Bodo Moeller]
126
b5348a09
BM
127 *) Only add signing time to PKCS7 structures if it is not already
128 present.
f3e24bad
DSH
129 [Steve Henson]
130
35e25255
BM
131 *) Fix crypto/objects/objects.h: "ld-ce" should be "id-ce",
132 OBJ_ld_ce should be OBJ_id_ce.
133 Also some ip-pda OIDs in crypto/objects/objects.txt were
134 incorrect (cf. RFC 3039).
135 [Matt Cooper, Frederic Giudicelli, Bodo Moeller]
136
21a85f19
DSH
137 +) Add option to output public keys in req command.
138 [Massimiliano Pala madwolf@openca.org]
139
883b0c22
BM
140 *) Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid()
141 returns early because it has nothing to do.
142 [Andy Schneider <andy.schneider@bjss.co.uk>]
143
144 *) [In 0.9.6c-engine and 0.9.7 release:]
145 Fix mutex callback return values in crypto/engine/hw_ncipher.c.
146 [Andy Schneider <andy.schneider@bjss.co.uk>]
147
898f856c
BM
148 -) [In 0.9.6c-engine release:]
149 Add support for Cryptographic Appliance's keyserver technology.
150 (Use engine 'keyclient')
151 [Cryptographic Appliances and Geoff Thorpe]
152
1d4581c2
BM
153 *) Add a configuration entry for OS/390 Unix. The C compiler 'c89'
154 is called via tools/c89.sh because arguments have to be
155 rearranged (all '-L' options must appear before the first object
156 modules).
157 [Richard Shapiro <rshapiro@abinitio.com>]
158
76c4336c
BM
159 +) Use wNAFs in EC_POINTs_mul() for improved efficiency
160 (up to about 10% better than before for P-192 and P-224).
3ba1f111
BM
161 [Bodo Moeller]
162
83978bd3
BM
163 -) [In 0.9.6c-engine release:]
164 Add support for Broadcom crypto accelerator cards, backported
165 from 0.9.7.
166 [Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox]
167
168 -) [In 0.9.6c-engine release:]
169 Add support for SureWare crypto accelerator cards from
170 Baltimore Technologies. (Use engine 'sureware')
171 [Baltimore Technologies and Mark Cox]
172
173 -) [In 0.9.6c-engine release:]
174 Add support for crypto accelerator cards from Accelerated
175 Encryption Processing, www.aep.ie. (Use engine 'aep')
176 [AEP Inc. and Mark Cox]
177
c5571db0
BM
178 *) Add a configuration entry for gcc on UnixWare.
179 [Gary Benson <gbenson@redhat.com>]
180
7aa983c6
BM
181 +) New functions/macros
182
183 SSL_CTX_set_msg_callback(ctx, cb)
184 SSL_CTX_set_msg_callback_arg(ctx, arg)
185 SSL_set_msg_callback(ssl, cb)
186 SSL_set_msg_callback_arg(ssl, arg)
187
188 to request calling a callback function
189
190 void cb(int write_p, int version, int content_type,
191 const void *buf, size_t len, SSL *ssl, void *arg)
192
193 whenever a protocol message has been completely received
194 (write_p == 0) or sent (write_p == 1). Here 'version' is the
195 protocol version according to which the SSL library interprets
196 the current protocol message (SSL2_VERSION, SSL3_VERSION, or
197 TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or
198 the content type as defined in the SSL 3.0/TLS 1.0 protocol
199 specification (change_cipher_spec(20), alert(21), handshake(22)).
200 'buf' and 'len' point to the actual message, 'ssl' to the
201 SSL object, and 'arg' is the application-defined value set by
202 SSL[_CTX]_set_msg_callback_arg().
203
204 'openssl s_client' and 'openssl s_server' have new '-msg' options
205 to enable a callback that displays all protocol messages.
206 [Bodo Moeller]
207
208 *) Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake
209 messages are stored in a single piece (fixed-length part and
210 variable-length part combined) and fix various bugs found on the way.
211 [Bodo Moeller]
212
a7b42009
RL
213 +) Change the shared library support so shared libraries are built as
214 soon as the corresponding static library is finished, and thereby get
215 openssl and the test programs linked against the shared library.
216 This still only happens when the keyword "shard" has been given to
217 the configuration scripts.
218
219 NOTE: shared library support is still an experimental thing, and
220 backward binary compatibility is still not guaranteed.
221 ["Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte]
222
7d5b04db
DSH
223 +) Add support for Subject Information Access extension.
224 [Peter Sylvester <Peter.Sylvester@EdelWeb.fr>]
225
48b0cf8b
BM
226 +) Make BUF_MEM_grow() behaviour more consistent: Initialise to zero
227 additional bytes when new memory had to be allocated, not just
228 when reusing an existing buffer.
229 [Bodo Moeller]
230
c602e7f4
BM
231 *) Disable caching in BIO_gethostbyname(), directly use gethostbyname()
232 instead. BIO_gethostbyname() does not know what timeouts are
48b0cf8b 233 appropriate, so entries would stay in cache even when they have
c602e7f4
BM
234 become invalid.
235 [Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>
236
1fc6d41b
DSH
237 +) New command line and configuration option 'utf8' for the req command.
238 This allows field values to be specified as UTF8 strings.
239 [Steve Henson]
240
0e211563
BL
241 +) Add -multi and -mr options to "openssl speed" - giving multiple parallel
242 runs for the former and machine-readable output for the latter.
243 [Ben Laurie]
244
89da653f
BM
245 +) Add '-noemailDN' option to 'openssl ca'. This prevents inclusion
246 of the e-mail address in the DN (i.e., it will go into a certificate
247 extension only). The new configuration file option 'email_in_dn = no'
248 has the same effect.
249 [Massimiliano Pala madwolf@openca.org]
250
ba1c6022
BM
251 *) Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when
252 faced with a pathologically small ClientHello fragment that does
253 not contain client_version: Instead of aborting with an error,
254 simply choose the highest available protocol version (i.e.,
255 TLS 1.0 unless it is disabled). In practice, ClientHello
256 messages are never sent like this, but this change gives us
257 strictly correct behaviour at least for TLS.
258 [Bodo Moeller]
259
c2e4f17c 260 +) Change all functions with names starting with des_ to be starting
12852213 261 with DES_ instead. Add wrappers that are compatible with libdes,
2d57b73a
RL
262 but are named _ossl_old_des_*. Finally, add macros that map the
263 des_* symbols to the corresponding _ossl_old_des_*.
12852213
RL
264
265 All this is done because there are increasing clashes with libdes
a8b94d64
BM
266 and other DES libraries that are currently used by other projects.
267 The old libdes interface (including crypt()) is provided if
268 <openssl/des_old.h> is included. For now, this automatically
a14e2d9d 269 happens in <openssl/des.h> unless OPENSSL_DISABLE_OLD_DES_SUPPORT is
a8b94d64 270 defined. Note that crypt() is no longer declared in <openssl/des.h>.
c2e4f17c
RL
271
272 NOTE: This is a major break of an old API into a new one. Software
273 authors are encouraged to switch to the DES_ style functions. Some
274 time in the future, des_old.h and the libdes compatibility functions
275 will be completely removed.
276 [Richard Levitte]
277
979689aa
BM
278 *) Fix SSL handshake functions and SSL_clear() such that SSL_clear()
279 never resets s->method to s->ctx->method when called from within
280 one of the SSL handshake functions.
281 [Bodo Moeller; problem pointed out by Niko Baric]
282
f1558bb4
DSH
283 +) Test for certificates which contain unsupported critical extensions.
284 If such a certificate is found during a verify operation it is
285 rejected by default: this behaviour can be overridden by either
286 handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or
287 by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function
288 X509_supported_extension() has also been added which returns 1 if a
289 particular extension is supported.
290 [Steve Henson]
291
a661b653
BM
292 *) In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert
293 (sent using the client's version number) if client_version is
294 smaller than the protocol version in use. Also change
295 ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if
296 the client demanded SSL 3.0 but only TLS 1.0 is enabled; then
297 the client will at least see that alert.
298 [Bodo Moeller]
299
581f1c84
DSH
300 +) Modify the behaviour of EVP cipher functions in similar way to digests
301 to retain compatibility with existing code.
302 [Steve Henson]
303
20d2186c 304 +) Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain
50d194af
DSH
305 compatibility with existing code. In particular the 'ctx' parameter does
306 not have to be to be initialized before the call to EVP_DigestInit() and
307 it is tidied up after a call to EVP_DigestFinal(). New function
308 EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function
309 EVP_MD_CTX_copy() changed to not require the destination to be
310 initialized valid and new function EVP_MD_CTX_copy_ex() added which
311 requires the destination to be valid.
312
313 Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(),
314 EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex().
20d2186c
DSH
315 [Steve Henson]
316
48948d53
BM
317 +) Change ssl3_get_message (ssl/s3_both.c) and the functions using it
318 so that complete 'Handshake' protocol structures are kept in memory
319 instead of overwriting 'msg_type' and 'length' with 'body' data.
320 [Bodo Moeller]
321
322 *) Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation
323 correctly.
324 [Bodo Moeller]
325
285046ec
RL
326 +) Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32.
327 [Massimo Santin via Richard Levitte]
328
07cee702
GT
329 +) Major restructuring to the underlying ENGINE code. This includes
330 reduction of linker bloat, separation of pure "ENGINE" manipulation
331 (initialisation, etc) from functionality dealing with implementations
332 of specific crypto iterfaces. This change also introduces integrated
333 support for symmetric ciphers and digest implementations - so ENGINEs
334 can now accelerate these by providing EVP_CIPHER and EVP_MD
335 implementations of their own. This is detailed in crypto/engine/README
336 as it couldn't be adequately described here. However, there are a few
337 API changes worth noting - some RSA, DSA, DH, and RAND functions that
338 were changed in the original introduction of ENGINE code have now
339 reverted back - the hooking from this code to ENGINE is now a good
340 deal more passive and at run-time, operations deal directly with
341 RSA_METHODs, DSA_METHODs (etc) as they did before, rather than
342 dereferencing through an ENGINE pointer any more. Also, the ENGINE
343 functions dealing with BN_MOD_EXP[_CRT] handlers have been removed -
344 they were not being used by the framework as there is no concept of a
345 BIGNUM_METHOD and they could not be generalised to the new
346 'ENGINE_TABLE' mechanism that underlies the new code. Similarly,
347 ENGINE_cpy() has been removed as it cannot be consistently defined in
348 the new code.
349 [Geoff Thorpe]
350
d46c1a81
DSH
351 +) Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds.
352 [Steve Henson]
353
89eeccac
RL
354 +) Change mkdef.pl to sort symbols that get the same entry number,
355 and make sure the automatically generated functions ERR_load_*
356 become part of libeay.num as well.
357 [Richard Levitte]
358
3b0b5aba
BM
359 *) Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a
360 client receives HelloRequest while in a handshake.
361 [Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>]
362
6b0e9fac
BM
363 +) New function SSL_renegotiate_pending(). This returns true once
364 renegotiation has been requested (either SSL_renegotiate() call
365 or HelloRequest/ClientHello receveived from the peer) and becomes
366 false once a handshake has been completed.
367 (For servers, SSL_renegotiate() followed by SSL_do_handshake()
368 sends a HelloRequest, but does not ensure that a handshake takes
369 place. SSL_renegotiate_pending() is useful for checking if the
370 client has followed the request.)
371 [Bodo Moeller]
372
373 +) New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.
374 By default, clients may request session resumption even during
375 renegotiation (if session ID contexts permit); with this option,
376 session resumption is possible only in the first handshake.
377 [Bodo Moeller]
378
2260ad21
BM
379 *) Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C
380 should end in 'break', not 'goto end' which circuments various
b49124f6
BM
381 cleanups done in state SSL_ST_OK. But session related stuff
382 must be disabled for SSL_ST_OK in the case that we just sent a
383 HelloRequest.
2260ad21
BM
384
385 Also avoid some overhead by not calling ssl_init_wbio_buffer()
386 before just sending a HelloRequest.
b49124f6 387 [Bodo Moeller, Eric Rescorla <ekr@rtfm.com>]
8e2f6b79 388
ee60d9fb
BM
389 *) Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't
390 reveal whether illegal block cipher padding was found or a MAC
391 verification error occured. (Neither SSLerr() codes nor alerts
392 are directly visible to potential attackers, but the information
393 may leak via logfiles.)
394
395 Similar changes are not required for the SSL 2.0 implementation
396 because the number of padding bytes is sent in clear for SSL 2.0,
397 and the extra bytes are just ignored. However ssl/s2_pkt.c
398 failed to verify that the purported number of padding bytes is in
399 the legal range.
400 [Bodo Moeller]
401
96bd6f73
DSH
402 +) Add some demos for certificate and certificate request creation.
403 [Steve Henson]
404
c0f5dd07
LJ
405 +) Make maximum certificate chain size accepted from the peer application
406 settable (SSL*_get/set_max_cert_list()), as proposed by
407 "Douglas E. Engert" <deengert@anl.gov>.
408 [Lutz Jaenicke]
409
b26ca340
BM
410 +) Add support for shared libraries for Unixware-7
411 (Boyd Lynn Gerber <gerberb@zenez.com>).
6c36f7a9
LJ
412 [Lutz Jaenicke]
413
b26ca340
BM
414 *) Add OpenUNIX-8 support including shared libraries
415 (Boyd Lynn Gerber <gerberb@zenez.com>).
c5571db0
BM
416 [Lutz Jaenicke]
417
a9ed4da8
BM
418 *) Improve RSA_padding_check_PKCS1_OAEP() check again to avoid
419 'wristwatch attack' using huge encoding parameters (cf.
420 James H. Manger's CRYPTO 2001 paper). Note that the
421 RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use
e3fefbfd 422 encoding parameters and hence was not vulnerable.
a9ed4da8
BM
423 [Bodo Moeller]
424
4450107a 425 +) Add a "destroy" handler to ENGINEs that allows structural cleanup to
908efd3b
GT
426 be done prior to destruction. Use this to unload error strings from
427 ENGINEs that load their own error strings. NB: This adds two new API
428 functions to "get" and "set" this destroy handler in an ENGINE.
a9ed4da8 429 [Geoff Thorpe]
908efd3b 430
4450107a 431 +) Alter all existing ENGINE implementations (except "openssl" and
541814c4
GT
432 "openbsd") to dynamically instantiate their own error strings. This
433 makes them more flexible to be built both as statically-linked ENGINEs
434 and self-contained shared-libraries loadable via the "dynamic" ENGINE.
435 Also, add stub code to each that makes building them as self-contained
436 shared-libraries easier (see README.ENGINE).
437 [Geoff Thorpe]
438
4450107a 439 +) Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE
541814c4
GT
440 implementations into applications that are completely implemented in
441 self-contained shared-libraries. The "dynamic" ENGINE exposes control
442 commands that can be used to configure what shared-library to load and
443 to control aspects of the way it is handled. Also, made an update to
444 the README.ENGINE file that brings its information up-to-date and
445 provides some information and instructions on the "dynamic" ENGINE
446 (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc).
447 [Geoff Thorpe]
448
d98a4b73
UM
449 *) BN_sqr() bug fix.
450