]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES
Fix a bug in the modified purpose code: it wasn't updated to use the
[thirdparty/openssl.git] / CHANGES
CommitLineData
651d0aff 1
f1c236f8 2 OpenSSL CHANGES
651d0aff
RE
3 _______________
4
d91e201e
RE
5 Changes between 0.9.4 and 0.9.5 [xx XXX 1999]
6
dd413410
DSH
7 *) Modify X509_TRUST and X509_PURPOSE so it also uses a static and
8 dynamic mix. In both cases the ids can be used as an index into the
9 table. Also modified the X509_TRUST_add() and X509_PURPOSE_add()
10 functions so they accept a list of the field values and the
11 application doesn't need to directly manipulate the X509_TRUST
12 structure.
13 [Steve Henson]
14
15 *) Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't
16 need initialising.
17 [Steve Henson]
18
08cba610
DSH
19 *) Modify the way the V3 extension code looks up extensions. This now
20 works in a similar way to the object code: we have some "standard"
21 extensions in a static table which is searched with OBJ_bsearch()
22 and the application can add dynamic ones if needed. The file
23 crypto/x509v3/ext_dat.h now has the info: this file needs to be
24 updated whenever a new extension is added to the core code and kept
25 in ext_nid order. There is a simple program 'tabtest.c' which checks
26 this. New extensions are not added too often so this file can readily
27 be maintained manually.
28
29 There are two big advantages in doing things this way. The extensions
30 can be looked up immediately and no longer need to be "added" using
31 X509V3_add_standard_extensions(): this function now does nothing.
32 [Side note: I get *lots* of email saying the extension code doesn't
33 work because people forget to call this function]
34 Also no dynamic allocation is done unless new extensions are added:
35 so if we don't add custom extensions there is no need to call
36 X509V3_EXT_cleanup().
37 [Steve Henson]
38
fea9afbf
BL
39 *) Modify enc utility's salting as follows: make salting the default. Add a
40 magic header, so unsalted files fail gracefully instead of just decrypting
41 to garbage. This is because not salting is a big security hole, so people
42 should be discouraged from doing it.
43 [Ben Laurie]
44
9868232a
DSH
45 *) Fixes and enhancements to the 'x509' utility. It allowed a message
46 digest to be passed on the command line but it only used this
47 parameter when signing a certificate. Modified so all relevant
48 operations are affected by the digest parameter including the
49 -fingerprint and -x509toreq options. Also -x509toreq choked if a
50 DSA key was used because it didn't fix the digest.
51 [Steve Henson]
52
51630a37
DSH
53 *) Initial certificate chain verify code. Currently tests the untrusted
54 certificates for consistency with the verify purpose (which is set
55 when the X509_STORE_CTX structure is set up) and checks the pathlength.
56
57 There is a NO_CHAIN_VERIFY compilation option to keep the old behaviour:
bb7cd4e3
DSH
58 this is because it will reject chains with invalid extensions whereas
59 every previous version of OpenSSL and SSLeay made no checks at all.
51630a37
DSH
60
61 Trust code: checks the root CA for the relevant trust settings. Trust
62 settings have an initial value consistent with the verify purpose: e.g.
63 if the verify purpose is for SSL client use it expects the CA to be
64 trusted for SSL client use. However the default value can be changed to
65 permit custom trust settings: one example of this would be to only trust
66 certificates from a specific "secure" set of CAs.
11262391
DSH
67
68 Also added X509_STORE_CTX_new() and X509_STORE_CTX_free() functions
69 which should be used for version portability: especially since the
70 verify structure is likely to change more often now.
d4cec6a1 71
bb7cd4e3
DSH
72 SSL integration. Add purpose and trust to SSL_CTX and SSL and functions
73 to set them. If not set then assume SSL clients will verify SSL servers
74 and vice versa.
75
d4cec6a1
DSH
76 Two new options to the verify program: -untrusted allows a set of
77 untrusted certificates to be passed in and -purpose which sets the
78 intended purpose of the certificate. If a purpose is set then the
79 new chain verify code is used to check extension consistency.
11262391
DSH
80 [Steve Henson]
81
82 *) Support for the authority information access extension.
6d3724d3
DSH
83 [Steve Henson]
84
52664f50
DSH
85 *) Modify RSA and DSA PEM read routines to transparently handle
86 PKCS#8 format private keys. New *_PUBKEY_* functions that handle
87 public keys in a format compatible with certificate
88 SubjectPublicKeyInfo structures. Unfortunately there were already
89 functions called *_PublicKey_* which used various odd formats so
90 these are retained for compatability: however the DSA variants were
91 never in a public release so they have been deleted. Changed dsa/rsa
92 utilities to handle the new format: note no releases ever handled public
93 keys so we should be OK.
94
95 The primary motivation for this change is to avoid the same fiasco
96 that dogs private keys: there are several incompatible private key
97 formats some of which are standard and some OpenSSL specific and
98 require various evil hacks to allow partial transparent handling and
99 even then it doesn't work with DER formats. Given the option anything
100 other than PKCS#8 should be dumped: but the other formats have to
101 stay in the name of compatability.
102
103 With public keys and the benefit of hindsight one standard format
104 is used which works with EVP_PKEY, RSA or DSA structures: though
105 it clearly returns an error if you try to read the wrong kind of key.
106
107 Added a -pubkey option to the 'x509' utility to output the public key.
108 Also rename the EVP_PKEY_get_*() to EVP_PKEY_rget_*() and add
109 EVP_PKEY_rset_*() functions that do the same as the EVP_PKEY_assign_*()
110 except they up the reference count of the added key (they don't "swallow"
111 the supplied key).
112 [Steve Henson]
113
114 *) Fixes to crypto/x509/by_file.c the code to read in certificates and
115 CRLs would fail if the file contained no certificates or no CRLs:
116 added a new function to read in both types and return the number
117 read: this means that if none are read it will be an error. The
118 DER versions of the certificate and CRL reader would always fail
119 because it isn't possible to mix certificates and CRLs in DER format
120 without choking one or the other routine. Changed this to just read
121 a certificate: this is the best we can do. Also modified the code
122 in apps/verify.c to take notice of return codes: it was previously
123 attempting to read in certificates from NULL pointers and ignoring
124 any errors: this is one reason why the cert and CRL reader seemed
125 to work. It doesn't check return codes from the default certificate
126 routines: these may well fail if the certificates aren't installed.
127 [Steve Henson]
128
a716d727
DSH
129 *) Code to support otherName option in GeneralName.
130 [Steve Henson]
131
f76d8c47
DSH
132 *) First update to verify code. Change the verify utility
133 so it warns if it is passed a self signed certificate:
134 for consistency with the normal behaviour. X509_verify
135 has been modified to it will now verify a self signed
136 certificate if *exactly* the same certificate appears
137 in the store: it was previously impossible to trust a
138 single self signed certificate. This means that:
139 openssl verify ss.pem
140 now gives a warning about a self signed certificate but
141 openssl verify -CAfile ss.pem ss.pem
142 is OK.
143 [Steve Henson]
144
b1fe6ca1
BM
145 *) For servers, store verify_result in SSL_SESSION data structure
146 (and add it to external session representation).
147 This is needed when client certificate verifications fails,
148 but an application-provided verification callback (set by
149 SSL_CTX_set_cert_verify_callback) allows accepting the session
150 anyway (i.e. leaves x509_store_ctx->error != X509_V_OK
151 but returns 1): When the session is reused, we have to set
152 ssl->verify_result to the appropriate error code to avoid
153 security holes.
154 [Bodo Moeller, problem pointed out by Lutz Jaenicke]
155
91895a59
DSH
156 *) Fix a bug in the new PKCS#7 code: it didn't consider the
157 case in PKCS7_dataInit() where the signed PKCS7 structure
158 didn't contain any existing data because it was being created.
f76d8c47 159 [Po-Cheng Chen <pocheng@nst.com.tw>, slightly modified by Steve Henson]
91895a59 160
fd699ac5
DSH
161 *) Add a salt to the key derivation routines in enc.c. This
162 forms the first 8 bytes of the encrypted file. Also add a
163 -S option to allow a salt to be input on the command line.
164 [Steve Henson]
165
e947f396
DSH
166 *) New function X509_cmp(). Oddly enough there wasn't a function
167 to compare two certificates. We do this by working out the SHA1
168 hash and comparing that. X509_cmp() will be needed by the trust
169 code.
170 [Steve Henson]
171
b7cfcfb7
MC
172 *) Correctly increment the reference count in the SSL_SESSION pointer
173 returned from SSL_get_session().
174 [Geoff Thorpe <geoff@eu.c2.net>]
175
06556a17
DSH
176 *) Fix for 'req': it was adding a null to request attributes.
177 Also change the X509_LOOKUP and X509_INFO code to handle
178 certificate auxiliary information.
179 [Steve Henson]
180
a0e9f529
DSH
181 *) Add support for 40 and 64 bit RC2 and RC4 algorithms: document
182 the 'enc' command.
183 [Steve Henson]
184
71d7526b
RL
185 *) Add the possibility to add extra information to the memory leak
186 detecting output, to form tracebacks, showing from where each
187 allocation was originated. Also updated sid code to be multi-
188 thread-safe.
189 [Richard Levitte]
190
a0e9f529 191 *) Add options -text and -noout to pkcs7 utility and delete the
954ef7ef
DSH
192 encryption options which never did anything. Update docs.
193 [Steve Henson]
194
af29811e
DSH
195 *) Add options to some of the utilities to allow the pass phrase
196 to be included on either the command line (not recommended on
197 OSes like Unix) or read from the environment. Update the
198 manpages and fix a few bugs.
199 [Steve Henson]
200
aba3e65f
DSH
201 *) Add a few manpages for some of the openssl commands.
202 [Steve Henson]
203
a0ad17bb
DSH
204 *) Fix the -revoke option in ca. It was freeing up memory twice,
205 leaking and not finding already revoked certificates.
206 [Steve Henson]
207
ce1b4fe1
DSH
208 *) Extensive changes to support certificate auxiliary information.
209 This involves the use of X509_CERT_AUX structure and X509_AUX
210 functions. An X509_AUX function such as PEM_read_X509_AUX()
211 can still read in a certificate file in the usual way but it
212 will also read in any additional "auxiliary information". By
213 doing things this way a fair degree of compatability can be
214 retained: existing certificates can have this information added
215 using the new 'x509' options.
216
217 Current auxiliary information includes an "alias" and some trust
218 settings. The trust settings will ultimately be used in enhanced
219 certificate chain verification routines: currently a certificate
220 can only be trusted if it is self signed and then it is trusted
221 for all purposes.
222 [Steve Henson]
223
ce2c95b2
MC
224 *) Fix assembler for Alpha (tested only on DEC OSF not Linux or *BSD). The
225 problem was that one of the replacement routines had not been working since
226 SSLeay releases. For now the offending routine has been replaced with
227 non-optimised assembler. Even so, this now gives around 95% performance
228 improvement for 1024 bit RSA signs.
229 [Mark Cox]
230
9716a8f9
DSH
231 *) Hack to fix PKCS#7 decryption when used with some unorthodox RC2
232 handling. Most clients have the effective key size in bits equal to
233 the key length in bits: so a 40 bit RC2 key uses a 40 bit (5 byte) key.
234 A few however don't do this and instead use the size of the decrypted key
235 to determine the RC2 key length and the AlgorithmIdentifier to determine
236 the effective key length. In this case the effective key lenth can still
237 be 40 bits but the key length can be 168 bits for example. This is fixed
238 by manually forcing an RC2 key into the EVP_PKEY structure because the
239 EVP code can't currently handle unusual RC2 key sizes: it always assumes
240 the key length and effective key length are equal.
241 [Steve Henson]
242
74400f73
DSH
243 *) Add a bunch of functions that should simplify the creation of
244 X509_NAME structures. Now you should be able to do:
245 X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, "Steve", -1, -1, 0);
246 and have it automatically work out the correct field type and fill in
247 the structures. The more adventurous can try:
248 X509_NAME_add_entry_by_txt(nm, field, MBSTRING_UTF8, str, -1, -1, 0);
249 and it will (hopefully) work out the correct multibyte encoding.
250 [Steve Henson]
251
252 *) Change the 'req' utility to use the new field handling and multibyte
253 copy routines. Before the DN field creation was handled in an ad hoc
254 way in req, ca, and x509 which was rather broken and didn't support
255 BMPStrings or UTF8Strings. Since some software doesn't implement
256 BMPStrings or UTF8Strings yet, they can be enabled using the config file
257 using the dirstring_type option. See the new comment in the default
258 openssl.cnf for more info.
259 [Steve Henson]
260
c1e744b9 261 *) Make crypto/rand/md_rand.c more robust:
62ac2938 262 - Assure unique random numbers after fork().
c1e744b9
BM
263 - Make sure that concurrent threads access the global counter and
264 md serializably so that we never lose entropy in them
265 or use exactly the same state in multiple threads.
266 Access to the large state is not always serializable because
267 the additional locking could be a performance killer, and
268 md should be large enough anyway.
269 [Bodo Moeller]
270
a31011e8
BM
271 *) New file apps/app_rand.c with commonly needed functionality
272 for handling the random seed file.
273
274 Use the random seed file in some applications that previously did not:
275 ca,
276 dsaparam -genkey (which also ignored its `-rand' option),
277 s_client,
278 s_server,
279 x509 (when signing).
280 Except on systems with /dev/urandom, it is crucial to have a random
281 seed file at least for key creation, DSA signing, and for DH exchanges;
99e87569 282 for RSA signatures we could do without one.
a31011e8
BM
283
284 gendh and gendsa (unlike genrsa) used to read only the first byte
285 of each file listed in the `-rand' option. The function as previously
286 found in genrsa is now in app_rand.c and is used by all programs
287 that support `-rand'.
288 [Bodo Moeller]
289
290 *) In RAND_write_file, use mode 0600 for creating files;
291 don't just chmod when it may be too late.
292 [Bodo Moeller]
293
294 *) Report an error from X509_STORE_load_locations
295 when X509_LOOKUP_load_file or X509_LOOKUP_add_dir failed.
296 [Bill Perry]
297
462f79ec
DSH
298 *) New function ASN1_mbstring_copy() this copies a string in either
299 ASCII, Unicode, Universal (4 bytes per character) or UTF8 format
300 into an ASN1_STRING type. A mask of permissible types is passed
301 and it chooses the "minimal" type to use or an error if not type
302 is suitable.
303 [Steve Henson]
304
08e9c1af
DSH
305 *) Add function equivalents to the various macros in asn1.h. The old
306 macros are retained with an M_ prefix. Code inside the library can
307 use the M_ macros. External code (including the openssl utility)
308 should *NOT* in order to be "shared library friendly".
309 [Steve Henson]
310
673b102c
DSH
311 *) Add various functions that can check a certificate's extensions
312 to see if it usable for various purposes such as SSL client,
313 server or S/MIME and CAs of these types. This is currently
314 VERY EXPERIMENTAL but will ultimately be used for certificate chain
315 verification. Also added a -purpose flag to x509 utility to
316 print out all the purposes.
317 [Steve Henson]
318
56a3fec1
DSH
319 *) Add a CRYPTO_EX_DATA to X509 certificate structure and associated
320 functions.
321 [Steve Henson]
322
4654ef98
DSH
323 *) New X509V3_{X509,CRL,REVOKED}_get_d2i() functions. These will search
324 for, obtain and decode and extension and obtain its critical flag.
325 This allows all the necessary extension code to be handled in a
326 single function call.
327 [Steve Henson]
328
7e102e28
AP
329 *) RC4 tune-up featuring 30-40% performance improvement on most RISC
330 platforms. See crypto/rc4/rc4_enc.c for further details.
331 [Andy Polyakov]
332
d71c6bc5
DSH
333 *) New -noout option to asn1parse. This causes no output to be produced
334 its main use is when combined with -strparse and -out to extract data
335 from a file (which may not be in ASN.1 format).
336 [Steve Henson]
337
2d681b77
DSH
338 *) Fix for pkcs12 program. It was hashing an invalid certificate pointer
339 when producing the local key id.
340 [Richard Levitte <levitte@stacken.kth.se>]
341
3908cdf4
DSH
342 *) New option -dhparam in s_server. This allows a DH parameter file to be
343 stated explicitly. If it is not stated then it tries the first server
344 certificate file. The previous behaviour hard coded the filename
345 "server.pem".
346 [Steve Henson]
347
3ea23631
DSH
348 *) Add -pubin and -pubout options to the rsa and dsa commands. These allow
349 a public key to be input or output. For example:
350 openssl rsa -in key.pem -pubout -out pubkey.pem
351 Also added necessary DSA public key functions to handle this.
352 [Steve Henson]
353
393f2c65
DSH
354 *) Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained
355 in the message. This was handled by allowing
356 X509_find_by_issuer_and_serial() to tolerate a NULL passed to it.
357 [Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>]
358
359 *) Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null
360 to the end of the strings whereas this didn't. This would cause problems
361 if strings read with d2i_ASN1_bytes() were later modified.
362 [Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>]
363
4579dd5d
DSH
364 *) Fix for base64 decode bug. When a base64 bio reads only one line of
365 data and it contains EOF it will end up returning an error. This is
366 caused by input 46 bytes long. The cause is due to the way base64
367 BIOs find the start of base64 encoded data. They do this by trying a
368 trial decode on each line until they find one that works. When they
369 do a flag is set and it starts again knowing it can pass all the
370 data directly through the decoder. Unfortunately it doesn't reset
371 the context it uses. This means that if EOF is reached an attempt
372 is made to pass two EOFs through the context and this causes the
373 resulting error. This can also cause other problems as well. As is
374 usual with these problems it takes *ages* to find and the fix is
375 trivial: move one line.
376 [Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer) ]
377
06f4536a
DSH
378 *) Ugly workaround to get s_client and s_server working under Windows. The
379 old code wouldn't work because it needed to select() on sockets and the
380 tty (for keypresses and to see if data could be written). Win32 only
381 supports select() on sockets so we select() with a 1s timeout on the
382 sockets and then see if any characters are waiting to be read, if none
383 are present then we retry, we also assume we can always write data to
384 the tty. This isn't nice because the code then blocks until we've
385 received a complete line of data and it is effectively polling the
386 keyboard at 1s intervals: however it's quite a bit better than not
387 working at all :-) A dedicated Windows application might handle this
388 with an event loop for example.
389 [Steve Henson]
390
1c80019a
DSH
391 *) Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign
392 and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions
393 will be called when RSA_sign() and RSA_verify() are used. This is useful
394 if rsa_pub_dec() and rsa_priv_enc() equivalents are not available.
395 For this to work properly RSA_public_decrypt() and RSA_private_encrypt()
396 should *not* be used: RSA_sign() and RSA_verify() must be used instead.
397 This necessitated the support of an extra signature type NID_md5_sha1
398 for SSL signatures and modifications to the SSL library to use it instead
399 of calling RSA_public_decrypt() and RSA_private_encrypt().
400 [Steve Henson]
401
090d848e
DSH
402 *) Add new -verify -CAfile and -CApath options to the crl program, these
403 will lookup a CRL issuers certificate and verify the signature in a
404 similar way to the verify program. Tidy up the crl program so it
405 no longer acesses structures directly. Make the ASN1 CRL parsing a bit
406 less strict. It will now permit CRL extensions even if it is not
407 a V2 CRL: this will allow it to tolerate some broken CRLs.
408 [Steve Henson]
409
396f6314
BM
410 *) Initialize all non-automatic variables each time one of the openssl
411 sub-programs is started (this is necessary as they may be started
412 multiple times from the "OpenSSL>" prompt).
413 [Lennart Bang, Bodo Moeller]
414
4a61a64f
DSH
415 *) Preliminary compilation option RSA_NULL which disables RSA crypto without
416 removing all other RSA functionality (this is what NO_RSA does). This
417 is so (for example) those in the US can disable those operations covered
418 by the RSA patent while allowing storage and parsing of RSA keys and RSA
419 key generation.
420 [Steve Henson]
421
c1082a90 422 *) Non-copying interface to BIO pairs.
6f7af152 423 (still largely untested)
c1082a90
BM
424 [Bodo Moeller]
425
a785abc3
DSH
426 *) New function ANS1_tag2str() to convert an ASN1 tag to a descriptive
427 ASCII string. This was handled independently in various places before.
428 [Steve Henson]
429
aef838fc
DSH
430 *) New functions UTF8_getc() and UTF8_putc() that parse and generate
431 UTF8 strings a character at a time.
432 [Steve Henson]
433
074309b7
BM
434 *) Use client_version from client hello to select the protocol
435 (s23_srvr.c) and for RSA client key exchange verification
436 (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications.
437 [Bodo Moeller]
438
8ce97163
DSH
439 *) Add various utility functions to handle SPKACs, these were previously
440 handled by poking round in the structure internals. Added new function
441 NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to
442 print, verify and generate SPKACs. Based on an original idea from
443 Massimiliano Pala <madwolf@comune.modena.it> but extensively modified.
444 [Steve Henson]
445
2d4287da
AP
446 *) RIPEMD160 is operational on all platforms and is back in 'make test'.
447 [Andy Polyakov]
448
87a25f90
DSH
449 *) Allow the config file extension section to be overwritten on the
450 command line. Based on an original idea from Massimiliano Pala
451 <madwolf@comune.modena.it>. The new option is called -extensions
452 and can be applied to ca, req and x509. Also -reqexts to override
453 the request extensions in req and -crlexts to override the crl extensions
454 in ca.
455 [Steve Henson]
456
f9150e54
DSH
457 *) Add new feature to the SPKAC handling in ca. Now you can include
458 the same field multiple times by preceding it by "XXXX." for example:
459 1.OU="Unit name 1"
460 2.OU="Unit name 2"
461 this is the same syntax as used in the req config file.
462 [Steve Henson]
463
c79b16e1
DSH
464 *) Allow certificate extensions to be added to certificate requests. These
465 are specified in a 'req_extensions' option of the req section of the
466 config file. They can be printed out with the -text option to req but
467 are otherwise ignored at present.
468 [Steve Henson]
469
96c2201b 470 *) Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first
0f7e6fe1 471 data read consists of only the final block it would not decrypted because
7b65c329
DSH
472 EVP_CipherUpdate() would correctly report zero bytes had been decrypted.
473 A misplaced 'break' also meant the decrypted final block might not be
474 copied until the next read.
475 [Steve Henson]
476
13066cee
DSH
477 *) Initial support for DH_METHOD. Again based on RSA_METHOD. Also added
478 a few extra parameters to the DH structure: these will be useful if
479 for example we want the value of 'q' or implement X9.42 DH.
480 [Steve Henson]
481
c0711f7f
DSH
482 *) Initial support for DSA_METHOD. This is based on the RSA_METHOD and
483 provides hooks that allow the default DSA functions or functions on a
484 "per key" basis to be replaced. This allows hardware acceleration and
485 hardware key storage to be handled without major modification to the
486 library. Also added low level modexp hooks and CRYPTO_EX structure and
487 associated functions.
488 [Steve Henson]
489
8484721a
DSH
490 *) Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO
491 as "read only": it can't be written to and the buffer it points to will
492 not be freed. Reading from a read only BIO is much more efficient than
493 a normal memory BIO. This was added because there are several times when
494 an area of memory needs to be read from a BIO. The previous method was
495 to create a memory BIO and write the data to it, this results in two
496 copies of the data and an O(n^2) reading algorithm. There is a new
497 function BIO_new_mem_buf() which creates a read only memory BIO from
498 an area of memory. Also modified the PKCS#7 routines to use read only
499 memory BIOSs.
500 [Steve Henson]
501
de1915e4
BM
502 *) Bugfix: ssl23_get_client_hello did not work properly when called in
503 state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of
504 a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read,
505 but a retry condition occured while trying to read the rest.
506 [Bodo Moeller]
507
c6c34506
DSH
508 *) The PKCS7_ENC_CONTENT_new() function was setting the content type as
509 NID_pkcs7_encrypted by default: this was wrong since this should almost
510 always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle
511 the encrypted data type: this is a more sensible place to put it and it
512 allows the PKCS#12 code to be tidied up that duplicated this
513 functionality.
514 [Steve Henson]
515
fd520577
DSH
516 *) Changed obj_dat.pl script so it takes its input and output files on
517 the command line. This should avoid shell escape redirection problems
518 under Win32.
519 [Steve Henson]
520
87c49f62 521 *) Initial support for certificate extension requests, these are included
fd520577
DSH
522 in things like Xenroll certificate requests. Included functions to allow
523 extensions to be obtained and added.
87c49f62
DSH
524 [Steve Henson]
525
1b1a6e78
BM
526 *) -crlf option to s_client and s_server for sending newlines as
527 CRLF (as required by many protocols).
528 [Bodo Moeller]
529
9a577e29 530 Changes between 0.9.3a and 0.9.4 [09 Aug 1999]
dfbaf956 531
9a577e29 532 *) Install libRSAglue.a when OpenSSL is built with RSAref.
dfbaf956 533 [Ralf S. Engelschall]
74678cc2 534
96395158
RE
535 *) A few more ``#ifndef NO_FP_API / #endif'' pairs for consistency.
536 [Andrija Antonijevic <TheAntony2@bigfoot.com>]
537
ed7f60fb
DSH
538 *) Fix -startdate and -enddate (which was missing) arguments to 'ca'
539 program.
540 [Steve Henson]
541
48c843c3
BM
542 *) New function DSA_dup_DH, which duplicates DSA parameters/keys as
543 DH parameters/keys (q is lost during that conversion, but the resulting
544 DH parameters contain its length).
545
546 For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is
547 much faster than DH_generate_parameters (which creates parameters
548 where p = 2*q + 1), and also the smaller q makes DH computations
549 much more efficient (160-bit exponentiation instead of 1024-bit
550 exponentiation); so this provides a convenient way to support DHE
551 ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of
552 utter importance to use
553 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
554 or
555 SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
556 when such DH parameters are used, because otherwise small subgroup
557 attacks may become possible!
558 [Bodo Moeller]
559
560 *) Avoid memory leak in i2d_DHparams.
561 [Bodo Moeller]
562
922180d7
DSH
563 *) Allow the -k option to be used more than once in the enc program:
564 this allows the same encrypted message to be read by multiple recipients.
565 [Steve Henson]
566
3e3d2ea2
DSH
567 *) New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
568 an ASN1_OBJECT to a text string. If the "no_name" parameter is set then
569 it will always use the numerical form of the OID, even if it has a short
570 or long name.
571 [Steve Henson]
572
770d19b8
DSH
573 *) Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
574 method only got called if p,q,dmp1,dmq1,iqmp components were present,
575 otherwise bn_mod_exp was called. In the case of hardware keys for example
576 no private key components need be present and it might store extra data
96c2201b
BM
577 in the RSA structure, which cannot be accessed from bn_mod_exp.
578 By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for
579 private key operations.
770d19b8
DSH
580 [Steve Henson]
581
a0618e3e
AP
582 *) Added support for SPARC Linux.
583 [Andy Polyakov]
584
74678cc2
BM
585 *) pem_password_cb function type incompatibly changed from
586 typedef int pem_password_cb(char *buf, int size, int rwflag);
587 to
588 ....(char *buf, int size, int rwflag, void *userdata);
589 so that applications can pass data to their callbacks:
590 The PEM[_ASN1]_{read,write}... functions and macros now take an
591 additional void * argument, which is just handed through whenever
592 the password callback is called.
96c2201b 593 [Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller]
74678cc2
BM
594
595 New function SSL_CTX_set_default_passwd_cb_userdata.
596
597 Compatibility note: As many C implementations push function arguments
598 onto the stack in reverse order, the new library version is likely to
599 interoperate with programs that have been compiled with the old
600 pem_password_cb definition (PEM_whatever takes some data that
601 happens to be on the stack as its last argument, and the callback
602 just ignores this garbage); but there is no guarantee whatsoever that
603 this will work.
0cceb1c7 604
664b9985
BM
605 *) The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
606 (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
607 problems not only on Windows, but also on some Unix platforms.
2e0fc875 608 To avoid problematic command lines, these definitions are now in an
57119943
BM
609 auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl
610 for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds).
664b9985
BM
611 [Bodo Moeller]
612
7363455f
AP
613 *) MIPS III/IV assembler module is reimplemented.
614 [Andy Polyakov]
615
6434450c
UM
616 *) More DES library cleanups: remove references to srand/rand and
617 delete an unused file.
618