Compare commits
505 Commits
OpenSSL-en
...
OpenSSL-en
Author | SHA1 | Date | |
---|---|---|---|
![]() |
99ed4cbb03 | ||
![]() |
d8dae0ea36 | ||
![]() |
69410cf5eb | ||
![]() |
8e4b4e10bf | ||
![]() |
166f9b6f39 | ||
![]() |
23f26503d1 | ||
![]() |
093879e8be | ||
![]() |
0f4d260782 | ||
![]() |
db0edbb745 | ||
![]() |
3ef63bcc6b | ||
![]() |
980645e55e | ||
![]() |
9d55e76dd6 | ||
![]() |
fd509d6da5 | ||
![]() |
7fd79b9858 | ||
![]() |
df0017f290 | ||
![]() |
7552d2ebc3 | ||
![]() |
5aeaff0bc0 | ||
![]() |
345d8d572c | ||
![]() |
966eac3dbd | ||
![]() |
a4348a3cd1 | ||
![]() |
b841fc03e7 | ||
![]() |
53fd7688ee | ||
![]() |
5949e8e1dd | ||
![]() |
c4157adf1e | ||
![]() |
8aac6ad0f2 | ||
![]() |
4ff15ba5e9 | ||
![]() |
acc6c94a65 | ||
![]() |
2e824f0444 | ||
![]() |
2b4a238b5b | ||
![]() |
f0c5491e9e | ||
![]() |
c086616c3e | ||
![]() |
f87ab7a42d | ||
![]() |
696335ab46 | ||
![]() |
322f190a18 | ||
![]() |
c4a150c242 | ||
![]() |
a3c5420b28 | ||
![]() |
c99f9b8ff3 | ||
![]() |
22b3a95d5c | ||
![]() |
63e86149c1 | ||
![]() |
ca8f05d093 | ||
![]() |
df29cc8f77 | ||
![]() |
ec7164133d | ||
![]() |
ba8ad07490 | ||
![]() |
17582ccf21 | ||
![]() |
31be2daa06 | ||
![]() |
de868e0b94 | ||
![]() |
15994b034a | ||
![]() |
922fa76e26 | ||
![]() |
19aa370573 | ||
![]() |
d020e701bb | ||
![]() |
364ff369d1 | ||
![]() |
8a09b3866a | ||
![]() |
137445140b | ||
![]() |
6a8afe2201 | ||
![]() |
1e3a9b650f | ||
![]() |
229dc0ee31 | ||
![]() |
fcc764639d | ||
![]() |
821385ad00 | ||
![]() |
b0fc31b390 | ||
![]() |
25ff76d565 | ||
![]() |
9801fb61d0 | ||
![]() |
20199ca809 | ||
![]() |
711f1a3c26 | ||
![]() |
a1d85309ee | ||
![]() |
450cee5c3a | ||
![]() |
a2dbcf3644 | ||
![]() |
4663355496 | ||
![]() |
9dc610495c | ||
![]() |
055076cd4f | ||
![]() |
527497a722 | ||
![]() |
32d21c1ef6 | ||
![]() |
629b58b7fb | ||
![]() |
7fa2a81d34 | ||
![]() |
7f66ab4783 | ||
![]() |
95189389b0 | ||
![]() |
b4b82ab465 | ||
![]() |
89618e7a0d | ||
![]() |
b87e2576b5 | ||
![]() |
0bf23d9b20 | ||
![]() |
813f256783 | ||
![]() |
bfa96bc20e | ||
![]() |
6f17f16fd5 | ||
![]() |
84034f7aec | ||
![]() |
6ceffdd121 | ||
![]() |
acce40c585 | ||
![]() |
6dc78bf7e8 | ||
![]() |
9c8fd367c4 | ||
![]() |
ce4f169ff9 | ||
![]() |
c566205319 | ||
![]() |
eaf6c61c9f | ||
![]() |
4c53d11d7f | ||
![]() |
1d647444e3 | ||
![]() |
c1eeb6078f | ||
![]() |
953db08416 | ||
![]() |
0a5942093e | ||
![]() |
d78254aa28 | ||
![]() |
af67804bef | ||
![]() |
35a6db8640 | ||
![]() |
56dc24d483 | ||
![]() |
84d828ab70 | ||
![]() |
cfae3d94e9 | ||
![]() |
b9c23cca01 | ||
![]() |
c863201780 | ||
![]() |
cb21d001c9 | ||
![]() |
c7faede37b | ||
![]() |
d4e573f305 | ||
![]() |
e20afbb340 | ||
![]() |
2b2ab52354 | ||
![]() |
8d6e60486f | ||
![]() |
1f30946481 | ||
![]() |
b1697f189b | ||
![]() |
17a202add7 | ||
![]() |
3bd16a8902 | ||
![]() |
555d75252a | ||
![]() |
eaad02a747 | ||
![]() |
97101fafd5 | ||
![]() |
403f1bdc70 | ||
![]() |
d574d83993 | ||
![]() |
83411793b6 | ||
![]() |
65caee44ff | ||
![]() |
738554331b | ||
![]() |
3f083ef0eb | ||
![]() |
17ed6c06a7 | ||
![]() |
c112323dd5 | ||
![]() |
0709385d3c | ||
![]() |
54a656ef08 | ||
![]() |
8f797f14b8 | ||
![]() |
c0d64de660 | ||
![]() |
c1ce8cf3b8 | ||
![]() |
2d780dfd81 | ||
![]() |
b6fee5c2fb | ||
![]() |
10fa047622 | ||
![]() |
04f0a6ba39 | ||
![]() |
78a0aebbd8 | ||
![]() |
eb43641dd3 | ||
![]() |
d479dc1d02 | ||
![]() |
7fb8d254fe | ||
![]() |
c99935e32c | ||
![]() |
2232e262bf | ||
![]() |
137e7e3aa1 | ||
![]() |
ba36b61d3d | ||
![]() |
ccb13ded84 | ||
![]() |
9ea1b87862 | ||
![]() |
688cf84d1f | ||
![]() |
69ce48c307 | ||
![]() |
06b7c8d5ba | ||
![]() |
6722b62b36 | ||
![]() |
7d80b27949 | ||
![]() |
d742bd882e | ||
![]() |
97a06ad9ef | ||
![]() |
756b9a0046 | ||
![]() |
96c930dd2f | ||
![]() |
14f4feb05b | ||
![]() |
c81a15099a | ||
![]() |
a8c125550c | ||
![]() |
3782350c14 | ||
![]() |
d6257073aa | ||
![]() |
ddff68bee7 | ||
![]() |
491659c436 | ||
![]() |
8d6fc30bc7 | ||
![]() |
56824b9658 | ||
![]() |
3ba2b94a6b | ||
![]() |
892e9625d3 | ||
![]() |
e2916b2540 | ||
![]() |
53b80e2e43 | ||
![]() |
1810d2088e | ||
![]() |
d618f703ec | ||
![]() |
896e4fef30 | ||
![]() |
38c7271a39 | ||
![]() |
5e3247d8bc | ||
![]() |
b53e44e572 | ||
![]() |
e5f4d8279d | ||
![]() |
86e8b56ac4 | ||
![]() |
bff1567623 | ||
![]() |
db199abd9e | ||
![]() |
b6d0defb98 | ||
![]() |
ad22b914d6 | ||
![]() |
f216fae545 | ||
![]() |
7fff663991 | ||
![]() |
242823c9bc | ||
![]() |
40efa67248 | ||
![]() |
3df44c0571 | ||
![]() |
769fedc3ad | ||
![]() |
9c3db400dc | ||
![]() |
d9ec9d990f | ||
![]() |
7d5376fdae | ||
![]() |
b5148cf1f7 | ||
![]() |
90a617e050 | ||
![]() |
259cdf2af9 | ||
![]() |
6c950e0dc9 | ||
![]() |
62dd6f161a | ||
![]() |
6aba658cd8 | ||
![]() |
accb0c6edb | ||
![]() |
e0db2eed8d | ||
![]() |
7c99da56cf | ||
![]() |
00a357ab20 | ||
![]() |
8ee4845b65 | ||
![]() |
19b8d06a79 | ||
![]() |
5c6bf03117 | ||
![]() |
f72ed6153b | ||
![]() |
d652a0957f | ||
![]() |
fbcd27907b | ||
![]() |
a551bea52e | ||
![]() |
6cb686208e | ||
![]() |
bd1fb77245 | ||
![]() |
d610d27f30 | ||
![]() |
96b35c9e26 | ||
![]() |
907a8f1e6e | ||
![]() |
e1c191fe44 | ||
![]() |
5aa3429c5d | ||
![]() |
ffd418f217 | ||
![]() |
0711be1696 | ||
![]() |
7521ab3d0b | ||
![]() |
0587ec2645 | ||
![]() |
b76d66fbf6 | ||
![]() |
06f851f721 | ||
![]() |
f6661d391c | ||
![]() |
284b216b3a | ||
![]() |
05dbe6ee1f | ||
![]() |
871d0f5126 | ||
![]() |
5be1264b7e | ||
![]() |
311d8d84bd | ||
![]() |
314c667050 | ||
![]() |
28c8a911bd | ||
![]() |
437d1ed49f | ||
![]() |
12fd8be2c4 | ||
![]() |
8258f7b361 | ||
![]() |
e15ea3d9e1 | ||
![]() |
677532629d | ||
![]() |
57d8ff79b2 | ||
![]() |
4b14ed760d | ||
![]() |
79a6260a11 | ||
![]() |
a0bf8f2008 | ||
![]() |
408bf2f0c4 | ||
![]() |
874fee478c | ||
![]() |
90d9a69bb1 | ||
![]() |
4006c56036 | ||
![]() |
1729588435 | ||
![]() |
6f7c2cb31e | ||
![]() |
8fd54b07a8 | ||
![]() |
a4629f4136 | ||
![]() |
56b5f687e4 | ||
![]() |
caa4f47f61 | ||
![]() |
36757b4438 | ||
![]() |
75871dda4b | ||
![]() |
506fec1a95 | ||
![]() |
aae329c447 | ||
![]() |
02acf1409e | ||
![]() |
6ac3309c74 | ||
![]() |
1b15cfa11d | ||
![]() |
76dfca879f | ||
![]() |
7cdc7bacea | ||
![]() |
fbd78b5c08 | ||
![]() |
fbcd0da597 | ||
![]() |
665dc3924d | ||
![]() |
4bdacff25b | ||
![]() |
ecd45314b8 | ||
![]() |
3e06fb754e | ||
![]() |
b2e20a31ea | ||
![]() |
38e19a4220 | ||
![]() |
f28164fefd | ||
![]() |
2eaabb718b | ||
![]() |
5572f482e7 | ||
![]() |
729f0a277e | ||
![]() |
c55d759168 | ||
![]() |
b7910992d8 | ||
![]() |
cf3b8b52f1 | ||
![]() |
42b06fbaca | ||
![]() |
2245cd87d4 | ||
![]() |
c199837c54 | ||
![]() |
83699c4784 | ||
![]() |
30afcc072a | ||
![]() |
832f9304fd | ||
![]() |
fa4bde98d2 | ||
![]() |
ca80756c70 | ||
![]() |
ef0baf60aa | ||
![]() |
7ba3a4c3d2 | ||
![]() |
29e48c18b7 | ||
![]() |
982dfb7d10 | ||
![]() |
8c4b69d3ab | ||
![]() |
0e2cc42cfb | ||
![]() |
1e5c205ccb | ||
![]() |
4c82171a8e | ||
![]() |
88c80b3e75 | ||
![]() |
3ae068316b | ||
![]() |
27bad5ad3d | ||
![]() |
6a89a25c27 | ||
![]() |
001ab3abad | ||
![]() |
ec8ad2bb96 | ||
![]() |
5fbb02fcb1 | ||
![]() |
4e1b50e219 | ||
![]() |
d7b2342a6a | ||
![]() |
7e9db7cefc | ||
![]() |
d30e4c5b0b | ||
![]() |
9de6bb8abc | ||
![]() |
72e04bd13f | ||
![]() |
4ec0448122 | ||
![]() |
842d8e209b | ||
![]() |
292fcd5c7b | ||
![]() |
74e3931f84 | ||
![]() |
12dadc555f | ||
![]() |
b75b2225e5 | ||
![]() |
12f27bd414 | ||
![]() |
69deec58fb | ||
![]() |
1e976bdc46 | ||
![]() |
9946fceb9d | ||
![]() |
6fed88113b | ||
![]() |
97ebe047d0 | ||
![]() |
fc6a6a1030 | ||
![]() |
3d840c827f | ||
![]() |
a2a1a04e53 | ||
![]() |
f86abc2e80 | ||
![]() |
7104c376ae | ||
![]() |
0638ced5cc | ||
![]() |
e984b2af64 | ||
![]() |
70e96dcf59 | ||
![]() |
2c696b2ddc | ||
![]() |
9a48b07ee4 | ||
![]() |
230fd6b7b6 | ||
![]() |
fd1c27897c | ||
![]() |
20b33a015f | ||
![]() |
293d5082c7 | ||
![]() |
929f116733 | ||
![]() |
ba5ba5490d | ||
![]() |
b8565a9af9 | ||
![]() |
c4a24b13f3 | ||
![]() |
94960c8421 | ||
![]() |
6859cf7459 | ||
![]() |
2018681b33 | ||
![]() |
e204516178 | ||
![]() |
153aecf91a | ||
![]() |
cd98ab6491 | ||
![]() |
b3823ac64b | ||
![]() |
5d9470ff8e | ||
![]() |
e78f137899 | ||
![]() |
40e66398db | ||
![]() |
bb298120c9 | ||
![]() |
6e32d0a74b | ||
![]() |
a4f53a1c73 | ||
![]() |
a90ae02454 | ||
![]() |
4c8f79a33e | ||
![]() |
7cc6ec7af7 | ||
![]() |
c2bbf275b2 | ||
![]() |
9226e2187c | ||
![]() |
48921e00fc | ||
![]() |
f804930150 | ||
![]() |
3403caf3da | ||
![]() |
ba11121731 | ||
![]() |
ed5e37c309 | ||
![]() |
65b1d31df5 | ||
![]() |
b499ed06d2 | ||
![]() |
6ff7c95843 | ||
![]() |
41cc7096b8 | ||
![]() |
c237de058f | ||
![]() |
e2aeb8174b | ||
![]() |
34f1f2a81c | ||
![]() |
c96f0fd2d1 | ||
![]() |
8aefe253a7 | ||
![]() |
7e31164ae0 | ||
![]() |
ad55f581f9 | ||
![]() |
d4a8f90cab | ||
![]() |
41ab00bedf | ||
![]() |
fc85ac20c7 | ||
![]() |
e88479243c | ||
![]() |
c787525ac8 | ||
![]() |
9a2601033d | ||
![]() |
fbb311a7d2 | ||
![]() |
f309c1ae50 | ||
![]() |
82a20fb0f0 | ||
![]() |
428112ef10 | ||
![]() |
64376cd8ff | ||
![]() |
cc8aa08b02 | ||
![]() |
1c4e4e4f56 | ||
![]() |
3f6db7f518 | ||
![]() |
8435a755fd | ||
![]() |
52c29b7b99 | ||
![]() |
c6bf63da7c | ||
![]() |
0fd05a2f0f | ||
![]() |
1fd0338b49 | ||
![]() |
b2be73e4e8 | ||
![]() |
37f5fcf85c | ||
![]() |
f742e497dd | ||
![]() |
dcc426fcfe | ||
![]() |
7eb18f1237 | ||
![]() |
265e892fed | ||
![]() |
c3bfe3f4cb | ||
![]() |
623e9e66c0 | ||
![]() |
90f5a2b6fe | ||
![]() |
bf625abe29 | ||
![]() |
b44069730b | ||
![]() |
749d055eba | ||
![]() |
49a0f77867 | ||
![]() |
2af52de7b5 | ||
![]() |
629d860cbc | ||
![]() |
056cc163f5 | ||
![]() |
e09efcf71a | ||
![]() |
763b4dcc66 | ||
![]() |
83348e0b80 | ||
![]() |
f13ddd5d0a | ||
![]() |
18a31aa861 | ||
![]() |
b2a4e959c9 | ||
![]() |
f17ef241d1 | ||
![]() |
aa1e56b0b9 | ||
![]() |
7ef524ea1c | ||
![]() |
0c7141a343 | ||
![]() |
5488bb6197 | ||
![]() |
8e28c67155 | ||
![]() |
36969082bb | ||
![]() |
4fde69b066 | ||
![]() |
fd9a4dbe94 | ||
![]() |
f0db0ed35d | ||
![]() |
6d24cbf452 | ||
![]() |
5454829ae6 | ||
![]() |
da0bca6466 | ||
![]() |
4705bd9b37 | ||
![]() |
5bd90983bc | ||
![]() |
329f981582 | ||
![]() |
d84a727178 | ||
![]() |
cece7adcee | ||
![]() |
74cc4903ef | ||
![]() |
41fdcfa71e | ||
![]() |
e463adeff8 | ||
![]() |
60cc56b1a9 | ||
![]() |
f912e9293f | ||
![]() |
56939728b7 | ||
![]() |
e39238e403 | ||
![]() |
ea26226046 | ||
![]() |
17f6279317 | ||
![]() |
e172d60ddb | ||
![]() |
ecdf154993 | ||
![]() |
f8fe7fa491 | ||
![]() |
fbe792f0ac | ||
![]() |
5d92a7bef1 | ||
![]() |
14a7cfb32a | ||
![]() |
7a8645d171 | ||
![]() |
5bf738737d | ||
![]() |
415e03aa6f | ||
![]() |
ac120e20e3 | ||
![]() |
3f90e45079 | ||
![]() |
9dcc441a5f | ||
![]() |
db4f691f9f | ||
![]() |
d28735a05b | ||
![]() |
183847747a | ||
![]() |
bac6012308 | ||
![]() |
aaa384ca1a | ||
![]() |
f908226898 | ||
![]() |
909abce800 | ||
![]() |
33d4e690cc | ||
![]() |
848c849584 | ||
![]() |
102c8f47bf | ||
![]() |
d3bcbba45c | ||
![]() |
0903e56196 | ||
![]() |
95ecacf8a2 | ||
![]() |
be8a280e0b | ||
![]() |
6fb60a84dd | ||
![]() |
5af7d1a3b8 | ||
![]() |
35b73a1f20 | ||
![]() |
9e4f9b36fc | ||
![]() |
84d7e365a0 | ||
![]() |
64c3da230f | ||
![]() |
7793f30e09 | ||
![]() |
714df32e33 | ||
![]() |
1dc920c8de | ||
![]() |
16dc1cfb5c | ||
![]() |
819ff32dc4 | ||
![]() |
5574e0ed41 | ||
![]() |
042e57d562 | ||
![]() |
ba8fb52183 | ||
![]() |
f6f9961819 | ||
![]() |
e74e9c48de | ||
![]() |
179add2b07 | ||
![]() |
456bc309d8 | ||
![]() |
a7535a2727 | ||
![]() |
44c09667ff | ||
![]() |
da9b972466 | ||
![]() |
bd45950f4a | ||
![]() |
f70cf11819 | ||
![]() |
5575f781ad | ||
![]() |
0472883cc2 | ||
![]() |
87e8feca95 | ||
![]() |
e70a39830c | ||
![]() |
ba25198517 | ||
![]() |
6297bcd74c | ||
![]() |
dd7ab82e75 | ||
![]() |
c046fffa16 | ||
![]() |
3aecef7697 | ||
![]() |
b218af2b27 | ||
![]() |
77c46bbf29 | ||
![]() |
02750ff56f | ||
![]() |
0bee0e6294 | ||
![]() |
12593e6f45 | ||
![]() |
819a040f44 | ||
![]() |
546405bece | ||
![]() |
f013c7f2a6 | ||
![]() |
1cc67fa80c | ||
![]() |
eefa6e4e2b | ||
![]() |
6d9116f83d | ||
![]() |
8be4e173e8 | ||
![]() |
648765ba2f | ||
![]() |
c6ccf055ba | ||
![]() |
1649d85d10 | ||
![]() |
cd72dcd925 | ||
![]() |
7a5ed919ad | ||
![]() |
799d7a34cf | ||
![]() |
20adcfa058 |
158
CHANGES
158
CHANGES
@@ -2,6 +2,152 @@
|
|||||||
OpenSSL CHANGES
|
OpenSSL CHANGES
|
||||||
_______________
|
_______________
|
||||||
|
|
||||||
|
Changes between 0.9.6k and 0.9.6l [04 Nov 2003]
|
||||||
|
|
||||||
|
*) Fix additional bug revealed by the NISCC test suite:
|
||||||
|
|
||||||
|
Stop bug triggering large recursion when presented with
|
||||||
|
certain ASN.1 tags (CAN-2003-0851)
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
Changes between 0.9.6j and 0.9.6k [30 Sep 2003]
|
||||||
|
|
||||||
|
*) Fix various bugs revealed by running the NISCC test suite:
|
||||||
|
|
||||||
|
Stop out of bounds reads in the ASN1 code when presented with
|
||||||
|
invalid tags (CAN-2003-0543 and CAN-2003-0544).
|
||||||
|
|
||||||
|
If verify callback ignores invalid public key errors don't try to check
|
||||||
|
certificate signature with the NULL public key.
|
||||||
|
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
|
||||||
|
if the server requested one: as stated in TLS 1.0 and SSL 3.0
|
||||||
|
specifications.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
|
||||||
|
extra data after the compression methods not only for TLS 1.0
|
||||||
|
but also for SSL 3.0 (as required by the specification).
|
||||||
|
[Bodo Moeller; problem pointed out by Matthias Loepfe]
|
||||||
|
|
||||||
|
*) Change X509_certificate_type() to mark the key as exported/exportable
|
||||||
|
when it's 512 *bits* long, not 512 bytes.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
Changes between 0.9.6i and 0.9.6j [10 Apr 2003]
|
||||||
|
|
||||||
|
*) Countermeasure against the Klima-Pokorny-Rosa extension of
|
||||||
|
Bleichbacher's attack on PKCS #1 v1.5 padding: treat
|
||||||
|
a protocol version number mismatch like a decryption error
|
||||||
|
in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Turn on RSA blinding by default in the default implementation
|
||||||
|
to avoid a timing attack. Applications that don't want it can call
|
||||||
|
RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
|
||||||
|
They would be ill-advised to do so in most cases.
|
||||||
|
[Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller]
|
||||||
|
|
||||||
|
*) Change RSA blinding code so that it works when the PRNG is not
|
||||||
|
seeded (in this case, the secret RSA exponent is abused as
|
||||||
|
an unpredictable seed -- if it is not unpredictable, there
|
||||||
|
is no point in blinding anyway). Make RSA blinding thread-safe
|
||||||
|
by remembering the creator's thread ID in rsa->blinding and
|
||||||
|
having all other threads use local one-time blinding factors
|
||||||
|
(this requires more computation than sharing rsa->blinding, but
|
||||||
|
avoids excessive locking; and if an RSA object is not shared
|
||||||
|
between threads, blinding will still be very fast).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
Changes between 0.9.6h and 0.9.6i [19 Feb 2003]
|
||||||
|
|
||||||
|
*) In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
|
||||||
|
via timing by performing a MAC computation even if incorrrect
|
||||||
|
block cipher padding has been found. This is a countermeasure
|
||||||
|
against active attacks where the attacker has to distinguish
|
||||||
|
between bad padding and a MAC verification error. (CAN-2003-0078)
|
||||||
|
|
||||||
|
[Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
|
||||||
|
Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
|
||||||
|
Martin Vuagnoux (EPFL, Ilion)]
|
||||||
|
|
||||||
|
Changes between 0.9.6g and 0.9.6h [5 Dec 2002]
|
||||||
|
|
||||||
|
*) New function OPENSSL_cleanse(), which is used to cleanse a section of
|
||||||
|
memory from it's contents. This is done with a counter that will
|
||||||
|
place alternating values in each byte. This can be used to solve
|
||||||
|
two issues: 1) the removal of calls to memset() by highly optimizing
|
||||||
|
compilers, and 2) cleansing with other values than 0, since those can
|
||||||
|
be read through on certain media, for example a swap space on disk.
|
||||||
|
[Geoff Thorpe]
|
||||||
|
|
||||||
|
*) Bugfix: client side session caching did not work with external caching,
|
||||||
|
because the session->cipher setting was not restored when reloading
|
||||||
|
from the external cache. This problem was masked, when
|
||||||
|
SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG (part of SSL_OP_ALL) was set.
|
||||||
|
(Found by Steve Haslam <steve@araqnid.ddts.net>.)
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix client_certificate (ssl/s2_clnt.c): The permissible total
|
||||||
|
length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33.
|
||||||
|
[Zeev Lieber <zeev-l@yahoo.com>]
|
||||||
|
|
||||||
|
*) Undo an undocumented change introduced in 0.9.6e which caused
|
||||||
|
repeated calls to OpenSSL_add_all_ciphers() and
|
||||||
|
OpenSSL_add_all_digests() to be ignored, even after calling
|
||||||
|
EVP_cleanup().
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) Change the default configuration reader to deal with last line not
|
||||||
|
being properly terminated.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) Change X509_NAME_cmp() so it applies the special rules on handling
|
||||||
|
DN values that are of type PrintableString, as well as RDNs of type
|
||||||
|
emailAddress where the value has the type ia5String.
|
||||||
|
[stefank@valicert.com via Richard Levitte]
|
||||||
|
|
||||||
|
*) Add a SSL_SESS_CACHE_NO_INTERNAL_STORE flag to take over half
|
||||||
|
the job SSL_SESS_CACHE_NO_INTERNAL_LOOKUP was inconsistently
|
||||||
|
doing, define a new flag (SSL_SESS_CACHE_NO_INTERNAL) to be
|
||||||
|
the bitwise-OR of the two for use by the majority of applications
|
||||||
|
wanting this behaviour, and update the docs. The documented
|
||||||
|
behaviour and actual behaviour were inconsistent and had been
|
||||||
|
changing anyway, so this is more a bug-fix than a behavioural
|
||||||
|
change.
|
||||||
|
[Geoff Thorpe, diagnosed by Nadav Har'El]
|
||||||
|
|
||||||
|
*) Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c
|
||||||
|
(the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix initialization code race conditions in
|
||||||
|
SSLv23_method(), SSLv23_client_method(), SSLv23_server_method(),
|
||||||
|
SSLv2_method(), SSLv2_client_method(), SSLv2_server_method(),
|
||||||
|
SSLv3_method(), SSLv3_client_method(), SSLv3_server_method(),
|
||||||
|
TLSv1_method(), TLSv1_client_method(), TLSv1_server_method(),
|
||||||
|
ssl2_get_cipher_by_char(),
|
||||||
|
ssl3_get_cipher_by_char().
|
||||||
|
[Patrick McCormick <patrick@tellme.com>, Bodo Moeller]
|
||||||
|
|
||||||
|
*) Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
|
||||||
|
the cached sessions are flushed, as the remove_cb() might use ex_data
|
||||||
|
contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com>
|
||||||
|
(see [openssl.org #212]).
|
||||||
|
[Geoff Thorpe, Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix typo in OBJ_txt2obj which incorrectly passed the content
|
||||||
|
length, instead of the encoding length to d2i_ASN1_OBJECT.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
|
||||||
|
|
||||||
|
*) [In 0.9.6g-engine release:]
|
||||||
|
Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use '_stdcall').
|
||||||
|
[Lynn Gazis <lgazis@rainbow.com>]
|
||||||
|
|
||||||
Changes between 0.9.6e and 0.9.6f [8 Aug 2002]
|
Changes between 0.9.6e and 0.9.6f [8 Aug 2002]
|
||||||
|
|
||||||
*) Fix ASN1 checks. Check for overflow by comparing with LONG_MAX
|
*) Fix ASN1 checks. Check for overflow by comparing with LONG_MAX
|
||||||
@@ -17,6 +163,12 @@
|
|||||||
|
|
||||||
Changes between 0.9.6d and 0.9.6e [30 Jul 2002]
|
Changes between 0.9.6d and 0.9.6e [30 Jul 2002]
|
||||||
|
|
||||||
|
*) Add various sanity checks to asn1_get_length() to reject
|
||||||
|
the ASN1 length bytes if they exceed sizeof(long), will appear
|
||||||
|
negative or the content length exceeds the length of the
|
||||||
|
supplied buffer.
|
||||||
|
[Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>]
|
||||||
|
|
||||||
*) Fix cipher selection routines: ciphers without encryption had no flags
|
*) Fix cipher selection routines: ciphers without encryption had no flags
|
||||||
for the cipher strength set and where therefore not handled correctly
|
for the cipher strength set and where therefore not handled correctly
|
||||||
by the selection routines (PR #130).
|
by the selection routines (PR #130).
|
||||||
@@ -48,7 +200,7 @@
|
|||||||
*) Add various sanity checks to asn1_get_length() to reject
|
*) Add various sanity checks to asn1_get_length() to reject
|
||||||
the ASN1 length bytes if they exceed sizeof(long), will appear
|
the ASN1 length bytes if they exceed sizeof(long), will appear
|
||||||
negative or the content length exceeds the length of the
|
negative or the content length exceeds the length of the
|
||||||
supplied buffer.
|
supplied buffer. (CAN-2002-0659)
|
||||||
[Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>]
|
[Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>]
|
||||||
|
|
||||||
*) Assertions for various potential buffer overflows, not known to
|
*) Assertions for various potential buffer overflows, not known to
|
||||||
@@ -153,8 +305,8 @@
|
|||||||
value is 0.
|
value is 0.
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
*) [In 0.9.6c-engine release:]
|
*) [In 0.9.6d-engine release:]
|
||||||
Fix a crashbug and a logic bug in hwcrhk_load_pubkey()
|
Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
|
||||||
[Toomas Kiisk <vix@cyber.ee> via Richard Levitte]
|
[Toomas Kiisk <vix@cyber.ee> via Richard Levitte]
|
||||||
|
|
||||||
*) Add the configuration target linux-s390x.
|
*) Add the configuration target linux-s390x.
|
||||||
|
36
Configure
36
Configure
@@ -132,7 +132,7 @@ my %table=(
|
|||||||
"debug-bodo", "gcc:-DL_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -DBIO_PAIR_DEBUG -g -m486 -pedantic -Wshadow -Wall::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
"debug-bodo", "gcc:-DL_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -DBIO_PAIR_DEBUG -g -m486 -pedantic -Wshadow -Wall::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
||||||
"debug-ulf", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
"debug-ulf", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
||||||
"debug-steve", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
"debug-steve", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
||||||
"debug-levitte-linux-elf","gcc:-DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe::-D_REENTRANT:-ldl:::::::::::dlfcn",
|
"debug-levitte-linux-elf","gcc:-DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wmissing-declarations -pipe::-D_REENTRANT:-ldl:::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"dist", "cc:-O::(unknown):::::",
|
"dist", "cc:-O::(unknown):::::",
|
||||||
|
|
||||||
# Basic configs that should work on any (32 and less bit) box
|
# Basic configs that should work on any (32 and less bit) box
|
||||||
@@ -405,7 +405,7 @@ my %table=(
|
|||||||
"aix-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown)::BN_LLONG RC4_CHAR:::",
|
"aix-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown)::BN_LLONG RC4_CHAR:::",
|
||||||
"aix-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR:::",
|
"aix-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR:::",
|
||||||
"aix43-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
"aix43-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
||||||
"aix43-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
"aix43-gcc", "gcc:-O1 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
||||||
|
|
||||||
#
|
#
|
||||||
# Cray T90 and similar (SDSC)
|
# Cray T90 and similar (SDSC)
|
||||||
@@ -487,7 +487,7 @@ my %table=(
|
|||||||
|
|
||||||
# Cygwin
|
# Cygwin
|
||||||
"Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
"Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
||||||
"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32:cygwin-shared:::.dll",
|
"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -march=i486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32:cygwin-shared:::.dll",
|
||||||
|
|
||||||
# Ultrix from Bernhard Simon <simon@zid.tuwien.ac.at>
|
# Ultrix from Bernhard Simon <simon@zid.tuwien.ac.at>
|
||||||
"ultrix-cc","cc:-std1 -O -Olimit 1000 -DL_ENDIAN::(unknown)::::::",
|
"ultrix-cc","cc:-std1 -O -Olimit 1000 -DL_ENDIAN::(unknown)::::::",
|
||||||
@@ -505,12 +505,18 @@ my %table=(
|
|||||||
"rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::",
|
"rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::",
|
||||||
"darwin-ppc-cc","cc:-O3 -D_DARWIN -DB_ENDIAN -fno-common::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::::::::::darwin-shared:-fPIC::.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
"darwin-ppc-cc","cc:-O3 -D_DARWIN -DB_ENDIAN -fno-common::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::::::::::darwin-shared:-fPIC::.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||||
|
|
||||||
|
##### A/UX
|
||||||
|
"aux3-gcc","gcc:-O2 -DTERMIO::(unknown):-lbsd:RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::",
|
||||||
|
|
||||||
##### Sony NEWS-OS 4.x
|
##### Sony NEWS-OS 4.x
|
||||||
"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
|
"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
|
||||||
|
|
||||||
##### VxWorks for various targets
|
##### VxWorks for various targets
|
||||||
"vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DVXWORKS -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::-r:::::",
|
"vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DVXWORKS -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::-r:::::",
|
||||||
|
|
||||||
|
##### Compaq Non-Stop Kernel (Tandem)
|
||||||
|
"tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN::(unknown)::THIRTY_TWO_BIT:::",
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32
|
my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32
|
||||||
@@ -587,6 +593,7 @@ my $libs;
|
|||||||
my $target;
|
my $target;
|
||||||
my $options;
|
my $options;
|
||||||
my $symlink;
|
my $symlink;
|
||||||
|
my $make_depend=0;
|
||||||
|
|
||||||
my @argvcopy=@ARGV;
|
my @argvcopy=@ARGV;
|
||||||
my $argvstring="";
|
my $argvstring="";
|
||||||
@@ -641,7 +648,7 @@ PROCESS_ARGS:
|
|||||||
{ $threads=1; }
|
{ $threads=1; }
|
||||||
elsif (/^no-shared$/)
|
elsif (/^no-shared$/)
|
||||||
{ $no_shared=1; }
|
{ $no_shared=1; }
|
||||||
elsif (/^shared$/)
|
elsif (/^shared$/ || /^-shared$/ || /^--shared$/)
|
||||||
{ $no_shared=0; }
|
{ $no_shared=0; }
|
||||||
elsif (/^no-symlinks$/)
|
elsif (/^no-symlinks$/)
|
||||||
{ $symlink=0; }
|
{ $symlink=0; }
|
||||||
@@ -1210,11 +1217,13 @@ if($IsWindows) {
|
|||||||
EOF
|
EOF
|
||||||
close(OUT);
|
close(OUT);
|
||||||
} else {
|
} else {
|
||||||
(system "make -f Makefile.ssl PERL=\'$perl\' links") == 0 or exit $?
|
my $make_command = "make -f Makefile.ssl PERL=\'$perl\'";
|
||||||
if $symlink;
|
my $make_targets = "";
|
||||||
### (system 'make depend') == 0 or exit $? if $depflags ne "";
|
$make_targets .= " links" if $symlink;
|
||||||
# Run "make depend" manually if you want to be able to delete
|
$make_targets .= " depend" if $depflags ne "" && $make_depend;
|
||||||
# the source code files of ciphers you left out.
|
$make_targets .= " gentests" if $symlink;
|
||||||
|
(system $make_command.$make_targets) == 0 or exit $?
|
||||||
|
if $make_targets ne "";
|
||||||
if ( $perl =~ m@^/@) {
|
if ( $perl =~ m@^/@) {
|
||||||
&dofile("tools/c_rehash",$perl,'^#!/', '#!%s','^my \$dir;$', 'my $dir = "' . $openssldir . '";');
|
&dofile("tools/c_rehash",$perl,'^#!/', '#!%s','^my \$dir;$', 'my $dir = "' . $openssldir . '";');
|
||||||
&dofile("apps/der_chop",$perl,'^#!/', '#!%s');
|
&dofile("apps/der_chop",$perl,'^#!/', '#!%s');
|
||||||
@@ -1225,6 +1234,15 @@ EOF
|
|||||||
&dofile("apps/der_chop",'/usr/local/bin/perl','^#!/', '#!%s');
|
&dofile("apps/der_chop",'/usr/local/bin/perl','^#!/', '#!%s');
|
||||||
&dofile("apps/CA.pl",'/usr/local/bin/perl','^#!/', '#!%s');
|
&dofile("apps/CA.pl",'/usr/local/bin/perl','^#!/', '#!%s');
|
||||||
}
|
}
|
||||||
|
if ($depflags ne "" && !$make_depend) {
|
||||||
|
print <<EOF;
|
||||||
|
|
||||||
|
Since you've disabled at least one algorithm, you need to do the following
|
||||||
|
before building:
|
||||||
|
|
||||||
|
make depend
|
||||||
|
EOF
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
|
73
FAQ
73
FAQ
@@ -9,6 +9,7 @@ OpenSSL - Frequently Asked Questions
|
|||||||
* Where can I get a compiled version of OpenSSL?
|
* Where can I get a compiled version of OpenSSL?
|
||||||
* Why aren't tools like 'autoconf' and 'libtool' used?
|
* Why aren't tools like 'autoconf' and 'libtool' used?
|
||||||
* What is an 'engine' version?
|
* What is an 'engine' version?
|
||||||
|
* How do I check the authenticity of the OpenSSL distribution?
|
||||||
|
|
||||||
[LEGAL] Legal questions
|
[LEGAL] Legal questions
|
||||||
|
|
||||||
@@ -35,6 +36,7 @@ OpenSSL - Frequently Asked Questions
|
|||||||
* Why does the linker complain about undefined symbols?
|
* Why does the linker complain about undefined symbols?
|
||||||
* Why does the OpenSSL test fail with "bc: command not found"?
|
* Why does the OpenSSL test fail with "bc: command not found"?
|
||||||
* Why does the OpenSSL test fail with "bc: 1 no implemented"?
|
* Why does the OpenSSL test fail with "bc: 1 no implemented"?
|
||||||
|
* Why does the OpenSSL test fail with "bc: stack empty"?
|
||||||
* Why does the OpenSSL compilation fail on Alpha Tru64 Unix?
|
* Why does the OpenSSL compilation fail on Alpha Tru64 Unix?
|
||||||
* Why does the OpenSSL compilation fail with "ar: command not found"?
|
* Why does the OpenSSL compilation fail with "ar: command not found"?
|
||||||
* Why does the OpenSSL compilation fail on Win32 with VC++?
|
* Why does the OpenSSL compilation fail on Win32 with VC++?
|
||||||
@@ -61,7 +63,7 @@ OpenSSL - Frequently Asked Questions
|
|||||||
* Which is the current version of OpenSSL?
|
* Which is the current version of OpenSSL?
|
||||||
|
|
||||||
The current version is available from <URL: http://www.openssl.org>.
|
The current version is available from <URL: http://www.openssl.org>.
|
||||||
OpenSSL 0.9.6f was released on 8 August 2002.
|
OpenSSL 0.9.7c was released on September 30, 2003.
|
||||||
|
|
||||||
In addition to the current stable release, you can also access daily
|
In addition to the current stable release, you can also access daily
|
||||||
snapshots of the OpenSSL development version at <URL:
|
snapshots of the OpenSSL development version at <URL:
|
||||||
@@ -132,6 +134,19 @@ hardware. This was realized in a special release '0.9.6-engine'. With
|
|||||||
version 0.9.7 (not yet released) the changes were merged into the main
|
version 0.9.7 (not yet released) the changes were merged into the main
|
||||||
development line, so that the special release is no longer necessary.
|
development line, so that the special release is no longer necessary.
|
||||||
|
|
||||||
|
* How do I check the authenticity of the OpenSSL distribution?
|
||||||
|
|
||||||
|
We provide MD5 digests and ASC signatures of each tarball.
|
||||||
|
Use MD5 to check that a tarball from a mirror site is identical:
|
||||||
|
|
||||||
|
md5sum TARBALL | awk '{print $1;}' | cmp - TARBALL.md5
|
||||||
|
|
||||||
|
You can check authenticity using pgp or gpg. You need the OpenSSL team
|
||||||
|
member public key used to sign it (download it from a key server). Then
|
||||||
|
just do:
|
||||||
|
|
||||||
|
pgp TARBALL.asc
|
||||||
|
|
||||||
[LEGAL] =======================================================================
|
[LEGAL] =======================================================================
|
||||||
|
|
||||||
* Do I need patent licenses to use OpenSSL?
|
* Do I need patent licenses to use OpenSSL?
|
||||||
@@ -169,18 +184,30 @@ for permission to use their software with OpenSSL.
|
|||||||
|
|
||||||
Cryptographic software needs a source of unpredictable data to work
|
Cryptographic software needs a source of unpredictable data to work
|
||||||
correctly. Many open source operating systems provide a "randomness
|
correctly. Many open source operating systems provide a "randomness
|
||||||
device" that serves this purpose. On other systems, applications have
|
device" (/dev/urandom or /dev/random) that serves this purpose.
|
||||||
to call the RAND_add() or RAND_seed() function with appropriate data
|
All OpenSSL versions try to use /dev/urandom by default; starting with
|
||||||
before generating keys or performing public key encryption.
|
version 0.9.7, OpenSSL also tries /dev/random if /dev/urandom is not
|
||||||
(These functions initialize the pseudo-random number generator, PRNG.)
|
available.
|
||||||
|
|
||||||
Some broken applications do not do this. As of version 0.9.5, the
|
On other systems, applications have to call the RAND_add() or
|
||||||
OpenSSL functions that need randomness report an error if the random
|
RAND_seed() function with appropriate data before generating keys or
|
||||||
number generator has not been seeded with at least 128 bits of
|
performing public key encryption. (These functions initialize the
|
||||||
randomness. If this error occurs, please contact the author of the
|
pseudo-random number generator, PRNG.) Some broken applications do
|
||||||
application you are using. It is likely that it never worked
|
not do this. As of version 0.9.5, the OpenSSL functions that need
|
||||||
correctly. OpenSSL 0.9.5 and later make the error visible by refusing
|
randomness report an error if the random number generator has not been
|
||||||
to perform potentially insecure encryption.
|
seeded with at least 128 bits of randomness. If this error occurs and
|
||||||
|
is not discussed in the documentation of the application you are
|
||||||
|
using, please contact the author of that application; it is likely
|
||||||
|
that it never worked correctly. OpenSSL 0.9.5 and later make the
|
||||||
|
error visible by refusing to perform potentially insecure encryption.
|
||||||
|
|
||||||
|
If you are using Solaris 8, you can add /dev/urandom and /dev/random
|
||||||
|
devices by installing patch 112438 (Sparc) or 112439 (x86), which are
|
||||||
|
available via the Patchfinder at <URL: http://sunsolve.sun.com>
|
||||||
|
(Solaris 9 includes these devices by default). For /dev/random support
|
||||||
|
for earlier Solaris versions, see Sun's statement at
|
||||||
|
<URL: http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsrdb/27606&zone_32=SUNWski>
|
||||||
|
(the SUNWski package is available in patch 105710).
|
||||||
|
|
||||||
On systems without /dev/urandom and /dev/random, it is a good idea to
|
On systems without /dev/urandom and /dev/random, it is a good idea to
|
||||||
use the Entropy Gathering Demon (EGD); see the RAND_egd() manpage for
|
use the Entropy Gathering Demon (EGD); see the RAND_egd() manpage for
|
||||||
@@ -213,16 +240,6 @@ OpenSSL command line tools. Applications using the OpenSSL library
|
|||||||
provide their own configuration options to specify the entropy source,
|
provide their own configuration options to specify the entropy source,
|
||||||
please check out the documentation coming the with application.
|
please check out the documentation coming the with application.
|
||||||
|
|
||||||
For Solaris 2.6, Tim Nibbe <tnibbe@sprint.net> and others have suggested
|
|
||||||
installing the SUNski package from Sun patch 105710-01 (Sparc) which
|
|
||||||
adds a /dev/random device and make sure it gets used, usually through
|
|
||||||
$RANDFILE. There are probably similar patches for the other Solaris
|
|
||||||
versions. An official statement from Sun with respect to /dev/random
|
|
||||||
support can be found at
|
|
||||||
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsrdb/27606&zone_32=SUNWski
|
|
||||||
However, be warned that /dev/random is usually a blocking device, which
|
|
||||||
may have some effects on OpenSSL.
|
|
||||||
|
|
||||||
|
|
||||||
* Why do I get an "unable to write 'random state'" error message?
|
* Why do I get an "unable to write 'random state'" error message?
|
||||||
|
|
||||||
@@ -392,6 +409,17 @@ and compile/install it. GNU bc (see http://www.gnu.org/software/software.html
|
|||||||
for download instructions) can be safely used, for example.
|
for download instructions) can be safely used, for example.
|
||||||
|
|
||||||
|
|
||||||
|
* Why does the OpenSSL test fail with "bc: stack empty"?
|
||||||
|
|
||||||
|
On some DG/ux versions, bc seems to have a too small stack for calculations
|
||||||
|
that the OpenSSL bntest throws at it. This gets triggered when you run the
|
||||||
|
test suite (using "make test"). The message returned is "bc: stack empty".
|
||||||
|
|
||||||
|
The best way to deal with this is to find another implementation of bc
|
||||||
|
and compile/install it. GNU bc (see http://www.gnu.org/software/software.html
|
||||||
|
for download instructions) can be safely used, for example.
|
||||||
|
|
||||||
|
|
||||||
* Why does the OpenSSL compilation fail on Alpha Tru64 Unix?
|
* Why does the OpenSSL compilation fail on Alpha Tru64 Unix?
|
||||||
|
|
||||||
On some Alpha installations running Tru64 Unix and Compaq C, the compilation
|
On some Alpha installations running Tru64 Unix and Compaq C, the compilation
|
||||||
@@ -646,6 +674,7 @@ The general answer is to check the config.log file generated when running
|
|||||||
the OpenSSH configure script. It should contain the detailed information
|
the OpenSSH configure script. It should contain the detailed information
|
||||||
on why the OpenSSL library was not detected or considered incompatible.
|
on why the OpenSSL library was not detected or considered incompatible.
|
||||||
|
|
||||||
|
|
||||||
* Can I use OpenSSL's SSL library with non-blocking I/O?
|
* Can I use OpenSSL's SSL library with non-blocking I/O?
|
||||||
|
|
||||||
Yes; make sure to read the SSL_get_error(3) manual page!
|
Yes; make sure to read the SSL_get_error(3) manual page!
|
||||||
|
18
INSTALL
18
INSTALL
@@ -132,8 +132,8 @@
|
|||||||
standard headers). If it is a problem with OpenSSL itself, please
|
standard headers). If it is a problem with OpenSSL itself, please
|
||||||
report the problem to <openssl-bugs@openssl.org> (note that your
|
report the problem to <openssl-bugs@openssl.org> (note that your
|
||||||
message will be recorded in the request tracker publicly readable
|
message will be recorded in the request tracker publicly readable
|
||||||
via http://www.openssl.org/rt2.html and will be forwarded to a public
|
via http://www.openssl.org/support/rt2.html and will be forwarded to a
|
||||||
mailing list). Include the output of "make report" in your message.
|
public mailing list). Include the output of "make report" in your message.
|
||||||
Please check out the request tracker. Maybe the bug was already
|
Please check out the request tracker. Maybe the bug was already
|
||||||
reported or has already been fixed.
|
reported or has already been fixed.
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
in Makefile.ssl and run "make clean; make". Please send a bug
|
in Makefile.ssl and run "make clean; make". Please send a bug
|
||||||
report to <openssl-bugs@openssl.org>, including the output of
|
report to <openssl-bugs@openssl.org>, including the output of
|
||||||
"make report" in order to be added to the request tracker at
|
"make report" in order to be added to the request tracker at
|
||||||
http://www.openssl.org/rt2.html.
|
http://www.openssl.org/support/rt2.html.
|
||||||
|
|
||||||
4. If everything tests ok, install OpenSSL with
|
4. If everything tests ok, install OpenSSL with
|
||||||
|
|
||||||
@@ -288,3 +288,15 @@
|
|||||||
targets for shared library creation, like linux-shared. Those targets
|
targets for shared library creation, like linux-shared. Those targets
|
||||||
can currently be used on their own just as well, but this is expected
|
can currently be used on their own just as well, but this is expected
|
||||||
to change in future versions of OpenSSL.
|
to change in future versions of OpenSSL.
|
||||||
|
|
||||||
|
Note on random number generation
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
Availability of cryptographically secure random numbers is required for
|
||||||
|
secret key generation. OpenSSL provides several options to seed the
|
||||||
|
internal PRNG. If not properly seeded, the internal PRNG will refuse
|
||||||
|
to deliver random bytes and a "PRNG not seeded error" will occur.
|
||||||
|
On systems without /dev/urandom (or similar) device, it may be necessary
|
||||||
|
to install additional support software to obtain random seed.
|
||||||
|
Please check out the manual pages for RAND_add(), RAND_bytes(), RAND_egd(),
|
||||||
|
and the FAQ for more information.
|
||||||
|
@@ -82,7 +82,8 @@
|
|||||||
There are various changes you can make to the Win32 compile environment. By
|
There are various changes you can make to the Win32 compile environment. By
|
||||||
default the library is not compiled with debugging symbols. If you add 'debug'
|
default the library is not compiled with debugging symbols. If you add 'debug'
|
||||||
to the mk1mf.pl lines in the do_* batch file then debugging symbols will be
|
to the mk1mf.pl lines in the do_* batch file then debugging symbols will be
|
||||||
compiled in.
|
compiled in. Note that mk1mf.pl expects the platform to be the last argument
|
||||||
|
on the command line, so 'debug' must appear before that, as all other options.
|
||||||
|
|
||||||
The default Win32 environment is to leave out any Windows NT specific
|
The default Win32 environment is to leave out any Windows NT specific
|
||||||
features.
|
features.
|
||||||
@@ -215,7 +216,7 @@
|
|||||||
$ md c:\openssl\lib
|
$ md c:\openssl\lib
|
||||||
$ md c:\openssl\include
|
$ md c:\openssl\include
|
||||||
$ md c:\openssl\include\openssl
|
$ md c:\openssl\include\openssl
|
||||||
$ copy /b inc32\* c:\openssl\include\openssl
|
$ copy /b inc32\openssl\* c:\openssl\include\openssl
|
||||||
$ copy /b out32dll\ssleay32.lib c:\openssl\lib
|
$ copy /b out32dll\ssleay32.lib c:\openssl\lib
|
||||||
$ copy /b out32dll\libeay32.lib c:\openssl\lib
|
$ copy /b out32dll\libeay32.lib c:\openssl\lib
|
||||||
$ copy /b out32dll\ssleay32.dll c:\openssl\bin
|
$ copy /b out32dll\ssleay32.dll c:\openssl\bin
|
||||||
|
2
LICENSE
2
LICENSE
@@ -12,7 +12,7 @@
|
|||||||
---------------
|
---------------
|
||||||
|
|
||||||
/* ====================================================================
|
/* ====================================================================
|
||||||
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
|
* Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
|
@@ -1287,7 +1287,7 @@ EXITPOINT:
|
|||||||
|
|
||||||
// Send some bytes
|
// Send some bytes
|
||||||
|
|
||||||
int MacSocket_send(const int inSocketNum,void *inBuff,int inBuffLength)
|
int MacSocket_send(const int inSocketNum,const void *inBuff,int inBuffLength)
|
||||||
{
|
{
|
||||||
OSErr errCode = noErr;
|
OSErr errCode = noErr;
|
||||||
int bytesSent = 0;
|
int bytesSent = 0;
|
||||||
|
@@ -62,7 +62,7 @@ int MacSocket_recv(const int inSocketNum,void *outBuff,int outBuffLength,const B
|
|||||||
|
|
||||||
// Call this to send data on a socket
|
// Call this to send data on a socket
|
||||||
|
|
||||||
int MacSocket_send(const int inSocketNum,void *inBuff,int inBuffLength);
|
int MacSocket_send(const int inSocketNum,const void *inBuff,int inBuffLength);
|
||||||
|
|
||||||
|
|
||||||
// If zero bytes were read in a call to MacSocket_recv(), it may be that the remote end has done a half-close
|
// If zero bytes were read in a call to MacSocket_recv(), it may be that the remote end has done a half-close
|
||||||
|
55
Makefile.org
55
Makefile.org
@@ -270,9 +270,7 @@ do_gnu-shared:
|
|||||||
done
|
done
|
||||||
|
|
||||||
DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \
|
DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \
|
||||||
collect2=`gcc -print-prog-name=collect2 2>&1` && \
|
my_ld=`${CC} -print-prog-name=ld 2>&1` && \
|
||||||
[ -n "$$collect2" ] && \
|
|
||||||
my_ld=`$$collect2 --help 2>&1 | grep Usage: | sed 's/^Usage: *\([^ ][^ ]*\).*/\1/'` && \
|
|
||||||
[ -n "$$my_ld" ] && \
|
[ -n "$$my_ld" ] && \
|
||||||
$$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1
|
$$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1
|
||||||
|
|
||||||
@@ -370,9 +368,10 @@ do_svr3-shared:
|
|||||||
find . -name "*.o" -print > allobjs ; \
|
find . -name "*.o" -print > allobjs ; \
|
||||||
OBJS= ; export OBJS ; \
|
OBJS= ; export OBJS ; \
|
||||||
for obj in `ar t lib$$i.a` ; do \
|
for obj in `ar t lib$$i.a` ; do \
|
||||||
OBJS="$${OBJS} `grep $$obj allobjs`" ; \
|
OBJS="$${OBJS} `grep /$$obj allobjs`" ; \
|
||||||
done ; \
|
done ; \
|
||||||
set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
|
-G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
$${OBJS} $$libs ${EX_LIBS} ) || exit 1; \
|
$${OBJS} $$libs ${EX_LIBS} ) || exit 1; \
|
||||||
libs="$$libs -l$$i"; \
|
libs="$$libs -l$$i"; \
|
||||||
@@ -386,13 +385,15 @@ do_svr5-shared:
|
|||||||
else \
|
else \
|
||||||
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
|
( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
|
||||||
|
SHARE_FLAG='-G'; \
|
||||||
|
(${CC} -v 2>&1 | grep gcc) > /dev/null && SHARE_FLAG='-shared'; \
|
||||||
find . -name "*.o" -print > allobjs ; \
|
find . -name "*.o" -print > allobjs ; \
|
||||||
OBJS= ; export OBJS ; \
|
OBJS= ; export OBJS ; \
|
||||||
for obj in `ar t lib$$i.a` ; do \
|
for obj in `ar t lib$$i.a` ; do \
|
||||||
OBJS="$${OBJS} `grep $$obj allobjs`" ; \
|
OBJS="$${OBJS} `grep /$$obj allobjs`" ; \
|
||||||
done ; \
|
done ; \
|
||||||
set -x; ${CC} ${SHARED_LDFLAGS} \
|
set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
-G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
$${SHARE_FLAG} -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
$${OBJS} $$libs ${EX_LIBS} ) || exit 1; \
|
$${OBJS} $$libs ${EX_LIBS} ) || exit 1; \
|
||||||
libs="$$libs -l$$i"; \
|
libs="$$libs -l$$i"; \
|
||||||
@@ -529,6 +530,10 @@ links:
|
|||||||
fi; \
|
fi; \
|
||||||
done;
|
done;
|
||||||
|
|
||||||
|
gentests:
|
||||||
|
@(cd test && echo "generating dummy tests (if needed)..." && \
|
||||||
|
$(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' TESTS='${TESTS}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' TESTS='${TESTS}' OPENSSL_DEBUG_MEMORY=on generate );
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
rm -f *.bak
|
rm -f *.bak
|
||||||
@for i in $(DIRS) ;\
|
@for i in $(DIRS) ;\
|
||||||
@@ -610,6 +615,9 @@ update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_
|
|||||||
# and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal
|
# and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal
|
||||||
# tar does not support the --files-from option.
|
# tar does not support the --files-from option.
|
||||||
tar:
|
tar:
|
||||||
|
find . -type d -print | xargs chmod 755
|
||||||
|
find . -type f -print | xargs chmod a+r
|
||||||
|
find . -type f -perm -0100 -print | xargs chmod a+x
|
||||||
find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort > ../$(TARFILE).list; \
|
find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort > ../$(TARFILE).list; \
|
||||||
$(TAR) $(TARFLAGS) --files-from ../$(TARFILE).list -cvf - | \
|
$(TAR) $(TARFLAGS) --files-from ../$(TARFILE).list -cvf - | \
|
||||||
tardy --user_number=0 --user_name=openssl \
|
tardy --user_number=0 --user_name=openssl \
|
||||||
@@ -652,9 +660,10 @@ install: all install_docs
|
|||||||
do \
|
do \
|
||||||
if [ -f "$$i" ]; then \
|
if [ -f "$$i" ]; then \
|
||||||
( echo installing $$i; \
|
( echo installing $$i; \
|
||||||
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
||||||
$(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
|
$(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
||||||
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
||||||
|
mv $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
@if [ -n "$(SHARED_LIBS)" ]; then \
|
@if [ -n "$(SHARED_LIBS)" ]; then \
|
||||||
@@ -664,20 +673,24 @@ install: all install_docs
|
|||||||
if [ -f "$$i" -o -f "$$i.a" ]; then \
|
if [ -f "$$i" -o -f "$$i.a" ]; then \
|
||||||
( echo installing $$i; \
|
( echo installing $$i; \
|
||||||
if [ "$(PLATFORM)" != "Cygwin" ]; then \
|
if [ "$(PLATFORM)" != "Cygwin" ]; then \
|
||||||
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
||||||
chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
|
chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
||||||
|
mv $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
|
||||||
else \
|
else \
|
||||||
c=`echo $$i | sed 's/^lib/cyg/'`; \
|
c=`echo $$i | sed 's/^lib/cyg/'`; \
|
||||||
cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \
|
cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
|
||||||
chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \
|
chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
|
||||||
cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \
|
mv $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \
|
||||||
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \
|
cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a.new; \
|
||||||
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a.new; \
|
||||||
|
mv $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \
|
||||||
fi ); \
|
fi ); \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
( here="`pwd`"; \
|
( here="`pwd`"; \
|
||||||
cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
||||||
$(MAKE) -f $$here/Makefile link-shared ); \
|
set $(MAKE); \
|
||||||
|
$$1 -f $$here/Makefile link-shared ); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install_docs:
|
install_docs:
|
||||||
@@ -686,23 +699,23 @@ install_docs:
|
|||||||
$(INSTALL_PREFIX)$(MANDIR)/man3 \
|
$(INSTALL_PREFIX)$(MANDIR)/man3 \
|
||||||
$(INSTALL_PREFIX)$(MANDIR)/man5 \
|
$(INSTALL_PREFIX)$(MANDIR)/man5 \
|
||||||
$(INSTALL_PREFIX)$(MANDIR)/man7
|
$(INSTALL_PREFIX)$(MANDIR)/man7
|
||||||
@pod2man=`cd ../../util; ./pod2mantest ignore`; \
|
@pod2man="`cd util; ./pod2mantest $(PERL)`"; \
|
||||||
for i in doc/apps/*.pod; do \
|
for i in doc/apps/*.pod; do \
|
||||||
fn=`basename $$i .pod`; \
|
fn=`basename $$i .pod`; \
|
||||||
if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \
|
if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \
|
||||||
echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
|
echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
|
||||||
(cd `$(PERL) util/dirname.pl $$i`; \
|
(cd `$(PERL) util/dirname.pl $$i`; \
|
||||||
sh -c "$(PERL) $$pod2man \
|
sh -c "$$pod2man \
|
||||||
--section=$$sec --center=OpenSSL \
|
--section=$$sec --center=OpenSSL \
|
||||||
--release=$(VERSION) `basename $$i`") \
|
--release=$(VERSION) `basename $$i`") \
|
||||||
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
|
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
|
||||||
done; \
|
done; \
|
||||||
@for i in doc/crypto/*.pod doc/ssl/*.pod; do \
|
for i in doc/crypto/*.pod doc/ssl/*.pod; do \
|
||||||
fn=`basename $$i .pod`; \
|
fn=`basename $$i .pod`; \
|
||||||
if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \
|
if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \
|
||||||
echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
|
echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
|
||||||
(cd `$(PERL) util/dirname.pl $$i`; \
|
(cd `$(PERL) util/dirname.pl $$i`; \
|
||||||
sh -c "$(PERL) $$pod2man \
|
sh -c "$$pod2man \
|
||||||
--section=$$sec --center=OpenSSL \
|
--section=$$sec --center=OpenSSL \
|
||||||
--release=$(VERSION) `basename $$i`") \
|
--release=$(VERSION) `basename $$i`") \
|
||||||
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
|
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
|
||||||
|
38
NEWS
38
NEWS
@@ -5,6 +5,44 @@
|
|||||||
This file gives a brief overview of the major changes between each OpenSSL
|
This file gives a brief overview of the major changes between each OpenSSL
|
||||||
release. For more details please read the CHANGES file.
|
release. For more details please read the CHANGES file.
|
||||||
|
|
||||||
|
Major changes between OpenSSL 0.9.6k and OpenSSL 0.9.6l:
|
||||||
|
|
||||||
|
o Security: fix ASN1 bug leading to large recursion
|
||||||
|
|
||||||
|
Major changes between OpenSSL 0.9.6j and OpenSSL 0.9.6k:
|
||||||
|
|
||||||
|
o Security: fix various ASN1 parsing bugs.
|
||||||
|
o SSL/TLS protocol fix for unrequested client certificates.
|
||||||
|
|
||||||
|
Major changes between OpenSSL 0.9.6i and OpenSSL 0.9.6j:
|
||||||
|
|
||||||
|
o Security: counter the Klima-Pokorny-Rosa extension of
|
||||||
|
Bleichbacher's attack
|
||||||
|
o Security: make RSA blinding default.
|
||||||
|
o Build: shared library support fixes.
|
||||||
|
|
||||||
|
Major changes between OpenSSL 0.9.6h and OpenSSL 0.9.6i:
|
||||||
|
|
||||||
|
o Important security related bugfixes.
|
||||||
|
|
||||||
|
Major changes between OpenSSL 0.9.6g and OpenSSL 0.9.6h:
|
||||||
|
|
||||||
|
o New configuration targets for Tandem OSS and A/UX.
|
||||||
|
o New OIDs for Microsoft attributes.
|
||||||
|
o Better handling of SSL session caching.
|
||||||
|
o Better comparison of distinguished names.
|
||||||
|
o Better handling of shared libraries in a mixed GNU/non-GNU environment.
|
||||||
|
o Support assembler code with Borland C.
|
||||||
|
o Fixes for length problems.
|
||||||
|
o Fixes for uninitialised variables.
|
||||||
|
o Fixes for memory leaks, some unusual crashes and some race conditions.
|
||||||
|
o Fixes for smaller building problems.
|
||||||
|
o Updates of manuals, FAQ and other instructive documents.
|
||||||
|
|
||||||
|
Major changes between OpenSSL 0.9.6f and OpenSSL 0.9.6g:
|
||||||
|
|
||||||
|
o Important building fixes on Unix.
|
||||||
|
|
||||||
Major changes between OpenSSL 0.9.6e and OpenSSL 0.9.6f:
|
Major changes between OpenSSL 0.9.6e and OpenSSL 0.9.6f:
|
||||||
|
|
||||||
o Various important bugfixes.
|
o Various important bugfixes.
|
||||||
|
16
PROBLEMS
16
PROBLEMS
@@ -40,3 +40,19 @@ scripts use the same name for output and input files, which means different
|
|||||||
will interfere with each other and lead to test failure.
|
will interfere with each other and lead to test failure.
|
||||||
|
|
||||||
The solution is simple for now: don't run parallell make when testing.
|
The solution is simple for now: don't run parallell make when testing.
|
||||||
|
|
||||||
|
|
||||||
|
* Bugs in gcc 3.0 triggered
|
||||||
|
|
||||||
|
According to a problem report, there are bugs in gcc 3.0 that are
|
||||||
|
triggered by some of the code in OpenSSL, more specifically in
|
||||||
|
PEM_get_EVP_CIPHER_INFO(). The triggering code is the following:
|
||||||
|
|
||||||
|
header+=11;
|
||||||
|
if (*header != '4') return(0); header++;
|
||||||
|
if (*header != ',') return(0); header++;
|
||||||
|
|
||||||
|
What happens is that gcc might optimize a little too agressively, and
|
||||||
|
you end up with an extra incrementation when *header != '4'.
|
||||||
|
|
||||||
|
We recommend that you upgrade gcc to as high a 3.x version as you can.
|
||||||
|
4
README
4
README
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
OpenSSL 0.9.6f [engine] 8 August 2002
|
OpenSSL 0.9.6l [engine] 04 Nov 2003
|
||||||
|
|
||||||
Copyright (c) 1998-2002 The OpenSSL Project
|
Copyright (c) 1998-2003 The OpenSSL Project
|
||||||
Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson
|
Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
16
STATUS
16
STATUS
@@ -1,10 +1,20 @@
|
|||||||
|
|
||||||
OpenSSL STATUS Last modified at
|
OpenSSL STATUS Last modified at
|
||||||
______________ $Date: 2002/08/08 21:44:07 $
|
______________ $Date: 2003/11/04 11:33:10 $
|
||||||
|
|
||||||
DEVELOPMENT STATE
|
DEVELOPMENT STATE
|
||||||
|
|
||||||
o OpenSSL 0.9.7: Under development...
|
o OpenSSL 0.9.8: Under development...
|
||||||
|
o OpenSSL 0.9.7c: Released on September 30th, 2003
|
||||||
|
o OpenSSL 0.9.7b: Released on April 10th, 2003
|
||||||
|
o OpenSSL 0.9.7a: Released on February 19th, 2003
|
||||||
|
o OpenSSL 0.9.7: Released on December 31st, 2002
|
||||||
|
o OpenSSL 0.9.6l: Released on November 4th, 2003
|
||||||
|
o OpenSSL 0.9.6k: Released on September 30th, 2003
|
||||||
|
o OpenSSL 0.9.6j: Released on April 10th, 2003
|
||||||
|
o OpenSSL 0.9.6i: Released on February 19th, 2003
|
||||||
|
o OpenSSL 0.9.6h: Released on December 5th, 2002
|
||||||
|
o OpenSSL 0.9.6g: Released on August 9th, 2002
|
||||||
o OpenSSL 0.9.6f: Released on August 8th, 2002
|
o OpenSSL 0.9.6f: Released on August 8th, 2002
|
||||||
o OpenSSL 0.9.6e: Released on July 30th, 2002
|
o OpenSSL 0.9.6e: Released on July 30th, 2002
|
||||||
o OpenSSL 0.9.6d: Released on May 9th, 2002
|
o OpenSSL 0.9.6d: Released on May 9th, 2002
|
||||||
@@ -22,6 +32,8 @@
|
|||||||
|
|
||||||
RELEASE SHOWSTOPPERS
|
RELEASE SHOWSTOPPERS
|
||||||
|
|
||||||
|
o none
|
||||||
|
|
||||||
AVAILABLE PATCHES
|
AVAILABLE PATCHES
|
||||||
|
|
||||||
o
|
o
|
||||||
|
58
TABLE
58
TABLE
@@ -71,7 +71,7 @@ $ranlib =
|
|||||||
|
|
||||||
*** Cygwin
|
*** Cygwin
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall
|
$cflags = -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -march=i486 -Wall
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag =
|
$thread_cflag =
|
||||||
$lflags =
|
$lflags =
|
||||||
@@ -853,7 +853,7 @@ $ranlib =
|
|||||||
|
|
||||||
*** aix43-gcc
|
*** aix43-gcc
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -O3 -DAIX -DB_ENDIAN
|
$cflags = -O1 -DAIX -DB_ENDIAN
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = (unknown)
|
||||||
$lflags =
|
$lflags =
|
||||||
@@ -989,6 +989,29 @@ $shared_ldflag =
|
|||||||
$shared_extension = .so
|
$shared_extension = .so
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
|
*** aux3-gcc
|
||||||
|
$cc = gcc
|
||||||
|
$cflags = -O2 -DTERMIO
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags = -lbsd
|
||||||
|
$bn_ops = RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme =
|
||||||
|
$shared_target=
|
||||||
|
$shared_cflag =
|
||||||
|
$shared_ldflag =
|
||||||
|
$shared_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
*** bsdi-elf-gcc
|
*** bsdi-elf-gcc
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall
|
$cflags = -DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall
|
||||||
@@ -1244,7 +1267,7 @@ $ranlib =
|
|||||||
|
|
||||||
*** debug-levitte-linux-elf
|
*** debug-levitte-linux-elf
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe
|
$cflags = -DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -pipe
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags = -ldl
|
$lflags = -ldl
|
||||||
@@ -1259,10 +1282,10 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dlfcn
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= linux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = -fPIC
|
||||||
$shared_ldflag =
|
$shared_ldflag =
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** debug-linux-elf
|
*** debug-linux-elf
|
||||||
@@ -3151,6 +3174,29 @@ $shared_ldflag =
|
|||||||
$shared_extension =
|
$shared_extension =
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
|
*** tandem-c89
|
||||||
|
$cc = c89
|
||||||
|
$cflags = -Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags =
|
||||||
|
$bn_ops = THIRTY_TWO_BIT
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme =
|
||||||
|
$shared_target=
|
||||||
|
$shared_cflag =
|
||||||
|
$shared_ldflag =
|
||||||
|
$shared_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
*** ultrix-cc
|
*** ultrix-cc
|
||||||
$cc = cc
|
$cc = cc
|
||||||
$cflags = -std1 -O -Olimit 1000 -DL_ENDIAN
|
$cflags = -std1 -O -Olimit 1000 -DL_ENDIAN
|
||||||
|
@@ -81,6 +81,7 @@ all: exe
|
|||||||
exe: $(PROGRAM)
|
exe: $(PROGRAM)
|
||||||
|
|
||||||
req: sreq.o $(A_OBJ) $(DLIBCRYPTO)
|
req: sreq.o $(A_OBJ) $(DLIBCRYPTO)
|
||||||
|
LD_LIBRARY_PATH=..:$$LD_LIBRARY_PATH \
|
||||||
$(CC) -o req $(CFLAG) sreq.o $(A_OBJ) $(RAND_OBJ) $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS)
|
$(CC) -o req $(CFLAG) sreq.o $(A_OBJ) $(RAND_OBJ) $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS)
|
||||||
|
|
||||||
sreq.o: req.c
|
sreq.o: req.c
|
||||||
@@ -117,7 +118,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(SRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
@@ -128,13 +129,14 @@ clean:
|
|||||||
rm -f req
|
rm -f req
|
||||||
|
|
||||||
$(DLIBSSL):
|
$(DLIBSSL):
|
||||||
(cd ../ssl; $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' TESTS='${TESTS}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}')
|
(cd ..; $(MAKE) DIRS=ssl all)
|
||||||
|
|
||||||
$(DLIBCRYPTO):
|
$(DLIBCRYPTO):
|
||||||
(cd ../crypto; $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' TESTS='${TESTS}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}')
|
(cd ..; $(MAKE) DIRS=crypto all)
|
||||||
|
|
||||||
$(PROGRAM): progs.h $(E_OBJ) $(PROGRAM).o $(DLIBCRYPTO) $(DLIBSSL)
|
$(PROGRAM): progs.h $(E_OBJ) $(PROGRAM).o $(DLIBCRYPTO) $(DLIBSSL)
|
||||||
$(RM) $(PROGRAM)
|
$(RM) $(PROGRAM)
|
||||||
|
LD_LIBRARY_PATH=..:$$LD_LIBRARY_PATH \
|
||||||
$(CC) -o $(PROGRAM) $(CFLAGS) $(PROGRAM).o $(E_OBJ) $(PEX_LIBS) $(LIBSSL) $(LIBCRYPTO) $(EX_LIBS)
|
$(CC) -o $(PROGRAM) $(CFLAGS) $(PROGRAM).o $(E_OBJ) $(PEX_LIBS) $(LIBSSL) $(LIBCRYPTO) $(EX_LIBS)
|
||||||
-(cd ..; OPENSSL="`pwd`/apps/openssl"; export OPENSSL; $(PERL) tools/c_rehash certs)
|
-(cd ..; OPENSSL="`pwd`/apps/openssl"; export OPENSSL; $(PERL) tools/c_rehash certs)
|
||||||
|
|
||||||
|
@@ -92,8 +92,10 @@ int WIN32_rename(char *oldname,char *newname);
|
|||||||
#define MAIN(a,v) main(a,v)
|
#define MAIN(a,v) main(a,v)
|
||||||
|
|
||||||
#ifndef NON_MAIN
|
#ifndef NON_MAIN
|
||||||
|
LHASH *config=NULL;
|
||||||
BIO *bio_err=NULL;
|
BIO *bio_err=NULL;
|
||||||
#else
|
#else
|
||||||
|
extern LHASH *config;
|
||||||
extern BIO *bio_err;
|
extern BIO *bio_err;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -328,6 +328,6 @@ end:
|
|||||||
if (at != NULL) ASN1_TYPE_free(at);
|
if (at != NULL) ASN1_TYPE_free(at);
|
||||||
if (osk != NULL) sk_free(osk);
|
if (osk != NULL) sk_free(osk);
|
||||||
OBJ_cleanup();
|
OBJ_cleanup();
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
19
apps/ca.c
19
apps/ca.c
@@ -570,7 +570,7 @@ bad:
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,key);
|
pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,key);
|
||||||
if(key) memset(key,0,strlen(key));
|
if(key) OPENSSL_cleanse(key,strlen(key));
|
||||||
if (pkey == NULL)
|
if (pkey == NULL)
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"unable to load CA private key\n");
|
BIO_printf(bio_err,"unable to load CA private key\n");
|
||||||
@@ -633,12 +633,14 @@ bad:
|
|||||||
that to access(). However, time's too short to do that just
|
that to access(). However, time's too short to do that just
|
||||||
now.
|
now.
|
||||||
*/
|
*/
|
||||||
|
#ifndef VXWORKS
|
||||||
if (access(outdir,R_OK|W_OK|X_OK) != 0)
|
if (access(outdir,R_OK|W_OK|X_OK) != 0)
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"I am unable to access the %s directory\n",outdir);
|
BIO_printf(bio_err,"I am unable to access the %s directory\n",outdir);
|
||||||
perror(outdir);
|
perror(outdir);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (stat(outdir,&sb) != 0)
|
if (stat(outdir,&sb) != 0)
|
||||||
{
|
{
|
||||||
@@ -855,11 +857,16 @@ bad:
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
{
|
||||||
|
if (BN_is_zero(serial))
|
||||||
|
BIO_printf(bio_err,"next serial number is 00\n");
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if ((f=BN_bn2hex(serial)) == NULL) goto err;
|
if ((f=BN_bn2hex(serial)) == NULL) goto err;
|
||||||
BIO_printf(bio_err,"next serial number is %s\n",f);
|
BIO_printf(bio_err,"next serial number is %s\n",f);
|
||||||
OPENSSL_free(f);
|
OPENSSL_free(f);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((attribs=CONF_get_section(conf,policy)) == NULL)
|
if ((attribs=CONF_get_section(conf,policy)) == NULL)
|
||||||
{
|
{
|
||||||
@@ -1302,7 +1309,7 @@ err:
|
|||||||
X509_CRL_free(crl);
|
X509_CRL_free(crl);
|
||||||
CONF_free(conf);
|
CONF_free(conf);
|
||||||
OBJ_cleanup();
|
OBJ_cleanup();
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lookup_fail(char *name, char *tag)
|
static void lookup_fail(char *name, char *tag)
|
||||||
@@ -1367,7 +1374,7 @@ static BIGNUM *load_serial(char *serialfile)
|
|||||||
ret=ASN1_INTEGER_to_BN(ai,NULL);
|
ret=ASN1_INTEGER_to_BN(ai,NULL);
|
||||||
if (ret == NULL)
|
if (ret == NULL)
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"error converting number from bin to BIGNUM");
|
BIO_printf(bio_err,"error converting number from bin to BIGNUM\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
err:
|
err:
|
||||||
@@ -1755,6 +1762,9 @@ again2:
|
|||||||
BIO_printf(bio_err,"The subject name appears to be ok, checking data base for clashes\n");
|
BIO_printf(bio_err,"The subject name appears to be ok, checking data base for clashes\n");
|
||||||
|
|
||||||
row[DB_name]=X509_NAME_oneline(subject,NULL,0);
|
row[DB_name]=X509_NAME_oneline(subject,NULL,0);
|
||||||
|
if (BN_is_zero(serial))
|
||||||
|
row[DB_serial]=BUF_strdup("00");
|
||||||
|
else
|
||||||
row[DB_serial]=BN_bn2hex(serial);
|
row[DB_serial]=BN_bn2hex(serial);
|
||||||
if ((row[DB_name] == NULL) || (row[DB_serial] == NULL))
|
if ((row[DB_name] == NULL) || (row[DB_serial] == NULL))
|
||||||
{
|
{
|
||||||
@@ -2169,6 +2179,9 @@ static int do_revoke(X509 *x509, TXT_DB *db)
|
|||||||
row[i]=NULL;
|
row[i]=NULL;
|
||||||
row[DB_name]=X509_NAME_oneline(X509_get_subject_name(x509),NULL,0);
|
row[DB_name]=X509_NAME_oneline(X509_get_subject_name(x509),NULL,0);
|
||||||
bn = ASN1_INTEGER_to_BN(X509_get_serialNumber(x509),NULL);
|
bn = ASN1_INTEGER_to_BN(X509_get_serialNumber(x509),NULL);
|
||||||
|
if (BN_is_zero(bn))
|
||||||
|
row[DB_serial]=BUF_strdup("00");
|
||||||
|
else
|
||||||
row[DB_serial]=BN_bn2hex(bn);
|
row[DB_serial]=BN_bn2hex(bn);
|
||||||
BN_free(bn);
|
BN_free(bn);
|
||||||
if ((row[DB_name] == NULL) || (row[DB_serial] == NULL))
|
if ((row[DB_name] == NULL) || (row[DB_serial] == NULL))
|
||||||
|
@@ -202,6 +202,6 @@ end:
|
|||||||
if (ctx != NULL) SSL_CTX_free(ctx);
|
if (ctx != NULL) SSL_CTX_free(ctx);
|
||||||
if (ssl != NULL) SSL_free(ssl);
|
if (ssl != NULL) SSL_free(ssl);
|
||||||
if (STDout != NULL) BIO_free_all(STDout);
|
if (STDout != NULL) BIO_free_all(STDout);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -364,7 +364,7 @@ end:
|
|||||||
X509_STORE_CTX_cleanup(&ctx);
|
X509_STORE_CTX_cleanup(&ctx);
|
||||||
X509_STORE_free(store);
|
X509_STORE_free(store);
|
||||||
}
|
}
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static X509_CRL *load_crl(char *infile, int format)
|
static X509_CRL *load_crl(char *infile, int format)
|
||||||
|
@@ -166,7 +166,7 @@ bad:
|
|||||||
BIO_printf(bio_err," -certfile arg certificates file of chain to a trusted CA\n");
|
BIO_printf(bio_err," -certfile arg certificates file of chain to a trusted CA\n");
|
||||||
BIO_printf(bio_err," (can be used more than once)\n");
|
BIO_printf(bio_err," (can be used more than once)\n");
|
||||||
BIO_printf(bio_err," -nocrl no crl to load, just certs from '-certfile'\n");
|
BIO_printf(bio_err," -nocrl no crl to load, just certs from '-certfile'\n");
|
||||||
EXIT(1);
|
OPENSSL_EXIT(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
@@ -278,7 +278,7 @@ end:
|
|||||||
if (p7 != NULL) PKCS7_free(p7);
|
if (p7 != NULL) PKCS7_free(p7);
|
||||||
if (crl != NULL) X509_CRL_free(crl);
|
if (crl != NULL) X509_CRL_free(crl);
|
||||||
|
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -354,7 +354,7 @@ int MAIN(int argc, char **argv)
|
|||||||
end:
|
end:
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
{
|
{
|
||||||
memset(buf,0,BUFSIZE);
|
OPENSSL_cleanse(buf,BUFSIZE);
|
||||||
OPENSSL_free(buf);
|
OPENSSL_free(buf);
|
||||||
}
|
}
|
||||||
if (in != NULL) BIO_free(in);
|
if (in != NULL) BIO_free(in);
|
||||||
@@ -362,7 +362,7 @@ end:
|
|||||||
EVP_PKEY_free(sigkey);
|
EVP_PKEY_free(sigkey);
|
||||||
if(sigbuf) OPENSSL_free(sigbuf);
|
if(sigbuf) OPENSSL_free(sigbuf);
|
||||||
if (bmd != NULL) BIO_free(bmd);
|
if (bmd != NULL) BIO_free(bmd);
|
||||||
EXIT(err);
|
OPENSSL_EXIT(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
|
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
|
||||||
|
@@ -346,6 +346,6 @@ end:
|
|||||||
if (in != NULL) BIO_free(in);
|
if (in != NULL) BIO_free(in);
|
||||||
if (out != NULL) BIO_free_all(out);
|
if (out != NULL) BIO_free_all(out);
|
||||||
if (dh != NULL) DH_free(dh);
|
if (dh != NULL) DH_free(dh);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -532,7 +532,7 @@ end:
|
|||||||
if (in != NULL) BIO_free(in);
|
if (in != NULL) BIO_free(in);
|
||||||
if (out != NULL) BIO_free_all(out);
|
if (out != NULL) BIO_free_all(out);
|
||||||
if (dh != NULL) DH_free(dh);
|
if (dh != NULL) DH_free(dh);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dh_cb is identical to dsa_cb in apps/dsaparam.c */
|
/* dh_cb is identical to dsa_cb in apps/dsaparam.c */
|
||||||
|
@@ -320,6 +320,6 @@ end:
|
|||||||
if(dsa != NULL) DSA_free(dsa);
|
if(dsa != NULL) DSA_free(dsa);
|
||||||
if(passin) OPENSSL_free(passin);
|
if(passin) OPENSSL_free(passin);
|
||||||
if(passout) OPENSSL_free(passout);
|
if(passout) OPENSSL_free(passout);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -357,7 +357,7 @@ end:
|
|||||||
if (in != NULL) BIO_free(in);
|
if (in != NULL) BIO_free(in);
|
||||||
if (out != NULL) BIO_free_all(out);
|
if (out != NULL) BIO_free_all(out);
|
||||||
if (dsa != NULL) DSA_free(dsa);
|
if (dsa != NULL) DSA_free(dsa);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MS_CALLBACK dsa_cb(int p, int n, void *arg)
|
static void MS_CALLBACK dsa_cb(int p, int n, void *arg)
|
||||||
|
@@ -533,9 +533,9 @@ bad:
|
|||||||
* bug picked up by
|
* bug picked up by
|
||||||
* Larry J. Hughes Jr. <hughes@indiana.edu> */
|
* Larry J. Hughes Jr. <hughes@indiana.edu> */
|
||||||
if (str == strbuf)
|
if (str == strbuf)
|
||||||
memset(str,0,SIZE);
|
OPENSSL_cleanse(str,SIZE);
|
||||||
else
|
else
|
||||||
memset(str,0,strlen(str));
|
OPENSSL_cleanse(str,strlen(str));
|
||||||
}
|
}
|
||||||
if ((hiv != NULL) && !set_hex(hiv,iv,8))
|
if ((hiv != NULL) && !set_hex(hiv,iv,8))
|
||||||
{
|
{
|
||||||
@@ -631,7 +631,7 @@ end:
|
|||||||
if (benc != NULL) BIO_free(benc);
|
if (benc != NULL) BIO_free(benc);
|
||||||
if (b64 != NULL) BIO_free(b64);
|
if (b64 != NULL) BIO_free(b64);
|
||||||
if(pass) OPENSSL_free(pass);
|
if(pass) OPENSSL_free(pass);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int set_hex(char *in, unsigned char *out, int size)
|
int set_hex(char *in, unsigned char *out, int size)
|
||||||
|
@@ -121,5 +121,5 @@ int MAIN(int argc, char **argv)
|
|||||||
ret++;
|
ret++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
@@ -211,7 +211,7 @@ end:
|
|||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
if (out != NULL) BIO_free_all(out);
|
if (out != NULL) BIO_free_all(out);
|
||||||
if (dh != NULL) DH_free(dh);
|
if (dh != NULL) DH_free(dh);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MS_CALLBACK dh_cb(int p, int n, void *arg)
|
static void MS_CALLBACK dh_cb(int p, int n, void *arg)
|
||||||
|
@@ -247,6 +247,6 @@ end:
|
|||||||
if (out != NULL) BIO_free_all(out);
|
if (out != NULL) BIO_free_all(out);
|
||||||
if (dsa != NULL) DSA_free(dsa);
|
if (dsa != NULL) DSA_free(dsa);
|
||||||
if(passout) OPENSSL_free(passout);
|
if(passout) OPENSSL_free(passout);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -252,7 +252,7 @@ err:
|
|||||||
if(passout) OPENSSL_free(passout);
|
if(passout) OPENSSL_free(passout);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MS_CALLBACK genrsa_cb(int p, int n, void *arg)
|
static void MS_CALLBACK genrsa_cb(int p, int n, void *arg)
|
||||||
|
@@ -805,7 +805,7 @@ $ ENDIF
|
|||||||
$!
|
$!
|
||||||
$! Set Up Initial CC Definitions, Possibly With User Ones
|
$! Set Up Initial CC Definitions, Possibly With User Ones
|
||||||
$!
|
$!
|
||||||
$ CCDEFS = "VMS=1,MONOLITH"
|
$ CCDEFS = "VMS=1,MONOLITH,THREADS"
|
||||||
$ IF F$TRNLNM("OPENSSL_NO_ASM") THEN CCDEFS = CCDEFS + ",NO_ASM"
|
$ IF F$TRNLNM("OPENSSL_NO_ASM") THEN CCDEFS = CCDEFS + ",NO_ASM"
|
||||||
$ IF F$TRNLNM("OPENSSL_NO_RSA") THEN CCDEFS = CCDEFS + ",NO_RSA"
|
$ IF F$TRNLNM("OPENSSL_NO_RSA") THEN CCDEFS = CCDEFS + ",NO_RSA"
|
||||||
$ IF F$TRNLNM("OPENSSL_NO_DSA") THEN CCDEFS = CCDEFS + ",NO_DSA"
|
$ IF F$TRNLNM("OPENSSL_NO_DSA") THEN CCDEFS = CCDEFS + ",NO_DSA"
|
||||||
@@ -1077,7 +1077,7 @@ $ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
|
|||||||
$!
|
$!
|
||||||
$! Show user the result
|
$! Show user the result
|
||||||
$!
|
$!
|
||||||
$ WRITE SYS$OUTPUT "Main Compiling Command: ",CC
|
$ WRITE/SYMBOL SYS$OUTPUT "Main Compiling Command: ",CC
|
||||||
$!
|
$!
|
||||||
$! Special Threads For OpenVMS v7.1 Or Later
|
$! Special Threads For OpenVMS v7.1 Or Later
|
||||||
$!
|
$!
|
||||||
|
@@ -102,7 +102,7 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO_printf (bio_err, "-in file input file\n");
|
BIO_printf (bio_err, "-in file input file\n");
|
||||||
BIO_printf (bio_err, "-out file output file\n");
|
BIO_printf (bio_err, "-out file output file\n");
|
||||||
BIO_printf (bio_err, "-toseq output NS Sequence file\n");
|
BIO_printf (bio_err, "-toseq output NS Sequence file\n");
|
||||||
EXIT(1);
|
OPENSSL_EXIT(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (infile) {
|
if (infile) {
|
||||||
@@ -162,6 +162,6 @@ end:
|
|||||||
BIO_free_all(out);
|
BIO_free_all(out);
|
||||||
NETSCAPE_CERT_SEQUENCE_free(seq);
|
NETSCAPE_CERT_SEQUENCE_free(seq);
|
||||||
|
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -77,11 +77,11 @@ static unsigned long MS_CALLBACK hash(FUNCTION *a);
|
|||||||
static int MS_CALLBACK cmp(FUNCTION *a,FUNCTION *b);
|
static int MS_CALLBACK cmp(FUNCTION *a,FUNCTION *b);
|
||||||
static LHASH *prog_init(void );
|
static LHASH *prog_init(void );
|
||||||
static int do_cmd(LHASH *prog,int argc,char *argv[]);
|
static int do_cmd(LHASH *prog,int argc,char *argv[]);
|
||||||
LHASH *config=NULL;
|
|
||||||
char *default_config_file=NULL;
|
char *default_config_file=NULL;
|
||||||
|
|
||||||
/* Make sure there is only one when MONOLITH is defined */
|
/* Make sure there is only one when MONOLITH is defined */
|
||||||
#ifdef MONOLITH
|
#ifdef MONOLITH
|
||||||
|
LHASH *config=NULL;
|
||||||
BIO *bio_err=NULL;
|
BIO *bio_err=NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ end:
|
|||||||
BIO_free(bio_err);
|
BIO_free(bio_err);
|
||||||
bio_err=NULL;
|
bio_err=NULL;
|
||||||
}
|
}
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LIST_STANDARD_COMMANDS "list-standard-commands"
|
#define LIST_STANDARD_COMMANDS "list-standard-commands"
|
||||||
|
@@ -284,7 +284,7 @@ err:
|
|||||||
BIO_free(in);
|
BIO_free(in);
|
||||||
if (out)
|
if (out)
|
||||||
BIO_free_all(out);
|
BIO_free_all(out);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -498,6 +498,6 @@ err:
|
|||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
fputs("Program not available.\n", stderr)
|
fputs("Program not available.\n", stderr)
|
||||||
EXIT(1);
|
OPENSSL_EXIT(1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -503,9 +503,10 @@ int MAIN(int argc, char **argv)
|
|||||||
/* Exclude verified certificate */
|
/* Exclude verified certificate */
|
||||||
for (i = 1; i < sk_X509_num (chain2) ; i++)
|
for (i = 1; i < sk_X509_num (chain2) ; i++)
|
||||||
sk_X509_push(certs, sk_X509_value (chain2, i));
|
sk_X509_push(certs, sk_X509_value (chain2, i));
|
||||||
}
|
/* Free first certificate */
|
||||||
|
X509_free(sk_X509_value(chain2, 0));
|
||||||
sk_X509_free(chain2);
|
sk_X509_free(chain2);
|
||||||
if (vret) {
|
} else {
|
||||||
BIO_printf (bio_err, "Error %s getting chain.\n",
|
BIO_printf (bio_err, "Error %s getting chain.\n",
|
||||||
X509_verify_cert_error_string(vret));
|
X509_verify_cert_error_string(vret));
|
||||||
goto export_end;
|
goto export_end;
|
||||||
@@ -532,8 +533,6 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
sk_X509_pop_free(certs, X509_free);
|
sk_X509_pop_free(certs, X509_free);
|
||||||
certs = NULL;
|
certs = NULL;
|
||||||
/* ucert is part of certs so it is already freed */
|
|
||||||
ucert = NULL;
|
|
||||||
|
|
||||||
#ifdef CRYPTO_MDEBUG
|
#ifdef CRYPTO_MDEBUG
|
||||||
CRYPTO_pop_info();
|
CRYPTO_pop_info();
|
||||||
@@ -621,7 +620,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (certs) sk_X509_pop_free(certs, X509_free);
|
if (certs) sk_X509_pop_free(certs, X509_free);
|
||||||
if (safes) sk_PKCS7_pop_free(safes, PKCS7_free);
|
if (safes) sk_PKCS7_pop_free(safes, PKCS7_free);
|
||||||
if (bags) sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
|
if (bags) sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
|
||||||
if (ucert) X509_free(ucert);
|
|
||||||
|
|
||||||
#ifdef CRYPTO_MDEBUG
|
#ifdef CRYPTO_MDEBUG
|
||||||
CRYPTO_pop_info();
|
CRYPTO_pop_info();
|
||||||
@@ -691,7 +689,7 @@ int MAIN(int argc, char **argv)
|
|||||||
if (canames) sk_free(canames);
|
if (canames) sk_free(canames);
|
||||||
if(passin) OPENSSL_free(passin);
|
if(passin) OPENSSL_free(passin);
|
||||||
if(passout) OPENSSL_free(passout);
|
if(passout) OPENSSL_free(passout);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int dump_certs_keys_p12 (BIO *out, PKCS12 *p12, char *pass,
|
int dump_certs_keys_p12 (BIO *out, PKCS12 *p12, char *pass,
|
||||||
|
@@ -163,7 +163,7 @@ bad:
|
|||||||
BIO_printf(bio_err," -text print full details of certificates\n");
|
BIO_printf(bio_err," -text print full details of certificates\n");
|
||||||
BIO_printf(bio_err," -noout don't output encoded data\n");
|
BIO_printf(bio_err," -noout don't output encoded data\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
||||||
EXIT(1);
|
OPENSSL_EXIT(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
@@ -316,5 +316,5 @@ end:
|
|||||||
if (p7 != NULL) PKCS7_free(p7);
|
if (p7 != NULL) PKCS7_free(p7);
|
||||||
if (in != NULL) BIO_free(in);
|
if (in != NULL) BIO_free(in);
|
||||||
if (out != NULL) BIO_free_all(out);
|
if (out != NULL) BIO_free_all(out);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
14
apps/pkcs8.c
14
apps/pkcs8.c
@@ -249,7 +249,7 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
BIO_free(in);
|
BIO_free(in);
|
||||||
if (!(p8inf = EVP_PKEY2PKCS8_broken(pkey, p8_broken))) {
|
if (!(p8inf = EVP_PKEY2PKCS8_broken(pkey, p8_broken))) {
|
||||||
BIO_printf(bio_err, "Error converting key\n", outfile);
|
BIO_printf(bio_err, "Error converting key\n");
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
@@ -266,14 +266,14 @@ int MAIN(int argc, char **argv)
|
|||||||
if(passout) p8pass = passout;
|
if(passout) p8pass = passout;
|
||||||
else {
|
else {
|
||||||
p8pass = pass;
|
p8pass = pass;
|
||||||
EVP_read_pw_string(pass, 50, "Enter Encryption Password:", 1);
|
if (EVP_read_pw_string(pass, 50, "Enter Encryption Password:", 1))
|
||||||
|
return (1);
|
||||||
}
|
}
|
||||||
app_RAND_load_file(NULL, bio_err, 0);
|
app_RAND_load_file(NULL, bio_err, 0);
|
||||||
if (!(p8 = PKCS8_encrypt(pbe_nid, cipher,
|
if (!(p8 = PKCS8_encrypt(pbe_nid, cipher,
|
||||||
p8pass, strlen(p8pass),
|
p8pass, strlen(p8pass),
|
||||||
NULL, 0, iter, p8inf))) {
|
NULL, 0, iter, p8inf))) {
|
||||||
BIO_printf(bio_err, "Error encrypting key\n",
|
BIO_printf(bio_err, "Error encrypting key\n");
|
||||||
outfile);
|
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
@@ -316,7 +316,7 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!p8) {
|
if (!p8) {
|
||||||
BIO_printf (bio_err, "Error reading key\n", outfile);
|
BIO_printf (bio_err, "Error reading key\n");
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
@@ -330,13 +330,13 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!p8inf) {
|
if (!p8inf) {
|
||||||
BIO_printf(bio_err, "Error decrypting key\n", outfile);
|
BIO_printf(bio_err, "Error decrypting key\n");
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(pkey = EVP_PKCS82PKEY(p8inf))) {
|
if (!(pkey = EVP_PKCS82PKEY(p8inf))) {
|
||||||
BIO_printf(bio_err, "Error converting key\n", outfile);
|
BIO_printf(bio_err, "Error converting key\n");
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
@@ -51,7 +51,7 @@ int MAIN(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
badopt = 1;
|
badopt = 1;
|
||||||
}
|
}
|
||||||
if (strcmp(argv[i], "-engine") == 0)
|
else if (strcmp(argv[i], "-engine") == 0)
|
||||||
{
|
{
|
||||||
if ((argv[i+1] != NULL) && (engine == NULL))
|
if ((argv[i+1] != NULL) && (engine == NULL))
|
||||||
engine = argv[++i];
|
engine = argv[++i];
|
||||||
@@ -173,5 +173,5 @@ err:
|
|||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
if (out)
|
if (out)
|
||||||
BIO_free_all(out);
|
BIO_free_all(out);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
@@ -431,7 +431,7 @@ bad:
|
|||||||
|
|
||||||
if (template != NULL)
|
if (template != NULL)
|
||||||
{
|
{
|
||||||
long errline;
|
long errline = -1;
|
||||||
|
|
||||||
BIO_printf(bio_err,"Using configuration from %s\n",template);
|
BIO_printf(bio_err,"Using configuration from %s\n",template);
|
||||||
req_conf=CONF_load(NULL,template,&errline);
|
req_conf=CONF_load(NULL,template,&errline);
|
||||||
@@ -949,7 +949,7 @@ end:
|
|||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
if (dsa_params != NULL) DSA_free(dsa_params);
|
if (dsa_params != NULL) DSA_free(dsa_params);
|
||||||
#endif
|
#endif
|
||||||
EXIT(ex);
|
OPENSSL_EXIT(ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, int attribs)
|
static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, int attribs)
|
||||||
|
@@ -416,7 +416,7 @@ end:
|
|||||||
if(rsa != NULL) RSA_free(rsa);
|
if(rsa != NULL) RSA_free(rsa);
|
||||||
if(passin) OPENSSL_free(passin);
|
if(passin) OPENSSL_free(passin);
|
||||||
if(passout) OPENSSL_free(passout);
|
if(passout) OPENSSL_free(passout);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
#else /* !NO_RSA */
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
@@ -800,14 +800,14 @@ end:
|
|||||||
if (con != NULL) SSL_free(con);
|
if (con != NULL) SSL_free(con);
|
||||||
if (con2 != NULL) SSL_free(con2);
|
if (con2 != NULL) SSL_free(con2);
|
||||||
if (ctx != NULL) SSL_CTX_free(ctx);
|
if (ctx != NULL) SSL_CTX_free(ctx);
|
||||||
if (cbuf != NULL) { memset(cbuf,0,BUFSIZZ); OPENSSL_free(cbuf); }
|
if (cbuf != NULL) { OPENSSL_cleanse(cbuf,BUFSIZZ); OPENSSL_free(cbuf); }
|
||||||
if (sbuf != NULL) { memset(sbuf,0,BUFSIZZ); OPENSSL_free(sbuf); }
|
if (sbuf != NULL) { OPENSSL_cleanse(sbuf,BUFSIZZ); OPENSSL_free(sbuf); }
|
||||||
if (bio_c_out != NULL)
|
if (bio_c_out != NULL)
|
||||||
{
|
{
|
||||||
BIO_free(bio_c_out);
|
BIO_free(bio_c_out);
|
||||||
bio_c_out=NULL;
|
bio_c_out=NULL;
|
||||||
}
|
}
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -257,10 +257,10 @@ static char **local_argv;
|
|||||||
static int ebcdic_new(BIO *bi);
|
static int ebcdic_new(BIO *bi);
|
||||||
static int ebcdic_free(BIO *a);
|
static int ebcdic_free(BIO *a);
|
||||||
static int ebcdic_read(BIO *b, char *out, int outl);
|
static int ebcdic_read(BIO *b, char *out, int outl);
|
||||||
static int ebcdic_write(BIO *b, char *in, int inl);
|
static int ebcdic_write(BIO *b, const char *in, int inl);
|
||||||
static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr);
|
static long ebcdic_ctrl(BIO *b, int cmd, long num, void *ptr);
|
||||||
static int ebcdic_gets(BIO *bp, char *buf, int size);
|
static int ebcdic_gets(BIO *bp, char *buf, int size);
|
||||||
static int ebcdic_puts(BIO *bp, char *str);
|
static int ebcdic_puts(BIO *bp, const char *str);
|
||||||
|
|
||||||
#define BIO_TYPE_EBCDIC_FILTER (18|0x0200)
|
#define BIO_TYPE_EBCDIC_FILTER (18|0x0200)
|
||||||
static BIO_METHOD methods_ebcdic=
|
static BIO_METHOD methods_ebcdic=
|
||||||
@@ -325,7 +325,7 @@ static int ebcdic_read(BIO *b, char *out, int outl)
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ebcdic_write(BIO *b, char *in, int inl)
|
static int ebcdic_write(BIO *b, const char *in, int inl)
|
||||||
{
|
{
|
||||||
EBCDIC_OUTBUFF *wbuf;
|
EBCDIC_OUTBUFF *wbuf;
|
||||||
int ret=0;
|
int ret=0;
|
||||||
@@ -358,7 +358,7 @@ static int ebcdic_write(BIO *b, char *in, int inl)
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr)
|
static long ebcdic_ctrl(BIO *b, int cmd, long num, void *ptr)
|
||||||
{
|
{
|
||||||
long ret;
|
long ret;
|
||||||
|
|
||||||
@@ -377,7 +377,7 @@ static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr)
|
|||||||
|
|
||||||
static int ebcdic_gets(BIO *bp, char *buf, int size)
|
static int ebcdic_gets(BIO *bp, char *buf, int size)
|
||||||
{
|
{
|
||||||
int i, ret;
|
int i, ret=0;
|
||||||
if (bp->next_bio == NULL) return(0);
|
if (bp->next_bio == NULL) return(0);
|
||||||
/* return(BIO_gets(bp->next_bio,buf,size));*/
|
/* return(BIO_gets(bp->next_bio,buf,size));*/
|
||||||
for (i=0; i<size-1; ++i)
|
for (i=0; i<size-1; ++i)
|
||||||
@@ -396,7 +396,7 @@ static int ebcdic_gets(BIO *bp, char *buf, int size)
|
|||||||
return (ret < 0 && i == 0) ? ret : i;
|
return (ret < 0 && i == 0) ? ret : i;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ebcdic_puts(BIO *bp, char *str)
|
static int ebcdic_puts(BIO *bp, const char *str)
|
||||||
{
|
{
|
||||||
if (bp->next_bio == NULL) return(0);
|
if (bp->next_bio == NULL) return(0);
|
||||||
return ebcdic_write(bp, str, strlen(str));
|
return ebcdic_write(bp, str, strlen(str));
|
||||||
@@ -775,7 +775,7 @@ end:
|
|||||||
BIO_free(bio_s_out);
|
BIO_free(bio_s_out);
|
||||||
bio_s_out=NULL;
|
bio_s_out=NULL;
|
||||||
}
|
}
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_stats(BIO *bio, SSL_CTX *ssl_ctx)
|
static void print_stats(BIO *bio, SSL_CTX *ssl_ctx)
|
||||||
@@ -1077,7 +1077,7 @@ err:
|
|||||||
BIO_printf(bio_s_out,"CONNECTION CLOSED\n");
|
BIO_printf(bio_s_out,"CONNECTION CLOSED\n");
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
{
|
{
|
||||||
memset(buf,0,bufsize);
|
OPENSSL_cleanse(buf,bufsize);
|
||||||
OPENSSL_free(buf);
|
OPENSSL_free(buf);
|
||||||
}
|
}
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
@@ -1284,7 +1284,7 @@ static int www_body(char *hostname, int s, unsigned char *context)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
BIO_printf(bio_s_out,"read R BLOCK\n");
|
BIO_printf(bio_s_out,"read R BLOCK\n");
|
||||||
#ifndef MSDOS
|
#if !defined(MSDOS) && !defined(VXWORKS)
|
||||||
sleep(1);
|
sleep(1);
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
|
@@ -116,6 +116,11 @@
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef VXWORKS
|
||||||
|
#include <tickLib.h>
|
||||||
|
#undef SIGALRM
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The following if from times(3) man page. It may need to be changed
|
/* The following if from times(3) man page. It may need to be changed
|
||||||
*/
|
*/
|
||||||
#ifndef HZ
|
#ifndef HZ
|
||||||
@@ -461,7 +466,7 @@ int MAIN(int argc, char **argv)
|
|||||||
|
|
||||||
if (tm_cipher == NULL ) {
|
if (tm_cipher == NULL ) {
|
||||||
fprintf( stderr, "No CIPHER specified\n" );
|
fprintf( stderr, "No CIPHER specified\n" );
|
||||||
/* EXIT(1); */
|
/* OPENSSL_EXIT(1); */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(perform & 1)) goto next;
|
if (!(perform & 1)) goto next;
|
||||||
@@ -628,7 +633,7 @@ end:
|
|||||||
SSL_CTX_free(tm_ctx);
|
SSL_CTX_free(tm_ctx);
|
||||||
tm_ctx=NULL;
|
tm_ctx=NULL;
|
||||||
}
|
}
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@@ -272,7 +272,7 @@ bad:
|
|||||||
end:
|
end:
|
||||||
if (out != NULL) BIO_free_all(out);
|
if (out != NULL) BIO_free_all(out);
|
||||||
if (x != NULL) SSL_SESSION_free(x);
|
if (x != NULL) SSL_SESSION_free(x);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SSL_SESSION *load_sess_id(char *infile, int format)
|
static SSL_SESSION *load_sess_id(char *infile, int format)
|
||||||
|
@@ -724,7 +724,7 @@ int MAIN(int argc, char **argv)
|
|||||||
|
|
||||||
BIO_printf(bio_err,"\n");
|
BIO_printf(bio_err,"\n");
|
||||||
BIO_printf(bio_err,"Available options:\n");
|
BIO_printf(bio_err,"Available options:\n");
|
||||||
#ifdef TIMES
|
#if defined(TIMES) || defined(USE_TOD)
|
||||||
BIO_printf(bio_err,"-elapsed measure time in real time instead of CPU user time.\n");
|
BIO_printf(bio_err,"-elapsed measure time in real time instead of CPU user time.\n");
|
||||||
#endif
|
#endif
|
||||||
BIO_printf(bio_err,"-engine e use engine e, possibly a hardware device.\n");
|
BIO_printf(bio_err,"-engine e use engine e, possibly a hardware device.\n");
|
||||||
@@ -1447,7 +1447,7 @@ end:
|
|||||||
if (dsa_key[i] != NULL)
|
if (dsa_key[i] != NULL)
|
||||||
DSA_free(dsa_key[i]);
|
DSA_free(dsa_key[i]);
|
||||||
#endif
|
#endif
|
||||||
EXIT(mret);
|
OPENSSL_EXIT(mret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_message(char *s, long num, int length)
|
static void print_message(char *s, long num, int length)
|
||||||
|
@@ -315,5 +315,5 @@ end:
|
|||||||
BIO_free(key);
|
BIO_free(key);
|
||||||
EVP_PKEY_free(pkey);
|
EVP_PKEY_free(pkey);
|
||||||
if(passin) OPENSSL_free(passin);
|
if(passin) OPENSSL_free(passin);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
@@ -239,7 +239,7 @@ end:
|
|||||||
if (cert_ctx != NULL) X509_STORE_free(cert_ctx);
|
if (cert_ctx != NULL) X509_STORE_free(cert_ctx);
|
||||||
sk_X509_pop_free(untrusted, X509_free);
|
sk_X509_pop_free(untrusted, X509_free);
|
||||||
sk_X509_pop_free(trusted, X509_free);
|
sk_X509_pop_free(trusted, X509_free);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, int purpose)
|
static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, int purpose)
|
||||||
|
@@ -128,5 +128,5 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
if (cflags) printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));
|
if (cflags) printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));
|
||||||
end:
|
end:
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
@@ -122,7 +122,7 @@ static char *x509_usage[]={
|
|||||||
" -CAkey arg - set the CA key, must be PEM format\n",
|
" -CAkey arg - set the CA key, must be PEM format\n",
|
||||||
" missing, it is assumed to be in the CA file.\n",
|
" missing, it is assumed to be in the CA file.\n",
|
||||||
" -CAcreateserial - create serial number file if it does not exist\n",
|
" -CAcreateserial - create serial number file if it does not exist\n",
|
||||||
" -CAserial - serial file\n",
|
" -CAserial arg - serial file\n",
|
||||||
" -text - print the certificate in text form\n",
|
" -text - print the certificate in text form\n",
|
||||||
" -C - print out C code forms\n",
|
" -C - print out C code forms\n",
|
||||||
" -md2/-md5/-sha1/-mdc2 - digest to use\n",
|
" -md2/-md5/-sha1/-mdc2 - digest to use\n",
|
||||||
@@ -474,7 +474,7 @@ bad:
|
|||||||
|
|
||||||
if (extfile)
|
if (extfile)
|
||||||
{
|
{
|
||||||
long errorline;
|
long errorline = -1;
|
||||||
X509V3_CTX ctx2;
|
X509V3_CTX ctx2;
|
||||||
if (!(extconf=CONF_load(NULL,extfile,&errorline)))
|
if (!(extconf=CONF_load(NULL,extfile,&errorline)))
|
||||||
{
|
{
|
||||||
@@ -988,7 +988,7 @@ end:
|
|||||||
sk_ASN1_OBJECT_pop_free(trust, ASN1_OBJECT_free);
|
sk_ASN1_OBJECT_pop_free(trust, ASN1_OBJECT_free);
|
||||||
sk_ASN1_OBJECT_pop_free(reject, ASN1_OBJECT_free);
|
sk_ASN1_OBJECT_pop_free(reject, ASN1_OBJECT_free);
|
||||||
if (passin) OPENSSL_free(passin);
|
if (passin) OPENSSL_free(passin);
|
||||||
EXIT(ret);
|
OPENSSL_EXIT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
|
static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
|
||||||
@@ -1090,7 +1090,7 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
|
|||||||
BIO_free(io);
|
BIO_free(io);
|
||||||
io=NULL;
|
io=NULL;
|
||||||
|
|
||||||
if (!X509_STORE_add_cert(ctx,x)) goto end;
|
/*if (!X509_STORE_add_cert(ctx,x)) goto end;*/
|
||||||
|
|
||||||
/* NOTE: this certificate can/should be self signed, unless it was
|
/* NOTE: this certificate can/should be self signed, unless it was
|
||||||
* a certificate request in which case it is not. */
|
* a certificate request in which case it is not. */
|
||||||
|
@@ -29,7 +29,7 @@ RC4-MD5, but a re-connect tries to use DES-CBC-SHA. So netscape, when
|
|||||||
doing a re-connect, always takes the first cipher in the cipher list.
|
doing a re-connect, always takes the first cipher in the cipher list.
|
||||||
|
|
||||||
If we accept a netscape connection, demand a client cert, have a
|
If we accept a netscape connection, demand a client cert, have a
|
||||||
non-self-sighed CA which does not have it's CA in netscape, and the
|
non-self-signed CA which does not have it's CA in netscape, and the
|
||||||
browser has a cert, it will crash/hang. Works for 3.x and 4.xbeta
|
browser has a cert, it will crash/hang. Works for 3.x and 4.xbeta
|
||||||
|
|
||||||
Netscape browsers do not really notice the server sending a
|
Netscape browsers do not really notice the server sending a
|
||||||
|
17
config
17
config
@@ -317,6 +317,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
*CRAY*)
|
*CRAY*)
|
||||||
echo "j90-cray-unicos"; exit 0;
|
echo "j90-cray-unicos"; exit 0;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
NONSTOP_KERNEL*)
|
||||||
|
echo "nsr-tandem-nsk"; exit 0;
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -384,6 +388,9 @@ done
|
|||||||
GCCVER=`(gcc -dumpversion) 2>/dev/null`
|
GCCVER=`(gcc -dumpversion) 2>/dev/null`
|
||||||
if [ "$GCCVER" != "" ]; then
|
if [ "$GCCVER" != "" ]; then
|
||||||
CC=gcc
|
CC=gcc
|
||||||
|
# then strip off whatever prefix egcs prepends the number with...
|
||||||
|
# Hopefully, this will work for any future prefixes as well.
|
||||||
|
GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z]*\-//'`
|
||||||
# Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
|
# Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
|
||||||
# does give us what we want though, so we use that. We just just the
|
# does give us what we want though, so we use that. We just just the
|
||||||
# major and minor version numbers.
|
# major and minor version numbers.
|
||||||
@@ -470,7 +477,8 @@ case "$GUESSOS" in
|
|||||||
echo "WARNING! If you wish to build 64-bit library, then you have to"
|
echo "WARNING! If you wish to build 64-bit library, then you have to"
|
||||||
echo " invoke './Configure irix64-mips4-$CC' *manually*."
|
echo " invoke './Configure irix64-mips4-$CC' *manually*."
|
||||||
echo " Type return if you want to continue, Ctrl-C to abort."
|
echo " Type return if you want to continue, Ctrl-C to abort."
|
||||||
read waste < /dev/tty
|
# Do not stop if /dev/tty is unavailable
|
||||||
|
(read waste < /dev/tty) || true
|
||||||
CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
|
CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
|
||||||
CPU=${CPU:-0}
|
CPU=${CPU:-0}
|
||||||
if [ $CPU -ge 5000 ]; then
|
if [ $CPU -ge 5000 ]; then
|
||||||
@@ -525,7 +533,8 @@ EOF
|
|||||||
#echo "WARNING! If you wish to build 64-bit library, then you have to"
|
#echo "WARNING! If you wish to build 64-bit library, then you have to"
|
||||||
#echo " invoke './Configure linux64-sparcv9' *manually*."
|
#echo " invoke './Configure linux64-sparcv9' *manually*."
|
||||||
#echo " Type return if you want to continue, Ctrl-C to abort."
|
#echo " Type return if you want to continue, Ctrl-C to abort."
|
||||||
#read waste < /dev/tty
|
# Do not stop if /dev/tty is unavailable
|
||||||
|
#(read waste < /dev/tty) || true
|
||||||
OUT="linux-sparcv9" ;;
|
OUT="linux-sparcv9" ;;
|
||||||
sparc-*-linux2)
|
sparc-*-linux2)
|
||||||
KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
|
KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
|
||||||
@@ -566,7 +575,8 @@ EOF
|
|||||||
echo "WARNING! If you wish to build 64-bit library, then you have to"
|
echo "WARNING! If you wish to build 64-bit library, then you have to"
|
||||||
echo " invoke './Configure solaris64-sparcv9-cc' *manually*."
|
echo " invoke './Configure solaris64-sparcv9-cc' *manually*."
|
||||||
echo " Type return if you want to continue, Ctrl-C to abort."
|
echo " Type return if you want to continue, Ctrl-C to abort."
|
||||||
read waste < /dev/tty
|
# Do not stop if /dev/tty is unavailable
|
||||||
|
(read waste < /dev/tty) || true
|
||||||
fi
|
fi
|
||||||
OUT="solaris-sparcv9-$CC" ;;
|
OUT="solaris-sparcv9-$CC" ;;
|
||||||
sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
|
sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
|
||||||
@@ -627,6 +637,7 @@ EOF
|
|||||||
*-*-cygwin) OUT="Cygwin" ;;
|
*-*-cygwin) OUT="Cygwin" ;;
|
||||||
t3e-cray-unicosmk) OUT="cray-t3e" ;;
|
t3e-cray-unicosmk) OUT="cray-t3e" ;;
|
||||||
j90-cray-unicos) OUT="cray-j90" ;;
|
j90-cray-unicos) OUT="cray-j90" ;;
|
||||||
|
nsr-tandem-nsk) OUT="tandem-c89" ;;
|
||||||
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
|
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@@ -34,8 +34,8 @@ SDIRS= md2 md5 sha mdc2 hmac ripemd \
|
|||||||
GENERAL=Makefile README crypto-lib.com install.com
|
GENERAL=Makefile README crypto-lib.com install.com
|
||||||
|
|
||||||
LIB= $(TOP)/libcrypto.a
|
LIB= $(TOP)/libcrypto.a
|
||||||
LIBSRC= cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c tmdiff.c cpt_err.c ebcdic.c uid.c
|
LIBSRC= cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c tmdiff.c cpt_err.c ebcdic.c uid.c
|
||||||
LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o
|
LIBOBJ= cryptlib.o mem.o mem_clr.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o
|
||||||
|
|
||||||
SRC= $(LIBSRC)
|
SRC= $(LIBSRC)
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ lint:
|
|||||||
|
|
||||||
depend:
|
depend:
|
||||||
if [ ! -f buildinf.h ]; then touch buildinf.h; fi # fake buildinf.h if it does not exist
|
if [ ! -f buildinf.h ]; then touch buildinf.h; fi # fake buildinf.h if it does not exist
|
||||||
$(MAKEDEPEND) $(INCLUDE) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDE) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
if [ ! -s buildinf.h ]; then rm buildinf.h; fi
|
if [ ! -s buildinf.h ]; then rm buildinf.h; fi
|
||||||
@for i in $(SDIRS) ;\
|
@for i in $(SDIRS) ;\
|
||||||
do \
|
do \
|
||||||
@@ -185,6 +185,9 @@ mem.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
|||||||
mem.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
mem.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
||||||
mem.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
mem.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||||
mem.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h
|
mem.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h
|
||||||
|
mem_clr.o: ../include/openssl/crypto.h ../include/openssl/opensslv.h
|
||||||
|
mem_clr.o: ../include/openssl/safestack.h ../include/openssl/stack.h
|
||||||
|
mem_clr.o: ../include/openssl/symhacks.h
|
||||||
mem_dbg.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
mem_dbg.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||||
mem_dbg.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
mem_dbg.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||||
mem_dbg.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
mem_dbg.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||||
|
@@ -104,7 +104,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -201,6 +201,9 @@ ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, unsigned char **pp, long length,
|
|||||||
c.pp=pp;
|
c.pp=pp;
|
||||||
c.p=p;
|
c.p=p;
|
||||||
c.inf=inf;
|
c.inf=inf;
|
||||||
|
if (inf & 1)
|
||||||
|
c.slen = length - (p - *pp);
|
||||||
|
else
|
||||||
c.slen=len;
|
c.slen=len;
|
||||||
c.tag=Ptag;
|
c.tag=Ptag;
|
||||||
c.xclass=Pclass;
|
c.xclass=Pclass;
|
||||||
@@ -279,8 +282,7 @@ static int asn1_collate_primitive(ASN1_STRING *a, ASN1_CTX *c)
|
|||||||
{
|
{
|
||||||
if (c->inf & 1)
|
if (c->inf & 1)
|
||||||
{
|
{
|
||||||
c->eos=ASN1_check_infinite_end(&c->p,
|
c->eos=ASN1_check_infinite_end(&c->p, c->slen);
|
||||||
(long)(c->max-c->p));
|
|
||||||
if (c->eos) break;
|
if (c->eos) break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -289,7 +291,7 @@ static int asn1_collate_primitive(ASN1_STRING *a, ASN1_CTX *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
c->q=c->p;
|
c->q=c->p;
|
||||||
if (d2i_ASN1_bytes(&os,&c->p,c->max-c->p,c->tag,c->xclass)
|
if (d2i_ASN1_bytes(&os,&c->p,c->slen,c->tag,c->xclass)
|
||||||
== NULL)
|
== NULL)
|
||||||
{
|
{
|
||||||
c->error=ERR_R_ASN1_LIB;
|
c->error=ERR_R_ASN1_LIB;
|
||||||
@@ -302,7 +304,6 @@ static int asn1_collate_primitive(ASN1_STRING *a, ASN1_CTX *c)
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
memcpy(&(b.data[num]),os->data,os->length);
|
memcpy(&(b.data[num]),os->data,os->length);
|
||||||
if (!(c->inf & 1))
|
|
||||||
c->slen-=(c->p-c->q);
|
c->slen-=(c->p-c->q);
|
||||||
num+=os->length;
|
num+=os->length;
|
||||||
}
|
}
|
||||||
|
@@ -199,10 +199,10 @@ int ASN1_sign(int (*i2d)(), X509_ALGOR *algor1, X509_ALGOR *algor2,
|
|||||||
signature->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07);
|
signature->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07);
|
||||||
signature->flags|=ASN1_STRING_FLAG_BITS_LEFT;
|
signature->flags|=ASN1_STRING_FLAG_BITS_LEFT;
|
||||||
err:
|
err:
|
||||||
memset(&ctx,0,sizeof(ctx));
|
OPENSSL_cleanse(&ctx,sizeof(ctx));
|
||||||
if (buf_in != NULL)
|
if (buf_in != NULL)
|
||||||
{ memset((char *)buf_in,0,(unsigned int)inl); OPENSSL_free(buf_in); }
|
{ OPENSSL_cleanse((char *)buf_in,(unsigned int)inl); OPENSSL_free(buf_in); }
|
||||||
if (buf_out != NULL)
|
if (buf_out != NULL)
|
||||||
{ memset((char *)buf_out,0,outll); OPENSSL_free(buf_out); }
|
{ OPENSSL_cleanse((char *)buf_out,outll); OPENSSL_free(buf_out); }
|
||||||
return(outl);
|
return(outl);
|
||||||
}
|
}
|
||||||
|
@@ -274,7 +274,7 @@ int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str)
|
|||||||
* otherwise it is the number of bytes per character
|
* otherwise it is the number of bytes per character
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const static char tag2nbyte[] = {
|
const static signed char tag2nbyte[] = {
|
||||||
-1, -1, -1, -1, -1, /* 0-4 */
|
-1, -1, -1, -1, -1, /* 0-4 */
|
||||||
-1, -1, -1, -1, -1, /* 5-9 */
|
-1, -1, -1, -1, -1, /* 5-9 */
|
||||||
-1, -1, 0, -1, /* 10-13 */
|
-1, -1, 0, -1, /* 10-13 */
|
||||||
@@ -519,7 +519,7 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
|
|||||||
{
|
{
|
||||||
ASN1_STRING stmp, *str = &stmp;
|
ASN1_STRING stmp, *str = &stmp;
|
||||||
int mbflag, type, ret;
|
int mbflag, type, ret;
|
||||||
if(!*out || !in) return -1;
|
if(!in) return -1;
|
||||||
type = in->type;
|
type = in->type;
|
||||||
if((type < 0) || (type > 30)) return -1;
|
if((type < 0) || (type > 30)) return -1;
|
||||||
mbflag = tag2nbyte[type];
|
mbflag = tag2nbyte[type];
|
||||||
@@ -528,6 +528,6 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
|
|||||||
stmp.data = NULL;
|
stmp.data = NULL;
|
||||||
ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
|
ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
|
||||||
if(ret < 0) return ret;
|
if(ret < 0) return ret;
|
||||||
if(out) *out = stmp.data;
|
*out = stmp.data;
|
||||||
return stmp.length;
|
return stmp.length;
|
||||||
}
|
}
|
||||||
|
@@ -246,6 +246,8 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
|
|||||||
ts=(struct tm *)localtime(&t);
|
ts=(struct tm *)localtime(&t);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (ts == NULL)
|
||||||
|
return(NULL);
|
||||||
p=(char *)s->data;
|
p=(char *)s->data;
|
||||||
if ((p == NULL) || (s->length < 14))
|
if ((p == NULL) || (s->length < 14))
|
||||||
{
|
{
|
||||||
|
@@ -100,7 +100,7 @@ int ASN1_verify(int (*i2d)(), X509_ALGOR *a, ASN1_BIT_STRING *signature,
|
|||||||
EVP_VerifyInit(&ctx,type);
|
EVP_VerifyInit(&ctx,type);
|
||||||
EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl);
|
EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl);
|
||||||
|
|
||||||
memset(buf_in,0,(unsigned int)inl);
|
OPENSSL_cleanse(buf_in,(unsigned int)inl);
|
||||||
OPENSSL_free(buf_in);
|
OPENSSL_free(buf_in);
|
||||||
|
|
||||||
if (EVP_VerifyFinal(&ctx,(unsigned char *)signature->data,
|
if (EVP_VerifyFinal(&ctx,(unsigned char *)signature->data,
|
||||||
|
@@ -123,7 +123,7 @@ extern "C" {
|
|||||||
#define B_ASN1_NUMERICSTRING 0x0001
|
#define B_ASN1_NUMERICSTRING 0x0001
|
||||||
#define B_ASN1_PRINTABLESTRING 0x0002
|
#define B_ASN1_PRINTABLESTRING 0x0002
|
||||||
#define B_ASN1_T61STRING 0x0004
|
#define B_ASN1_T61STRING 0x0004
|
||||||
#define B_ASN1_TELETEXSTRING 0x0008
|
#define B_ASN1_TELETEXSTRING 0x0004
|
||||||
#define B_ASN1_VIDEOTEXSTRING 0x0008
|
#define B_ASN1_VIDEOTEXSTRING 0x0008
|
||||||
#define B_ASN1_IA5STRING 0x0010
|
#define B_ASN1_IA5STRING 0x0010
|
||||||
#define B_ASN1_GRAPHICSTRING 0x0020
|
#define B_ASN1_GRAPHICSTRING 0x0020
|
||||||
|
@@ -104,10 +104,12 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass,
|
|||||||
l<<=7L;
|
l<<=7L;
|
||||||
l|= *(p++)&0x7f;
|
l|= *(p++)&0x7f;
|
||||||
if (--max == 0) goto err;
|
if (--max == 0) goto err;
|
||||||
|
if (l > (INT_MAX >> 7L)) goto err;
|
||||||
}
|
}
|
||||||
l<<=7L;
|
l<<=7L;
|
||||||
l|= *(p++)&0x7f;
|
l|= *(p++)&0x7f;
|
||||||
tag=(int)l;
|
tag=(int)l;
|
||||||
|
if (--max == 0) goto err;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -181,7 +181,7 @@ int i2d_RSA_NET(RSA *a, unsigned char **pp, int (*cb)(), int sgckey)
|
|||||||
}
|
}
|
||||||
|
|
||||||
EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
|
EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
|
||||||
memset(buf,0,256);
|
OPENSSL_cleanse(buf,256);
|
||||||
|
|
||||||
EVP_CIPHER_CTX_init(&ctx);
|
EVP_CIPHER_CTX_init(&ctx);
|
||||||
EVP_EncryptInit(&ctx,EVP_rc4(),key,NULL);
|
EVP_EncryptInit(&ctx,EVP_rc4(),key,NULL);
|
||||||
@@ -292,7 +292,7 @@ RSA *d2i_RSA_NET_2(RSA **a, unsigned char **pp, long length,
|
|||||||
}
|
}
|
||||||
|
|
||||||
EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
|
EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
|
||||||
memset(buf,0,256);
|
OPENSSL_cleanse(buf,256);
|
||||||
|
|
||||||
EVP_CIPHER_CTX_init(&ctx);
|
EVP_CIPHER_CTX_init(&ctx);
|
||||||
EVP_DecryptInit(&ctx,EVP_rc4(),key,NULL);
|
EVP_DecryptInit(&ctx,EVP_rc4(),key,NULL);
|
||||||
|
@@ -119,8 +119,8 @@ void PKCS8_PRIV_KEY_INFO_free (PKCS8_PRIV_KEY_INFO *a)
|
|||||||
X509_ALGOR_free(a->pkeyalg);
|
X509_ALGOR_free(a->pkeyalg);
|
||||||
/* Clear sensitive data */
|
/* Clear sensitive data */
|
||||||
if (a->pkey->value.octet_string)
|
if (a->pkey->value.octet_string)
|
||||||
memset (a->pkey->value.octet_string->data,
|
OPENSSL_cleanse(a->pkey->value.octet_string->data,
|
||||||
0, a->pkey->value.octet_string->length);
|
a->pkey->value.octet_string->length);
|
||||||
ASN1_TYPE_free (a->pkey);
|
ASN1_TYPE_free (a->pkey);
|
||||||
sk_X509_ATTRIBUTE_pop_free (a->attributes, X509_ATTRIBUTE_free);
|
sk_X509_ATTRIBUTE_pop_free (a->attributes, X509_ATTRIBUTE_free);
|
||||||
OPENSSL_free (a);
|
OPENSSL_free (a);
|
||||||
|
@@ -96,7 +96,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -63,6 +63,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "../e_os.h"
|
||||||
|
|
||||||
#ifdef NO_BF
|
#ifdef NO_BF
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@@ -275,7 +277,7 @@ int main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
ret=test();
|
ret=test();
|
||||||
|
|
||||||
exit(ret);
|
EXIT(ret);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -78,7 +78,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -825,5 +825,5 @@ int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
|
|||||||
* had the buffer been large enough.) */
|
* had the buffer been large enough.) */
|
||||||
return -1;
|
return -1;
|
||||||
else
|
else
|
||||||
return (retlen <= INT_MAX) ? retlen : -1;
|
return (retlen <= INT_MAX) ? (int)retlen : -1;
|
||||||
}
|
}
|
||||||
|
@@ -495,6 +495,7 @@ static int buffer_gets(BIO *b, char *buf, int size)
|
|||||||
if (i <= 0)
|
if (i <= 0)
|
||||||
{
|
{
|
||||||
BIO_copy_next_retry(b);
|
BIO_copy_next_retry(b);
|
||||||
|
*buf='\0';
|
||||||
if (i < 0) return((num > 0)?num:i);
|
if (i < 0) return((num > 0)?num:i);
|
||||||
if (i == 0) return(num);
|
if (i == 0) return(num);
|
||||||
}
|
}
|
||||||
|
@@ -241,7 +241,7 @@ typedef struct bio_method_st
|
|||||||
long (_far *ctrl)();
|
long (_far *ctrl)();
|
||||||
int (_far *create)();
|
int (_far *create)();
|
||||||
int (_far *destroy)();
|
int (_far *destroy)();
|
||||||
long (_fat *callback_ctrl)();
|
long (_far *callback_ctrl)();
|
||||||
} BIO_METHOD;
|
} BIO_METHOD;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1,4 +1,57 @@
|
|||||||
/* crypto/bio/bss_bio.c -*- Mode: C; c-file-style: "eay" -*- */
|
/* crypto/bio/bss_bio.c -*- Mode: C; c-file-style: "eay" -*- */
|
||||||
|
/* ====================================================================
|
||||||
|
* Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
*
|
||||||
|
* 3. All advertising materials mentioning features or use of this
|
||||||
|
* software must display the following acknowledgment:
|
||||||
|
* "This product includes software developed by the OpenSSL Project
|
||||||
|
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
|
||||||
|
*
|
||||||
|
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
|
||||||
|
* endorse or promote products derived from this software without
|
||||||
|
* prior written permission. For written permission, please contact
|
||||||
|
* openssl-core@openssl.org.
|
||||||
|
*
|
||||||
|
* 5. Products derived from this software may not be called "OpenSSL"
|
||||||
|
* nor may "OpenSSL" appear in their names without prior written
|
||||||
|
* permission of the OpenSSL Project.
|
||||||
|
*
|
||||||
|
* 6. Redistributions of any form whatsoever must retain the following
|
||||||
|
* acknowledgment:
|
||||||
|
* "This product includes software developed by the OpenSSL Project
|
||||||
|
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
|
||||||
|
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
|
||||||
|
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||||
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||||
|
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||||
|
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
* ====================================================================
|
||||||
|
*
|
||||||
|
* This product includes cryptographic software written by Eric Young
|
||||||
|
* (eay@cryptsoft.com). This product includes software written by Tim
|
||||||
|
* Hudson (tjh@cryptsoft.com).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
/* Special method for a BIO where the other endpoint is also a BIO
|
/* Special method for a BIO where the other endpoint is also a BIO
|
||||||
* of this kind, handled by the same thread (i.e. the "peer" is actually
|
* of this kind, handled by the same thread (i.e. the "peer" is actually
|
||||||
@@ -503,7 +556,7 @@ static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case BIO_C_DESTROY_BIO_PAIR:
|
case BIO_C_DESTROY_BIO_PAIR:
|
||||||
/* Effects both BIOs in the pair -- call just once!
|
/* Affects both BIOs in the pair -- call just once!
|
||||||
* Or let BIO_free(bio1); BIO_free(bio2); do the job. */
|
* Or let BIO_free(bio1); BIO_free(bio2); do the job. */
|
||||||
bio_destroy_pair(bio);
|
bio_destroy_pair(bio);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
@@ -159,7 +159,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -155,7 +155,7 @@ extern "C" {
|
|||||||
#define BN_BYTES 4
|
#define BN_BYTES 4
|
||||||
#define BN_BITS2 32
|
#define BN_BITS2 32
|
||||||
#define BN_BITS4 16
|
#define BN_BITS4 16
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
||||||
/* VC++ doesn't like the LL suffix */
|
/* VC++ doesn't like the LL suffix */
|
||||||
#define BN_MASK (0xffffffffffffffffL)
|
#define BN_MASK (0xffffffffffffffffL)
|
||||||
#else
|
#else
|
||||||
@@ -259,6 +259,8 @@ typedef struct bn_blinding_st
|
|||||||
BIGNUM *A;
|
BIGNUM *A;
|
||||||
BIGNUM *Ai;
|
BIGNUM *Ai;
|
||||||
BIGNUM *mod; /* just a reference */
|
BIGNUM *mod; /* just a reference */
|
||||||
|
unsigned long thread_id; /* added in OpenSSL 0.9.6j and 0.9.7b;
|
||||||
|
* used only by crypto/rsa/rsa_eay.c, rsa_lib.c */
|
||||||
} BN_BLINDING;
|
} BN_BLINDING;
|
||||||
|
|
||||||
/* Used for montgomery multiplication */
|
/* Used for montgomery multiplication */
|
||||||
@@ -413,7 +415,7 @@ int BN_mod_mul_montgomery(BIGNUM *r,BIGNUM *a,BIGNUM *b,BN_MONT_CTX *mont,
|
|||||||
BN_CTX *ctx);
|
BN_CTX *ctx);
|
||||||
int BN_from_montgomery(BIGNUM *r,BIGNUM *a,BN_MONT_CTX *mont,BN_CTX *ctx);
|
int BN_from_montgomery(BIGNUM *r,BIGNUM *a,BN_MONT_CTX *mont,BN_CTX *ctx);
|
||||||
void BN_MONT_CTX_free(BN_MONT_CTX *mont);
|
void BN_MONT_CTX_free(BN_MONT_CTX *mont);
|
||||||
int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *modulus,BN_CTX *ctx);
|
int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx);
|
||||||
BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to,BN_MONT_CTX *from);
|
BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to,BN_MONT_CTX *from);
|
||||||
|
|
||||||
BN_BLINDING *BN_BLINDING_new(BIGNUM *A,BIGNUM *Ai,BIGNUM *mod);
|
BN_BLINDING *BN_BLINDING_new(BIGNUM *A,BIGNUM *Ai,BIGNUM *mod);
|
||||||
|
@@ -263,12 +263,12 @@ void BN_clear_free(BIGNUM *a)
|
|||||||
if (a == NULL) return;
|
if (a == NULL) return;
|
||||||
if (a->d != NULL)
|
if (a->d != NULL)
|
||||||
{
|
{
|
||||||
memset(a->d,0,a->dmax*sizeof(a->d[0]));
|
OPENSSL_cleanse(a->d,a->dmax*sizeof(a->d[0]));
|
||||||
if (!(BN_get_flags(a,BN_FLG_STATIC_DATA)))
|
if (!(BN_get_flags(a,BN_FLG_STATIC_DATA)))
|
||||||
OPENSSL_free(a->d);
|
OPENSSL_free(a->d);
|
||||||
}
|
}
|
||||||
i=BN_get_flags(a,BN_FLG_MALLOCED);
|
i=BN_get_flags(a,BN_FLG_MALLOCED);
|
||||||
memset(a,0,sizeof(BIGNUM));
|
OPENSSL_cleanse(a,sizeof(BIGNUM));
|
||||||
if (i)
|
if (i)
|
||||||
OPENSSL_free(a);
|
OPENSSL_free(a);
|
||||||
}
|
}
|
||||||
|
@@ -224,7 +224,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn,
|
|||||||
int n, BN_ULONG *t)
|
int n, BN_ULONG *t)
|
||||||
{
|
{
|
||||||
int i,j,n2=n*2;
|
int i,j,n2=n*2;
|
||||||
unsigned int c1,c2,neg,zero;
|
int c1,c2,neg,zero;
|
||||||
BN_ULONG ln,lo,*p;
|
BN_ULONG ln,lo,*p;
|
||||||
|
|
||||||
# ifdef BN_COUNT
|
# ifdef BN_COUNT
|
||||||
@@ -376,7 +376,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn,
|
|||||||
|
|
||||||
/* The overflow will stop before we over write
|
/* The overflow will stop before we over write
|
||||||
* words we should not overwrite */
|
* words we should not overwrite */
|
||||||
if (ln < c1)
|
if (ln < (BN_ULONG)c1)
|
||||||
{
|
{
|
||||||
do {
|
do {
|
||||||
p++;
|
p++;
|
||||||
|
@@ -201,7 +201,7 @@ static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
|
|||||||
err:
|
err:
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
{
|
{
|
||||||
memset(buf,0,bytes);
|
OPENSSL_cleanse(buf,bytes);
|
||||||
OPENSSL_free(buf);
|
OPENSSL_free(buf);
|
||||||
}
|
}
|
||||||
return(ret);
|
return(ret);
|
||||||
|
@@ -123,6 +123,9 @@ int BN_add_word(BIGNUM *a, BN_ULONG w)
|
|||||||
i=0;
|
i=0;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
if (i >= a->top)
|
||||||
|
l=w;
|
||||||
|
else
|
||||||
l=(a->d[i]+(BN_ULONG)w)&BN_MASK2;
|
l=(a->d[i]+(BN_ULONG)w)&BN_MASK2;
|
||||||
a->d[i]=l;
|
a->d[i]=l;
|
||||||
if (w > l)
|
if (w > l)
|
||||||
|
@@ -139,10 +139,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
ctx=BN_CTX_new();
|
ctx=BN_CTX_new();
|
||||||
if (ctx == NULL) exit(1);
|
if (ctx == NULL) EXIT(1);
|
||||||
|
|
||||||
out=BIO_new(BIO_s_file());
|
out=BIO_new(BIO_s_file());
|
||||||
if (out == NULL) exit(1);
|
if (out == NULL) EXIT(1);
|
||||||
if (outfile == NULL)
|
if (outfile == NULL)
|
||||||
{
|
{
|
||||||
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
||||||
@@ -152,7 +152,7 @@ int main(int argc, char *argv[])
|
|||||||
if (!BIO_write_filename(out,outfile))
|
if (!BIO_write_filename(out,outfile))
|
||||||
{
|
{
|
||||||
perror(outfile);
|
perror(outfile);
|
||||||
exit(1);
|
EXIT(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,14 +228,14 @@ int main(int argc, char *argv[])
|
|||||||
BIO_free(out);
|
BIO_free(out);
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
exit(0);
|
EXIT(0);
|
||||||
err:
|
err:
|
||||||
BIO_puts(out,"1\n"); /* make sure the Perl script fed by bc notices
|
BIO_puts(out,"1\n"); /* make sure the Perl script fed by bc notices
|
||||||
* the failure, see test_bn in test/Makefile.ssl*/
|
* the failure, see test_bn in test/Makefile.ssl*/
|
||||||
BIO_flush(out);
|
BIO_flush(out);
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
ERR_print_errors_fp(stderr);
|
ERR_print_errors_fp(stderr);
|
||||||
exit(1);
|
EXIT(1);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -746,7 +746,7 @@ int test_mod_mul(BIO *bp, BN_CTX *ctx)
|
|||||||
while ((l=ERR_get_error()))
|
while ((l=ERR_get_error()))
|
||||||
fprintf(stderr,"ERROR:%s\n",
|
fprintf(stderr,"ERROR:%s\n",
|
||||||
ERR_error_string(l,NULL));
|
ERR_error_string(l,NULL));
|
||||||
exit(1);
|
EXIT(1);
|
||||||
}
|
}
|
||||||
if (bp != NULL)
|
if (bp != NULL)
|
||||||
{
|
{
|
||||||
|
@@ -59,6 +59,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "../e_os.h"
|
||||||
|
|
||||||
#include <openssl/bio.h>
|
#include <openssl/bio.h>
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
@@ -86,7 +89,7 @@ int main(int argc, char *argv[])
|
|||||||
ERR_load_BN_strings();
|
ERR_load_BN_strings();
|
||||||
|
|
||||||
ctx=BN_CTX_new();
|
ctx=BN_CTX_new();
|
||||||
if (ctx == NULL) exit(1);
|
if (ctx == NULL) EXIT(1);
|
||||||
r_mont=BN_new();
|
r_mont=BN_new();
|
||||||
r_recp=BN_new();
|
r_recp=BN_new();
|
||||||
r_simple=BN_new();
|
r_simple=BN_new();
|
||||||
@@ -99,7 +102,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
out=BIO_new(BIO_s_file());
|
out=BIO_new(BIO_s_file());
|
||||||
|
|
||||||
if (out == NULL) exit(1);
|
if (out == NULL) EXIT(1);
|
||||||
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
||||||
|
|
||||||
for (i=0; i<200; i++)
|
for (i=0; i<200; i++)
|
||||||
@@ -124,7 +127,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
printf("BN_mod_exp_mont() problems\n");
|
printf("BN_mod_exp_mont() problems\n");
|
||||||
ERR_print_errors(out);
|
ERR_print_errors(out);
|
||||||
exit(1);
|
EXIT(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret=BN_mod_exp_recp(r_recp,a,b,m,ctx);
|
ret=BN_mod_exp_recp(r_recp,a,b,m,ctx);
|
||||||
@@ -132,7 +135,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
printf("BN_mod_exp_recp() problems\n");
|
printf("BN_mod_exp_recp() problems\n");
|
||||||
ERR_print_errors(out);
|
ERR_print_errors(out);
|
||||||
exit(1);
|
EXIT(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret=BN_mod_exp_simple(r_simple,a,b,m,ctx);
|
ret=BN_mod_exp_simple(r_simple,a,b,m,ctx);
|
||||||
@@ -140,7 +143,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
printf("BN_mod_exp_simple() problems\n");
|
printf("BN_mod_exp_simple() problems\n");
|
||||||
ERR_print_errors(out);
|
ERR_print_errors(out);
|
||||||
exit(1);
|
EXIT(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BN_cmp(r_simple, r_mont) == 0
|
if (BN_cmp(r_simple, r_mont) == 0
|
||||||
@@ -163,7 +166,7 @@ int main(int argc, char *argv[])
|
|||||||
printf("\nrecp ="); BN_print(out,r_recp);
|
printf("\nrecp ="); BN_print(out,r_recp);
|
||||||
printf("\nmont ="); BN_print(out,r_mont);
|
printf("\nmont ="); BN_print(out,r_mont);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
exit(1);
|
EXIT(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BN_free(r_mont);
|
BN_free(r_mont);
|
||||||
@@ -177,11 +180,11 @@ int main(int argc, char *argv[])
|
|||||||
CRYPTO_mem_leaks(out);
|
CRYPTO_mem_leaks(out);
|
||||||
BIO_free(out);
|
BIO_free(out);
|
||||||
printf(" done\n");
|
printf(" done\n");
|
||||||
exit(0);
|
EXIT(0);
|
||||||
err:
|
err:
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
ERR_print_errors(out);
|
ERR_print_errors(out);
|
||||||
exit(1);
|
EXIT(1);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -68,7 +68,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -97,7 +97,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -60,6 +60,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "../e_os.h"
|
||||||
|
|
||||||
#ifdef NO_CAST
|
#ifdef NO_CAST
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@@ -224,7 +226,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
exit(err);
|
EXIT(err);
|
||||||
return(err);
|
return(err);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -71,7 +71,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -69,7 +69,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -224,9 +224,9 @@ static int def_load(CONF *conf, BIO *in, long *line)
|
|||||||
section_sk=(STACK_OF(CONF_VALUE) *)sv->value;
|
section_sk=(STACK_OF(CONF_VALUE) *)sv->value;
|
||||||
|
|
||||||
bufnum=0;
|
bufnum=0;
|
||||||
|
again=0;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
again=0;
|
|
||||||
if (!BUF_MEM_grow(buff,bufnum+BUFSIZE))
|
if (!BUF_MEM_grow(buff,bufnum+BUFSIZE))
|
||||||
{
|
{
|
||||||
CONFerr(CONF_F_CONF_LOAD_BIO,ERR_R_BUF_LIB);
|
CONFerr(CONF_F_CONF_LOAD_BIO,ERR_R_BUF_LIB);
|
||||||
@@ -237,7 +237,8 @@ static int def_load(CONF *conf, BIO *in, long *line)
|
|||||||
BIO_gets(in, p, BUFSIZE-1);
|
BIO_gets(in, p, BUFSIZE-1);
|
||||||
p[BUFSIZE-1]='\0';
|
p[BUFSIZE-1]='\0';
|
||||||
ii=i=strlen(p);
|
ii=i=strlen(p);
|
||||||
if (i == 0) break;
|
if (i == 0 && !again) break;
|
||||||
|
again=0;
|
||||||
while (i > 0)
|
while (i > 0)
|
||||||
{
|
{
|
||||||
if ((p[i-1] != '\r') && (p[i-1] != '\n'))
|
if ((p[i-1] != '\r') && (p[i-1] != '\n'))
|
||||||
@@ -247,7 +248,7 @@ static int def_load(CONF *conf, BIO *in, long *line)
|
|||||||
}
|
}
|
||||||
/* we removed some trailing stuff so there is a new
|
/* we removed some trailing stuff so there is a new
|
||||||
* line on the end. */
|
* line on the end. */
|
||||||
if (i == ii)
|
if (ii && i == ii)
|
||||||
again=1; /* long line */
|
again=1; /* long line */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <assert.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include <openssl/safestack.h>
|
#include <openssl/safestack.h>
|
||||||
@@ -89,6 +90,7 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
|
|||||||
"ssl_session",
|
"ssl_session",
|
||||||
"ssl_sess_cert",
|
"ssl_sess_cert",
|
||||||
"ssl",
|
"ssl",
|
||||||
|
/* "ssl_method", */
|
||||||
"rand",
|
"rand",
|
||||||
"rand2",
|
"rand2",
|
||||||
"debug_malloc",
|
"debug_malloc",
|
||||||
@@ -205,10 +207,18 @@ int CRYPTO_get_new_dynlockid(void)
|
|||||||
i=sk_CRYPTO_dynlock_find(dyn_locks,NULL);
|
i=sk_CRYPTO_dynlock_find(dyn_locks,NULL);
|
||||||
/* If there was none, push, thereby creating a new one */
|
/* If there was none, push, thereby creating a new one */
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
i=sk_CRYPTO_dynlock_push(dyn_locks,pointer);
|
/* Since sk_push() returns the number of items on the
|
||||||
|
stack, not the location of the pushed item, we need
|
||||||
|
to transform the returned number into a position,
|
||||||
|
by decreasing it. */
|
||||||
|
i=sk_CRYPTO_dynlock_push(dyn_locks,pointer) - 1;
|
||||||
|
else
|
||||||
|
/* If we found a place with a NULL pointer, put our pointer
|
||||||
|
in it. */
|
||||||
|
sk_CRYPTO_dynlock_set(dyn_locks,i,pointer);
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
|
CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
|
||||||
|
|
||||||
if (!i)
|
if (i == -1)
|
||||||
{
|
{
|
||||||
dynlock_destroy_callback(pointer->data,__FILE__,__LINE__);
|
dynlock_destroy_callback(pointer->data,__FILE__,__LINE__);
|
||||||
OPENSSL_free(pointer);
|
OPENSSL_free(pointer);
|
||||||
@@ -399,17 +409,19 @@ void CRYPTO_lock(int mode, int type, const char *file, int line)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (type < 0)
|
if (type < 0)
|
||||||
|
{
|
||||||
|
if (dynlock_lock_callback != NULL)
|
||||||
{
|
{
|
||||||
struct CRYPTO_dynlock_value *pointer
|
struct CRYPTO_dynlock_value *pointer
|
||||||
= CRYPTO_get_dynlock_value(type);
|
= CRYPTO_get_dynlock_value(type);
|
||||||
|
|
||||||
if (pointer && dynlock_lock_callback)
|
assert(pointer != NULL);
|
||||||
{
|
|
||||||
dynlock_lock_callback(mode, pointer, file, line);
|
dynlock_lock_callback(mode, pointer, file, line);
|
||||||
}
|
|
||||||
|
|
||||||
CRYPTO_destroy_dynlockid(type);
|
CRYPTO_destroy_dynlockid(type);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if (locking_callback != NULL)
|
if (locking_callback != NULL)
|
||||||
locking_callback(mode,type,file,line);
|
locking_callback(mode,type,file,line);
|
||||||
@@ -459,7 +471,7 @@ const char *CRYPTO_get_lock_name(int type)
|
|||||||
return("dynamic");
|
return("dynamic");
|
||||||
else if (type < CRYPTO_NUM_LOCKS)
|
else if (type < CRYPTO_NUM_LOCKS)
|
||||||
return(lock_names[type]);
|
return(lock_names[type]);
|
||||||
else if (type-CRYPTO_NUM_LOCKS >= sk_num(app_locks))
|
else if (type-CRYPTO_NUM_LOCKS > sk_num(app_locks))
|
||||||
return("ERROR");
|
return("ERROR");
|
||||||
else
|
else
|
||||||
return(sk_value(app_locks,type-CRYPTO_NUM_LOCKS));
|
return(sk_value(app_locks,type-CRYPTO_NUM_LOCKS));
|
||||||
|
@@ -174,7 +174,7 @@ $!
|
|||||||
$ APPS_DES = "DES/DES,CBC3_ENC"
|
$ APPS_DES = "DES/DES,CBC3_ENC"
|
||||||
$ APPS_PKCS7 = "ENC/ENC;DEC/DEC;SIGN/SIGN;VERIFY/VERIFY,EXAMPLE"
|
$ APPS_PKCS7 = "ENC/ENC;DEC/DEC;SIGN/SIGN;VERIFY/VERIFY,EXAMPLE"
|
||||||
$
|
$
|
||||||
$ LIB_ = "cryptlib,mem,mem_dbg,cversion,ex_data,tmdiff,cpt_err,ebcdic,uid"
|
$ LIB_ = "cryptlib,mem,mem_clr,mem_dbg,cversion,ex_data,tmdiff,cpt_err,ebcdic,uid"
|
||||||
$ LIB_MD2 = "md2_dgst,md2_one"
|
$ LIB_MD2 = "md2_dgst,md2_one"
|
||||||
$ LIB_MD4 = "md4_dgst,md4_one"
|
$ LIB_MD4 = "md4_dgst,md4_one"
|
||||||
$ LIB_MD5 = "md5_dgst,md5_one"
|
$ LIB_MD5 = "md5_dgst,md5_one"
|
||||||
@@ -1142,7 +1142,7 @@ $ ENDIF
|
|||||||
$!
|
$!
|
||||||
$! Set Up Initial CC Definitions, Possibly With User Ones
|
$! Set Up Initial CC Definitions, Possibly With User Ones
|
||||||
$!
|
$!
|
||||||
$ CCDEFS = "VMS=1,TCPIP_TYPE_''P5',DSO_VMS"
|
$ CCDEFS = "VMS=1,TCPIP_TYPE_''P5',DSO_VMS,THREADS"
|
||||||
$ IF F$TRNLNM("OPENSSL_NO_ASM") THEN CCDEFS = CCDEFS + ",NO_ASM"
|
$ IF F$TRNLNM("OPENSSL_NO_ASM") THEN CCDEFS = CCDEFS + ",NO_ASM"
|
||||||
$ IF F$TRNLNM("OPENSSL_NO_RSA") THEN CCDEFS = CCDEFS + ",NO_RSA"
|
$ IF F$TRNLNM("OPENSSL_NO_RSA") THEN CCDEFS = CCDEFS + ",NO_RSA"
|
||||||
$ IF F$TRNLNM("OPENSSL_NO_DSA") THEN CCDEFS = CCDEFS + ",NO_DSA"
|
$ IF F$TRNLNM("OPENSSL_NO_DSA") THEN CCDEFS = CCDEFS + ",NO_DSA"
|
||||||
@@ -1333,7 +1333,7 @@ $ CC4 = CC - CCDISABLEWARNINGS + CC4DISABLEWARNINGS
|
|||||||
$!
|
$!
|
||||||
$! Show user the result
|
$! Show user the result
|
||||||
$!
|
$!
|
||||||
$ WRITE SYS$OUTPUT "Main C Compiling Command: ",CC
|
$ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC
|
||||||
$!
|
$!
|
||||||
$! Else The User Entered An Invalid Arguement.
|
$! Else The User Entered An Invalid Arguement.
|
||||||
$!
|
$!
|
||||||
@@ -1364,7 +1364,7 @@ $ IF ARCH .EQS. "AXP" THEN MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE
|
|||||||
$!
|
$!
|
||||||
$! Show user the result
|
$! Show user the result
|
||||||
$!
|
$!
|
||||||
$ WRITE SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO
|
$ WRITE/SYMBOL SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO
|
||||||
$!
|
$!
|
||||||
$! Time to check the contents, and to make sure we get the correct library.
|
$! Time to check the contents, and to make sure we get the correct library.
|
||||||
$!
|
$!
|
||||||
|
@@ -111,6 +111,9 @@ extern "C" {
|
|||||||
#define CRYPTO_LOCK_SSL_SESSION 14
|
#define CRYPTO_LOCK_SSL_SESSION 14
|
||||||
#define CRYPTO_LOCK_SSL_SESS_CERT 15
|
#define CRYPTO_LOCK_SSL_SESS_CERT 15
|
||||||
#define CRYPTO_LOCK_SSL 16
|
#define CRYPTO_LOCK_SSL 16
|
||||||
|
/* for binary compatibility between 0.9.6 minor versions,
|
||||||
|
* reuse an existing lock (later version use a new one): */
|
||||||
|
# define CRYPTO_LOCK_SSL_METHOD CRYPTO_LOCK_SSL_CTX
|
||||||
#define CRYPTO_LOCK_RAND 17
|
#define CRYPTO_LOCK_RAND 17
|
||||||
#define CRYPTO_LOCK_RAND2 18
|
#define CRYPTO_LOCK_RAND2 18
|
||||||
#define CRYPTO_LOCK_MALLOC 19
|
#define CRYPTO_LOCK_MALLOC 19
|
||||||
@@ -343,6 +346,8 @@ void CRYPTO_free(void *);
|
|||||||
void *CRYPTO_realloc(void *addr,int num, const char *file, int line);
|
void *CRYPTO_realloc(void *addr,int num, const char *file, int line);
|
||||||
void *CRYPTO_remalloc(void *addr,int num, const char *file, int line);
|
void *CRYPTO_remalloc(void *addr,int num, const char *file, int line);
|
||||||
|
|
||||||
|
void OPENSSL_cleanse(void *ptr, size_t len);
|
||||||
|
|
||||||
void CRYPTO_set_mem_debug_options(long bits);
|
void CRYPTO_set_mem_debug_options(long bits);
|
||||||
long CRYPTO_get_mem_debug_options(void);
|
long CRYPTO_get_mem_debug_options(void);
|
||||||
|
|
||||||
|
@@ -130,7 +130,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
@@ -192,8 +192,11 @@ qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
|||||||
qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h
|
qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h
|
||||||
rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||||
rand_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/rand.h
|
rand_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/rand.h
|
||||||
read2pwd.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
read2pwd.o: ../../include/openssl/opensslconf.h des_locl.h
|
read2pwd.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
|
||||||
|
read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||||
|
read2pwd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
|
read2pwd.o: des_locl.h
|
||||||
read_pwd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
read_pwd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||||
read_pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
read_pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
read_pwd.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
read_pwd.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
@@ -206,7 +209,10 @@ rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
|||||||
rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h
|
rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h
|
||||||
set_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
set_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||||
set_key.o: ../../include/openssl/opensslconf.h des_locl.h
|
set_key.o: ../../include/openssl/opensslconf.h des_locl.h
|
||||||
str2key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
str2key.o: ../../include/openssl/opensslconf.h des_locl.h
|
str2key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
|
||||||
|
str2key.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||||
|
str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
|
str2key.o: des_locl.h
|
||||||
xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||||
xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h
|
xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h
|
||||||
|
@@ -56,6 +56,7 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "e_os.h"
|
||||||
#include "des_locl.h"
|
#include "des_locl.h"
|
||||||
|
|
||||||
/* The input and output are loaded in multiples of 8 bits.
|
/* The input and output are loaded in multiples of 8 bits.
|
||||||
|
@@ -86,6 +86,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <openssl/crypto.h>
|
||||||
#include <openssl/des.h>
|
#include <openssl/des.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
|
|
||||||
@@ -423,7 +424,7 @@ void doencryption(void)
|
|||||||
k2[i-8]=k;
|
k2[i-8]=k;
|
||||||
}
|
}
|
||||||
des_set_key_unchecked(&k2,ks2);
|
des_set_key_unchecked(&k2,ks2);
|
||||||
memset(k2,0,sizeof(k2));
|
OPENSSL_cleanse(k2,sizeof(k2));
|
||||||
}
|
}
|
||||||
else if (longk || flag3)
|
else if (longk || flag3)
|
||||||
{
|
{
|
||||||
@@ -431,7 +432,7 @@ void doencryption(void)
|
|||||||
{
|
{
|
||||||
des_string_to_2keys(key,&kk,&k2);
|
des_string_to_2keys(key,&kk,&k2);
|
||||||
des_set_key_unchecked(&k2,ks2);
|
des_set_key_unchecked(&k2,ks2);
|
||||||
memset(k2,0,sizeof(k2));
|
OPENSSL_cleanse(k2,sizeof(k2));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
des_string_to_key(key,&kk);
|
des_string_to_key(key,&kk);
|
||||||
@@ -453,8 +454,8 @@ void doencryption(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
des_set_key_unchecked(&kk,ks);
|
des_set_key_unchecked(&kk,ks);
|
||||||
memset(key,0,sizeof(key));
|
OPENSSL_cleanse(key,sizeof(key));
|
||||||
memset(kk,0,sizeof(kk));
|
OPENSSL_cleanse(kk,sizeof(kk));
|
||||||
/* woops - A bug that does not showup under unix :-( */
|
/* woops - A bug that does not showup under unix :-( */
|
||||||
memset(iv,0,sizeof(iv));
|
memset(iv,0,sizeof(iv));
|
||||||
memset(iv2,0,sizeof(iv2));
|
memset(iv2,0,sizeof(iv2));
|
||||||
@@ -662,18 +663,18 @@ void doencryption(void)
|
|||||||
if (l) fclose(CKSUM_OUT);
|
if (l) fclose(CKSUM_OUT);
|
||||||
}
|
}
|
||||||
problems:
|
problems:
|
||||||
memset(buf,0,sizeof(buf));
|
OPENSSL_cleanse(buf,sizeof(buf));
|
||||||
memset(obuf,0,sizeof(obuf));
|
OPENSSL_cleanse(obuf,sizeof(obuf));
|
||||||
memset(ks,0,sizeof(ks));
|
OPENSSL_cleanse(ks,sizeof(ks));
|
||||||
memset(ks2,0,sizeof(ks2));
|
OPENSSL_cleanse(ks2,sizeof(ks2));
|
||||||
memset(iv,0,sizeof(iv));
|
OPENSSL_cleanse(iv,sizeof(iv));
|
||||||
memset(iv2,0,sizeof(iv2));
|
OPENSSL_cleanse(iv2,sizeof(iv2));
|
||||||
memset(kk,0,sizeof(kk));
|
OPENSSL_cleanse(kk,sizeof(kk));
|
||||||
memset(k2,0,sizeof(k2));
|
OPENSSL_cleanse(k2,sizeof(k2));
|
||||||
memset(uubuf,0,sizeof(uubuf));
|
OPENSSL_cleanse(uubuf,sizeof(uubuf));
|
||||||
memset(b,0,sizeof(b));
|
OPENSSL_cleanse(b,sizeof(b));
|
||||||
memset(bb,0,sizeof(bb));
|
OPENSSL_cleanse(bb,sizeof(bb));
|
||||||
memset(cksum,0,sizeof(cksum));
|
OPENSSL_cleanse(cksum,sizeof(cksum));
|
||||||
if (Exit) EXIT(Exit);
|
if (Exit) EXIT(Exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -57,6 +57,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "des_locl.h"
|
#include "des_locl.h"
|
||||||
|
#include <openssl/crypto.h>
|
||||||
|
|
||||||
int des_read_password(des_cblock *key, const char *prompt, int verify)
|
int des_read_password(des_cblock *key, const char *prompt, int verify)
|
||||||
{
|
{
|
||||||
@@ -65,8 +66,8 @@ int des_read_password(des_cblock *key, const char *prompt, int verify)
|
|||||||
|
|
||||||
if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0)
|
if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0)
|
||||||
des_string_to_key(buf,key);
|
des_string_to_key(buf,key);
|
||||||
memset(buf,0,BUFSIZ);
|
OPENSSL_cleanse(buf,BUFSIZ);
|
||||||
memset(buff,0,BUFSIZ);
|
OPENSSL_cleanse(buff,BUFSIZ);
|
||||||
return(ok);
|
return(ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +79,7 @@ int des_read_2passwords(des_cblock *key1, des_cblock *key2, const char *prompt,
|
|||||||
|
|
||||||
if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0)
|
if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0)
|
||||||
des_string_to_2keys(buf,key1,key2);
|
des_string_to_2keys(buf,key1,key2);
|
||||||
memset(buf,0,BUFSIZ);
|
OPENSSL_cleanse(buf,BUFSIZ);
|
||||||
memset(buff,0,BUFSIZ);
|
OPENSSL_cleanse(buff,BUFSIZ);
|
||||||
return(ok);
|
return(ok);
|
||||||
}
|
}
|
||||||
|
@@ -218,7 +218,7 @@ int des_read_pw_string(char *buf, int length, const char *prompt,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret=des_read_pw(buf,buff,(length>BUFSIZ)?BUFSIZ:length,prompt,verify);
|
ret=des_read_pw(buf,buff,(length>BUFSIZ)?BUFSIZ:length,prompt,verify);
|
||||||
memset(buff,0,BUFSIZ);
|
OPENSSL_cleanse(buff,BUFSIZ);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -56,6 +56,7 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <openssl/crypto.h>
|
||||||
#include "des_locl.h"
|
#include "des_locl.h"
|
||||||
|
|
||||||
void des_string_to_key(const char *str, des_cblock *key)
|
void des_string_to_key(const char *str, des_cblock *key)
|
||||||
@@ -88,7 +89,7 @@ void des_string_to_key(const char *str, des_cblock *key)
|
|||||||
des_set_odd_parity(key);
|
des_set_odd_parity(key);
|
||||||
des_set_key_unchecked(key,ks);
|
des_set_key_unchecked(key,ks);
|
||||||
des_cbc_cksum((const unsigned char*)str,key,length,ks,key);
|
des_cbc_cksum((const unsigned char*)str,key,length,ks,key);
|
||||||
memset(ks,0,sizeof(ks));
|
OPENSSL_cleanse(ks,sizeof(ks));
|
||||||
des_set_odd_parity(key);
|
des_set_odd_parity(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,7 +150,7 @@ void des_string_to_2keys(const char *str, des_cblock *key1, des_cblock *key2)
|
|||||||
des_cbc_cksum((const unsigned char*)str,key1,length,ks,key1);
|
des_cbc_cksum((const unsigned char*)str,key1,length,ks,key1);
|
||||||
des_set_key_unchecked(key2,ks);
|
des_set_key_unchecked(key2,ks);
|
||||||
des_cbc_cksum((const unsigned char*)str,key2,length,ks,key2);
|
des_cbc_cksum((const unsigned char*)str,key2,length,ks,key2);
|
||||||
memset(ks,0,sizeof(ks));
|
OPENSSL_cleanse(ks,sizeof(ks));
|
||||||
des_set_odd_parity(key1);
|
des_set_odd_parity(key1);
|
||||||
des_set_odd_parity(key2);
|
des_set_odd_parity(key2);
|
||||||
}
|
}
|
||||||
|
@@ -68,7 +68,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -59,6 +59,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "../e_os.h"
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
#include "../bio/bss_file.c"
|
#include "../bio/bss_file.c"
|
||||||
#endif
|
#endif
|
||||||
@@ -107,7 +110,7 @@ int main(int argc, char *argv[])
|
|||||||
RAND_seed(rnd_seed, sizeof rnd_seed);
|
RAND_seed(rnd_seed, sizeof rnd_seed);
|
||||||
|
|
||||||
out=BIO_new(BIO_s_file());
|
out=BIO_new(BIO_s_file());
|
||||||
if (out == NULL) exit(1);
|
if (out == NULL) EXIT(1);
|
||||||
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
||||||
|
|
||||||
a=DH_generate_parameters(64,DH_GENERATOR_5,cb,out);
|
a=DH_generate_parameters(64,DH_GENERATOR_5,cb,out);
|
||||||
@@ -188,7 +191,7 @@ err:
|
|||||||
if(b != NULL) DH_free(b);
|
if(b != NULL) DH_free(b);
|
||||||
if(a != NULL) DH_free(a);
|
if(a != NULL) DH_free(a);
|
||||||
BIO_free(out);
|
BIO_free(out);
|
||||||
exit(ret);
|
EXIT(ret);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -70,7 +70,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -61,6 +61,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include "../e_os.h"
|
||||||
|
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/bio.h>
|
#include <openssl/bio.h>
|
||||||
@@ -207,10 +210,16 @@ end:
|
|||||||
BIO_free(bio_err);
|
BIO_free(bio_err);
|
||||||
bio_err = NULL;
|
bio_err = NULL;
|
||||||
}
|
}
|
||||||
exit(!ret);
|
EXIT(!ret);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int cb_exit(int ec)
|
||||||
|
{
|
||||||
|
EXIT(ec);
|
||||||
|
return(0); /* To keep some compilers quiet */
|
||||||
|
}
|
||||||
|
|
||||||
static void MS_CALLBACK dsa_cb(int p, int n, void *arg)
|
static void MS_CALLBACK dsa_cb(int p, int n, void *arg)
|
||||||
{
|
{
|
||||||
char c='*';
|
char c='*';
|
||||||
@@ -226,7 +235,7 @@ static void MS_CALLBACK dsa_cb(int p, int n, void *arg)
|
|||||||
if (!ok && (p == 0) && (num > 1))
|
if (!ok && (p == 0) && (num > 1))
|
||||||
{
|
{
|
||||||
BIO_printf((BIO *)arg,"error in dsatest\n");
|
BIO_printf((BIO *)arg,"error in dsatest\n");
|
||||||
exit(1);
|
cb_exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -70,7 +70,7 @@ lint:
|
|||||||
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
|
$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||||||
|
@@ -123,7 +123,11 @@ DSO_METHOD *DSO_METHOD_dlfcn(void)
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
|
# ifdef OPENSSL_SYS_SUNOS
|
||||||
|
# define DLOPEN_FLAG 1
|
||||||
|
# else
|
||||||
# define DLOPEN_FLAG RTLD_NOW /* Hope this works everywhere else */
|
# define DLOPEN_FLAG RTLD_NOW /* Hope this works everywhere else */
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For this DSO_METHOD, our meth_data STACK will contain;
|
/* For this DSO_METHOD, our meth_data STACK will contain;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user