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