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