]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES
Start with some more tarball rolling preparation to make sure it's not
[thirdparty/openssl.git] / CHANGES
CommitLineData
651d0aff 1
f1c236f8 2 OpenSSL CHANGES
651d0aff
RE
3 _______________
4
5
9cb0969f 6 Changes between 0.9.1c and 0.9.2
4f43d0e7 7
c0e538e1
RE
8 *) Fix Win32 symbol export lists for BIO functions: Added
9 BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data
10 to ms/libeay{16,32}.def.
11 [Ralf S. Engelschall]
12
84107e6c
RE
13 *) Second round of fixing the OpenSSL perl/ stuff. It now at least compiled
14 fine under Unix and passes some trivial tests I've now added. But the
15 whole stuff is horribly incomplete, so a README.1ST with a disclaimer was
16 added to make sure no one expects that this stuff really works in the
17 OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources
18 up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and
19 openssl_bio.xs.
20 [Ralf S. Engelschall]
21
26a0846f
BL
22 *) Fix the generation of two part addresses in perl.
23 [Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie]
24
7d3ce7ba
BL
25 *) Add config entry for Linux on MIPS.
26 [John Tobey <jtobey@channel1.com>]
27
efadf60f 28 *) Make links whenever Configure is run, unless we are on Windoze.
cba5068d
BL
29 [Ben Laurie]
30
1756d405
DSH
31 *) Permit extensions to be added to CRLs using crl_section in openssl.cnf.
32 Currently only issuerAltName and AuthorityKeyIdentifier make any sense
33 in CRLs.
34
116e3153
RE
35 *) Add a useful kludge to allow package maintainers to specify compiler and
36 other platforms details on the command line without having to patch the
37 Configure script everytime: One now can use ``perl Configure
38 <id>:<details>'', i.e. platform ids are allowed to have details appended
39 to them (seperated by colons). This is treated as there would be a static
40 pre-configured entry in Configure's %table under key <id> with value
41 <details> and ``perl Configure <id>'' is called. So, when you want to
42 perform a quick test-compile under FreeBSD 3.1 with pgcc and without
43 assembler stuff you can use ``perl Configure "FreeBSD-elf:pgcc:-O6:::"''
44 now, which overrides the FreeBSD-elf entry on-the-fly.
45 [Ralf S. Engelschall]
46
bc348244
BL
47 *) Disable new TLS1 ciphersuites by default: they aren't official yet.
48 [Ben Laurie]
49
3eb0ed6d
RE
50 *) Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified
51 on the `perl Configure ...' command line. This way one can compile
52 OpenSSL libraries with Position Independent Code (PIC) which is needed
53 for linking it into DSOs.
54 [Ralf S. Engelschall]
55
f415fa32
BL
56 *) Remarkably, export ciphers were totally broken and no-one had noticed!
57 Fixed.
58 [Ben Laurie]
59
0b903ec0
RE
60 *) Cleaned up the LICENSE document: The official contact for any license
61 questions now is the OpenSSL core team under openssl-core@openssl.org.
62 And add a paragraph about the dual-license situation to make sure people
63 recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply
64 to the OpenSSL toolkit.
65 [Ralf S. Engelschall]
66
bb8f3c58
RE
67 *) General source tree makefile cleanups: Made `making xxx in yyy...'
68 display consistent in the source tree and replaced `/bin/rm' by `rm'.
69 Additonally cleaned up the `make links' target: Remove unnecessary
70 semicolons, subsequent redundant removes, inline point.sh into mklink.sh
71 to speed processing and no longer clutter the display with confusing
72 stuff. Instead only the actually done links are displayed.
73 [Ralf S. Engelschall]
74
988788f6
BL
75 *) Permit null encryption ciphersuites, used for authentication only. It used
76 to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this.
77 It is now necessary to set SSL_FORBID_ENULL to prevent the use of null
78 encryption.
79 [Ben Laurie]
80
924acc54
DSH
81 *) Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder
82 signed attributes when verifying signatures (this would break them),
83 the detached data encoding was wrong and public keys obtained using
84 X509_get_pubkey() weren't freed.
85 [Steve Henson]
86
d00b7aad
DSH
87 *) Add text documentation for the BUFFER functions. Also added a work around
88 to a Win95 console bug. This was triggered by the password read stuff: the
89 last character typed gets carried over to the next fread(). If you were
90 generating a new cert request using 'req' for example then the last
91 character of the passphrase would be CR which would then enter the first
92 field as blank.
9985bed3
DSH
93 [Steve Henson]
94
789285aa
RE
95 *) Added the new `Includes OpenSSL Cryptography Software' button as
96 doc/openssl_button.{gif,html} which is similar in style to the old SSLeay
97 button and can be used by applications based on OpenSSL to show the
98 relationship to the OpenSSL project.
99 [Ralf S. Engelschall]
100
a06c602e
RE
101 *) Remove confusing variables in function signatures in files
102 ssl/ssl_lib.c and ssl/ssl.h.
103 [Lennart Bong <lob@kulthea.stacken.kth.se>]
104
8d697db1
RE
105 *) Don't install bss_file.c under PREFIX/include/
106 [Lennart Bong <lob@kulthea.stacken.kth.se>]
107
06c68491
DSH
108 *) Get the Win32 compile working again. Modify mkdef.pl so it can handle
109 functions that return function pointers and has support for NT specific
110 stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various
111 #ifdef WIN32 and WINNTs sprinkled about the place and some changes from
112 unsigned to signed types: this was killing the Win32 compile.
113 [Steve Henson]
114
eb90a483
BL
115 *) Add new certificate file to stack functions, SSL_add_cert_file_to_stack()
116 and SSL_add_cert_dir_to_stack(). These largely supplant
117 SSL_load_client_CA_file(), and can be used to add multiple certs easily to
118 a stack (usually this is then handed to SSL_CTX_set_client_CA_list()).
119 This means that Apache-SSL and similar packages don't have to mess around
120 to add as many CAs as they want to the preferred list.
121 [Ben Laurie]
122
4f43d0e7
BL
123 *) Experiment with doxygen documentation. Currently only partially applied to
124 ssl/ssl_lib.c.
125 See http://www.stack.nl/~dimitri/doxygen/index.html, and run doxygen with
126 openssl.doxy as the configuration file.
127 [Ben Laurie]
74d7abc2
RE
128
129 *) Get rid of remaining C++-style comments which strict C compilers hate.
130 [Ralf S. Engelschall, pointed out by Carlos Amengual]
0172f988 131
7283ecea
DSH
132 *) Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
133 compiled in by default: it has problems with large keys.
134 [Steve Henson]
135
15d21c2d
RE
136 *) Add a bunch of SSL_xxx() functions for configuring the temporary RSA and
137 DH private keys and/or callback functions which directly correspond to
138 their SSL_CTX_xxx() counterparts but work on a per-connection basis. This
139 is needed for applications which have to configure certificates on a
140 per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis
141 (e.g. s_server).
142 For the RSA certificate situation is makes no difference, but
143 for the DSA certificate situation this fixes the "no shared cipher"
144 problem where the OpenSSL cipher selection procedure failed because the
145 temporary keys were not overtaken from the context and the API provided
146 no way to reconfigure them.
147 The new functions now let applications reconfigure the stuff and they
148 are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh,
149 SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback. Additionally a new
150 non-public-API function ssl_cert_instantiate() is used as a helper
151 function and also to reduce code redundancy inside ssl_rsa.c.
152 [Ralf S. Engelschall]
153
ea14a91f
RE
154 *) Move s_server -dcert and -dkey options out of the undocumented feature
155 area because they are useful for the DSA situation and should be
156 recognized by the users.
157 [Ralf S. Engelschall]
158
90a52cec
RE
159 *) Fix the cipher decision scheme for export ciphers: the export bits are
160 *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within
161 SSL_EXP_MASK. So, the original variable has to be used instead of the
162 already masked variable.
163 [Richard Levitte <levitte@stacken.kth.se>]
164
def9f431
RE
165 *) Fix 'port' variable from `int' to `unsigned int' in crypto/bio/b_sock.c
166 [Richard Levitte <levitte@stacken.kth.se>]
167
8aef252b
RE
168 *) Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()
169 from `int' to `unsigned int' because it's a length and initialized by
170 EVP_DigestFinal() which expects an `unsigned int *'.
171 [Richard Levitte <levitte@stacken.kth.se>]
172
a4ed5532
RE
173 *) Don't hard-code path to Perl interpreter on shebang line of Configure
174 script. Instead use the usual Shell->Perl transition trick.
175 [Ralf S. Engelschall]
176
7be304ac
RE
177 *) Make `openssl x509 -noout -modulus' functional also for DSA certificates
178 (in addition to RSA certificates) to match the behaviour of `openssl dsa
179 -noout -modulus' as it's already the case for `openssl rsa -noout
180 -modulus'. For RSA the -modulus is the real "modulus" while for DSA
181 currently the public key is printed (a decision which was already done by
182 `openssl dsa -modulus' in the past) which serves a similar purpose.
183 Additionally the NO_RSA no longer completely removes the whole -modulus
184 option; it now only avoids using the RSA stuff. Same applies to NO_DSA
185 now, too.
186 [Ralf S. Engelschall]
187
55ab3bf7
BL
188 *) Add Arne Ansper's reliable BIO - this is an encrypted, block-digested
189 BIO. See the source (crypto/evp/bio_ok.c) for more info.
190 [Arne Ansper <arne@ats.cyber.ee>]
191
a43aa73e
DSH
192 *) Dump the old yucky req code that tried (and failed) to allow raw OIDs
193 to be added. Now both 'req' and 'ca' can use new objects defined in the
194 config file.
195 [Steve Henson]
196
0849d138
BL
197 *) Add cool BIO that does syslog (or event log on NT).
198 [Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie]
199
06ab81f9
BL
200 *) Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5,
201 TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and
202 TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher
203 Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt.
204 [Ben Laurie]
205
deff75b6
DSH
206 *) Add preliminary config info for new extension code.
207 [Steve Henson]
208
0c8a1281
DSH
209 *) Make RSA_NO_PADDING really use no padding.
210 [Ulf Moeller <ulf@fitug.de>]
211
4004dbb7
BL
212 *) Generate errors when private/public key check is done.
213 [Ben Laurie]
214
0ca5f8b1
DSH
215 *) Overhaul for 'crl' utility. New function X509_CRL_print. Partial support
216 for some CRL extensions and new objects added.
217 [Steve Henson]
218
3d8accc3
DSH
219 *) Really fix the ASN1 IMPLICIT bug this time... Partial support for private
220 key usage extension and fuller support for authority key id.
221 [Steve Henson]
222
a4949896
BL
223 *) Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved
224 padding method for RSA, which is recommended for new applications in PKCS
225 #1 v2.0 (RFC 2437, October 1998).
226 OAEP (Optimal Asymmetric Encryption Padding) has better theoretical
227 foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure
228 against Bleichbacher's attack on RSA.
229 [Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by
230 Ben Laurie]
231
413c4f45
MC
232 *) Updates to the new SSL compression code
233 [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
234
235 *) Fix so that the version number in the master secret, when passed
236 via RSA, checks that if TLS was proposed, but we roll back to SSLv3
237 (because the server will not accept higher), that the version number
238 is 0x03,0x01, not 0x03,0x00
239 [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
240
a8236c8c
DSH
241 *) Run extensive memory leak checks on SSL apps. Fixed *lots* of memory
242 leaks in ssl/ relating to new X509_get_pubkey() behaviour. Also fixes
3d8accc3 243 in apps/ and an unrelated leak in crypto/dsa/dsa_vrf.c
a8236c8c
DSH
244 [Steve Henson]
245
388ff0b0
DSH
246 *) Support for RAW extensions where an arbitrary extension can be
247 created by including its DER encoding. See apps/openssl.cnf for
248 an example.
a8236c8c 249 [Steve Henson]
388ff0b0 250
6013fa83
RE
251 *) Make sure latest Perl versions don't interpret some generated C array
252 code as Perl array code in the crypto/err/err_genc.pl script.
253 [Lars Weber <3weber@informatik.uni-hamburg.de>]
254
5c00879e
DSH
255 *) Modify ms/do_ms.bat to not generate assembly language makefiles since
256 not many people have the assembler. Various Win32 compilation fixes and
257 update to the INSTALL.W32 file with (hopefully) more accurate Win32
258 build instructions.
259 [Steve Henson]
260
9becf666
DSH
261 *) Modify configure script 'Configure' to automatically create crypto/date.h
262 file under Win32 and also build pem.h from pem.org. New script
263 util/mkfiles.pl to create the MINFO file on environments that can't do a
264 'make files': perl util/mkfiles.pl >MINFO should work.
265 [Steve Henson]
266
4e31df2c
BL
267 *) Major rework of DES function declarations, in the pursuit of correctness
268 and purity. As a result, many evil casts evaporated, and some weirdness,
269 too. You may find this causes warnings in your code. Zapping your evil
270 casts will probably fix them. Mostly.
271 [Ben Laurie]
272
e4119b93
DSH
273 *) Fix for a typo in asn1.h. Bug fix to object creation script
274 obj_dat.pl. It considered a zero in an object definition to mean
275 "end of object": none of the objects in objects.h have any zeros
276 so it wasn't spotted.
277 [Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>]
278
4a71b90d
BL
279 *) Add support for Triple DES Cipher Block Chaining with Output Feedback
280 Masking (CBCM). In the absence of test vectors, the best I have been able
281 to do is check that the decrypt undoes the encrypt, so far. Send me test
282 vectors if you have them.
283 [Ben Laurie]
284
2c6ccde1 285 *) Correct calculation of key length for export ciphers (too much space was
436d318c
BL
286 allocated for null ciphers). This has not been tested!
287 [Ben Laurie]
288
55a9cc6e
DSH
289 *) Modifications to the mkdef.pl for Win32 DEF file creation. The usage
290 message is now correct (it understands "crypto" and "ssl" on its
291 command line). There is also now an "update" option. This will update
292 the util/ssleay.num and util/libeay.num files with any new functions.
293 If you do a:
294 perl util/mkdef.pl crypto ssl update
295 it will update them.
e4119b93 296 [Steve Henson]
55a9cc6e 297
8073036d
RE
298 *) Overhauled the Perl interface (perl/*):
299 - ported BN stuff to OpenSSL's different BN library
300 - made the perl/ source tree CVS-aware
301 - renamed the package from SSLeay to OpenSSL (the files still contain
302 their history because I've copied them in the repository)
303 - removed obsolete files (the test scripts will be replaced
304 by better Test::Harness variants in the future)
305 [Ralf S. Engelschall]
306
483fdf18
RE
307 *) First cut for a very conservative source tree cleanup:
308 1. merge various obsolete readme texts into doc/ssleay.txt
309 where we collect the old documents and readme texts.
310 2. remove the first part of files where I'm already sure that we no
311 longer need them because of three reasons: either they are just temporary
312 files which were left by Eric or they are preserved original files where
313 I've verified that the diff is also available in the CVS via "cvs diff
314 -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for
315 the crypto/md/ stuff).
316 [Ralf S. Engelschall]
317
175b0942
DSH
318 *) More extension code. Incomplete support for subject and issuer alt
319 name, issuer and authority key id. Change the i2v function parameters
320 and add an extra 'crl' parameter in the X509V3_CTX structure: guess
321 what that's for :-) Fix to ASN1 macro which messed up
322 IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
323 [Steve Henson]
324
bceacf93
DSH
325 *) Preliminary support for ENUMERATED type. This is largely copied from the
326 INTEGER code.
327 [Steve Henson]
328
351d8998
MC
329 *) Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
330 [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
331
b621d772
RE
332 *) Make sure `make rehash' target really finds the `openssl' program.
333 [Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>]
334
a96e7810
BL
335 *) Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
336 like to hear about it if this slows down other processors.
337 [Ben Laurie]
338
e04a6c2b
RE
339 *) Add CygWin32 platform information to Configure script.
340 [Alan Batie <batie@aahz.jf.intel.com>]
341
0172f988
RE
342 *) Fixed ms/32all.bat script: `no_asm' -> `no-asm'
343 [Rainer W. Gerling <gerling@mpg-gv.mpg.de>]
79dfa975
DSH
344
345 *) New program nseq to manipulate netscape certificate sequences
346 [Steve Henson]
320a14cb 347
9fe84296
DSH
348 *) Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a
349 few typos.
350 [Steve Henson]
351
a0a54079
MC
352 *) Fixes to BN code. Previously the default was to define BN_RECURSION
353 but the BN code had some problems that would cause failures when
354 doing certificate verification and some other functions.
355 [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)]
356
92c046ca
DSH
357 *) Add ASN1 and PEM code to support netscape certificate sequences.
358 [Steve Henson]
359
79dfa975
DSH
360 *) Add ASN1 and PEM code to support netscape certificate sequences.
361 [Steve Henson]
362
a27598bf
DSH
363 *) Add several PKIX and private extended key usage OIDs.
364 [Steve Henson]
365
b2347661
DSH
366 *) Modify the 'ca' program to handle the new extension code. Modify
367 openssl.cnf for new extension format, add comments.
368 [Steve Henson]
369
f317aa4c
DSH
370 *) More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req'
371 and add a sample to openssl.cnf so req -x509 now adds appropriate
372 CA extensions.
373 [Steve Henson]
374
834eeef9
DSH
375 *) Continued X509 V3 changes. Add to other makefiles, integrate with the
376 error code, add initial support to X509_print() and x509 application.
f317aa4c 377 [Steve Henson]
834eeef9 378
9aeaf1b4
DSH
379 *) Takes a deep breath and start addding X509 V3 extension support code. Add
380 files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this
381 stuff is currently isolated and isn't even compiled yet.
382 [Steve Henson]
383
9b5cc156
DSH
384 *) Continuing patches for GeneralizedTime. Fix up certificate and CRL
385 ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print.
386 Removed the versions check from X509 routines when loading extensions:
387 this allows certain broken certificates that don't set the version
388 properly to be processed.
389 [Steve Henson]
390
8039257d
BL
391 *) Deal with irritating shit to do with dependencies, in YAAHW (Yet Another
392 Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which
393 can still be regenerated with "make depend".
394 [Ben Laurie]
395
b13a1554
BL
396 *) Spelling mistake in C version of CAST-128.
397 [Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>]
398
6c8abdd7
DSH
399 *) Changes to the error generation code. The perl script err-code.pl
400 now reads in the old error codes and retains the old numbers, only
401 adding new ones if necessary. It also only changes the .err files if new
402 codes are added. The makefiles have been modified to only insert errors
403 when needed (to avoid needlessly modifying header files). This is done
404 by only inserting errors if the .err file is newer than the auto generated
405 C file. To rebuild all the error codes from scratch (the old behaviour)
406 either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl
407 or delete all the .err files.
9b5cc156 408 [Steve Henson]
6c8abdd7 409
649cdb7b
BL
410 *) CAST-128 was incorrectly implemented for short keys. The C version has
411 been fixed, but is untested. The assembler versions are also fixed, but
412 new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
413 to regenerate it if needed.
414 [Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
415 Hagino <itojun@kame.net>]
416
417 *) File was opened incorrectly in randfile.c.
418