Compare commits
2217 Commits
rsaref
...
OpenSSL_0_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c387a61fdd | ||
|
|
5d2175eddb | ||
|
|
7680669c33 | ||
|
|
a6ec2d58ba | ||
|
|
82c77c1b32 | ||
|
|
ea72ff2df7 | ||
|
|
4e5b835c6a | ||
|
|
1171f28f97 | ||
|
|
5c04e56285 | ||
|
|
9bac8d91d9 | ||
|
|
875e8fca2d | ||
|
|
39ee29b02c | ||
|
|
847b76dd0e | ||
|
|
c901a0538b | ||
|
|
a5ee2b5232 | ||
|
|
f520a2a8c2 | ||
|
|
78e7617324 | ||
|
|
56d490cd40 | ||
|
|
9bd313b83d | ||
|
|
50e4d01fa0 | ||
|
|
4a579233b4 | ||
|
|
ca3bba36c4 | ||
|
|
a37d05fa56 | ||
|
|
b111c5b8ce | ||
|
|
7228bfb439 | ||
|
|
687f9d2b94 | ||
|
|
6bcba344b5 | ||
|
|
6cebd2dd00 | ||
|
|
b82a94ee26 | ||
|
|
ba5541e1ad | ||
|
|
84b45fda86 | ||
|
|
7aacd4c458 | ||
|
|
e18ed57afd | ||
|
|
ff9722c7f1 | ||
|
|
08f38d887e | ||
|
|
5798378a22 | ||
|
|
e1fefe8124 | ||
|
|
b8b09625dc | ||
|
|
54d78c4778 | ||
|
|
354d263e44 | ||
|
|
f85b14c4ba | ||
|
|
ec20856622 | ||
|
|
e463138be9 | ||
|
|
ce1e801013 | ||
|
|
03a6dcdf31 | ||
|
|
bfb863b8b5 | ||
|
|
f261295d9c | ||
|
|
f4702b467e | ||
|
|
2aa5dac48f | ||
|
|
fae0ff419a | ||
|
|
74e6916996 | ||
|
|
99738e6393 | ||
|
|
0df2a19b10 | ||
|
|
1c8f840653 | ||
|
|
f0d6ee6be8 | ||
|
|
e65991f977 | ||
|
|
e2d39e421d | ||
|
|
3e83e686ba | ||
|
|
2ff622cf9d | ||
|
|
8f06b00373 | ||
|
|
1dea1f4509 | ||
|
|
44411db8e0 | ||
|
|
23ac7a1407 | ||
|
|
dda640835f | ||
|
|
6cc3700314 | ||
|
|
cc1489d2f2 | ||
|
|
016029c69f | ||
|
|
516b848286 | ||
|
|
b92fb90de5 | ||
|
|
8481a0905b | ||
|
|
c4202285ef | ||
|
|
44bbfcddaf | ||
|
|
49e045482a | ||
|
|
d8309efc72 | ||
|
|
f43acc8a50 | ||
|
|
6b7b277900 | ||
|
|
ba47f5c9b0 | ||
|
|
5e99ec6c7c | ||
|
|
4d94ae00d5 | ||
|
|
60d8bae30d | ||
|
|
0caec9e8f8 | ||
|
|
4f85a2e21e | ||
|
|
945e15a253 | ||
|
|
52f3038667 | ||
|
|
1fe198b6f9 | ||
|
|
1827be43ab | ||
|
|
78d6603aad | ||
|
|
7241ae1a0a | ||
|
|
5f58d6a5e0 | ||
|
|
8935c03618 | ||
|
|
76dca45720 | ||
|
|
acfe628b6e | ||
|
|
182d8435f0 | ||
|
|
4de920c91d | ||
|
|
3cd039dd8f | ||
|
|
81269a81ee | ||
|
|
3537525e00 | ||
|
|
d38f3ad1ee | ||
|
|
e083f91497 | ||
|
|
ba2cad19cf | ||
|
|
db0a1efcc9 | ||
|
|
9074521458 | ||
|
|
f924200e1b | ||
|
|
de2f6e4dae | ||
|
|
44bdb056d4 | ||
|
|
c31bbf1e68 | ||
|
|
5e68f8ce15 | ||
|
|
b9a3ef4c6e | ||
|
|
a5f158fa0b | ||
|
|
1955b87423 | ||
|
|
866eedb936 | ||
|
|
f701551f36 | ||
|
|
adc4df3616 | ||
|
|
1199e2d8cf | ||
|
|
0f180d1d1d | ||
|
|
072569e0f1 | ||
|
|
1a11273bc3 | ||
|
|
ba9786e4b8 | ||
|
|
613599ffff | ||
|
|
c9c21d3b89 | ||
|
|
d0d046eca2 | ||
|
|
babc4d0e7a | ||
|
|
2a81428489 | ||
|
|
7073e9e2a0 | ||
|
|
c9c111468c | ||
|
|
d866df33a1 | ||
|
|
73feb5418d | ||
|
|
b3467218f8 | ||
|
|
b77fcddb6b | ||
|
|
f6fbd470e3 | ||
|
|
f760c5d80b | ||
|
|
63810d8566 | ||
|
|
123c401967 | ||
|
|
a3fffd648b | ||
|
|
2d57b73a50 | ||
|
|
4fd350e8f5 | ||
|
|
f14845d999 | ||
|
|
80bb905d3d | ||
|
|
a297985f42 | ||
|
|
404dcc5e8e | ||
|
|
8242a6a9fc | ||
|
|
17bcb8d465 | ||
|
|
72165799a8 | ||
|
|
f1c2a9de45 | ||
|
|
52b66a622d | ||
|
|
273db408a8 | ||
|
|
957b6db3b1 | ||
|
|
a14e2d9dfe | ||
|
|
a8b94d6409 | ||
|
|
fe19c448f0 | ||
|
|
fcf6473199 | ||
|
|
1285221370 | ||
|
|
5dcf517d84 | ||
|
|
9b2f486c9e | ||
|
|
24995f3a10 | ||
|
|
0fc5cf0870 | ||
|
|
f78d4a35f8 | ||
|
|
df5eaa8a52 | ||
|
|
bc52146aee | ||
|
|
6ce46d69f5 | ||
|
|
575e664a7c | ||
|
|
348c9e5985 | ||
|
|
7389c848d4 | ||
|
|
4d393410f3 | ||
|
|
bd69750360 | ||
|
|
c9501c223f | ||
|
|
9dd5ae6553 | ||
|
|
e1e876072d | ||
|
|
dd2589494f | ||
|
|
1cfa8a397f | ||
|
|
bdae099862 | ||
|
|
cca28b291c | ||
|
|
062d3e39e7 | ||
|
|
06e6478d6f | ||
|
|
e29f478a7a | ||
|
|
1b58b616e3 | ||
|
|
c70d381775 | ||
|
|
508d8b1617 | ||
|
|
19fa8cfe5a | ||
|
|
8c74b5e56c | ||
|
|
5f18fe493e | ||
|
|
c59ba5b528 | ||
|
|
45d87a1ffe | ||
|
|
a3feb21bbe | ||
|
|
37530362fa | ||
|
|
fd69886aed | ||
|
|
d16e3759a8 | ||
|
|
fd795679bb | ||
|
|
e523f5f389 | ||
|
|
e4dd79bbc8 | ||
|
|
bc37d996fc | ||
|
|
31cafe53c9 | ||
|
|
31961f7308 | ||
|
|
dc4ddcd2bb | ||
|
|
2e1b411f23 | ||
|
|
5256b021f3 | ||
|
|
1bb68d62ab | ||
|
|
4d77825557 | ||
|
|
439c7ba540 | ||
|
|
edbbf22a0e | ||
|
|
4ab1e7ceaf | ||
|
|
06623ff028 | ||
|
|
67d48c8cc8 | ||
|
|
1cb8923507 | ||
|
|
83f1147664 | ||
|
|
d59fb0dd2f | ||
|
|
245f44e2ab | ||
|
|
e5d6528a12 | ||
|
|
4d4744ef48 | ||
|
|
980afccf98 | ||
|
|
0242564c17 | ||
|
|
9bd2cd745f | ||
|
|
e8d2e6cac2 | ||
|
|
015fbde807 | ||
|
|
ba1b888384 | ||
|
|
6f9079fd50 | ||
|
|
c938563a81 | ||
|
|
40928698bb | ||
|
|
138d8ab0c7 | ||
|
|
47cc5525a2 | ||
|
|
67fec850e1 | ||
|
|
651fa63e2b | ||
|
|
82db6e1646 | ||
|
|
6a40c26308 | ||
|
|
b7342e116b | ||
|
|
e7227322b3 | ||
|
|
9d7bb313e3 | ||
|
|
a5595fde9a | ||
|
|
00b6ab09fc | ||
|
|
95f8c7195c | ||
|
|
dcbbf83dba | ||
|
|
c99b94be3e | ||
|
|
3c89d78dba | ||
|
|
b9bb1c5f77 | ||
|
|
87af0e5e19 | ||
|
|
76b5524d3d | ||
|
|
84fcd6f83e | ||
|
|
0b421d35fb | ||
|
|
b2f570ecbb | ||
|
|
988988807f | ||
|
|
a92ae07091 | ||
|
|
b1b62e7976 | ||
|
|
68809d3969 | ||
|
|
069eb94607 | ||
|
|
5dfaf1c437 | ||
|
|
c6c5cf1754 | ||
|
|
d6a89fcf88 | ||
|
|
ef5f6a08ff | ||
|
|
3d7b414c55 | ||
|
|
7c517a04b1 | ||
|
|
863b1279f7 | ||
|
|
24ceef033a | ||
|
|
fe165e465b | ||
|
|
d78e52987e | ||
|
|
755cc53a6e | ||
|
|
1226c472b7 | ||
|
|
3ece3605ac | ||
|
|
4d7072f4b5 | ||
|
|
b5348a095d | ||
|
|
b35ef576f4 | ||
|
|
66df02fd98 | ||
|
|
865ce8abcb | ||
|
|
206eb6a11d | ||
|
|
f11fd3f4e1 | ||
|
|
29b108f939 | ||
|
|
a69b3e94f3 | ||
|
|
31106cc750 | ||
|
|
ff3fa48fc7 | ||
|
|
87166e1fb6 | ||
|
|
7f0f3f17b3 | ||
|
|
f3e24baddf | ||
|
|
a6977ee73d | ||
|
|
0bc2e28295 | ||
|
|
4b16376d51 | ||
|
|
d4704d5245 | ||
|
|
fe094cdfe3 | ||
|
|
8f0edcb3d2 | ||
|
|
35e25255e0 | ||
|
|
276753772e | ||
|
|
c3fbf5d9a8 | ||
|
|
16712ec35e | ||
|
|
55e42c93a8 | ||
|
|
6a0dec9584 | ||
|
|
21a85f1977 | ||
|
|
322de0c8c1 | ||
|
|
6a9af68b56 | ||
|
|
4e6c537141 | ||
|
|
b6e4dac217 | ||
|
|
1b0613e313 | ||
|
|
8a0a9392ab | ||
|
|
bcbe4e5254 | ||
|
|
47ff5c6279 | ||
|
|
898f856c44 | ||
|
|
75140e8bc9 | ||
|
|
883b0c2274 | ||
|
|
f717e5460f | ||
|
|
65129e1d57 | ||
|
|
2a6db68797 | ||
|
|
4f94d1a8b1 | ||
|
|
2b98d1ccb7 | ||
|
|
1d4581c2dd | ||
|
|
c05940edc7 | ||
|
|
c507a16e49 | ||
|
|
308f028e28 | ||
|
|
e4a6cf421a | ||
|
|
329636d6e3 | ||
|
|
9163b8fb23 | ||
|
|
ce8ac3dc00 | ||
|
|
a542db90c6 | ||
|
|
c156d5c9bd | ||
|
|
a7ce69dbd7 | ||
|
|
54b293ec3c | ||
|
|
9d93ce246c | ||
|
|
76c4336c43 | ||
|
|
e71adb85c5 | ||
|
|
033c51f0a3 | ||
|
|
452d1595a6 | ||
|
|
0d197a833c | ||
|
|
e0031b80ee | ||
|
|
b19941ab05 | ||
|
|
752938daab | ||
|
|
c78515f55e | ||
|
|
3ba1f11147 | ||
|
|
bbc206fdf7 | ||
|
|
2bd065dfbe | ||
|
|
6d7dbc12f2 | ||
|
|
83c40e7fc0 | ||
|
|
b5fe234588 | ||
|
|
e1a00d7d1d | ||
|
|
acf60ef707 | ||
|
|
c85a157854 | ||
|
|
0c5d16e4f5 | ||
|
|
bd2af5e707 | ||
|
|
58d55afa6f | ||
|
|
6343e2fac3 | ||
|
|
5a8e7c5bec | ||
|
|
75df0bb231 | ||
|
|
22b540f5c2 | ||
|
|
479275ef18 | ||
|
|
b476df64a1 | ||
|
|
6f3fa4b71d | ||
|
|
2f4dca7052 | ||
|
|
1d46b6b3b9 | ||
|
|
bbb35447c4 | ||
|
|
6276f1e100 | ||
|
|
5b8a57ecae | ||
|
|
817dfc18a3 | ||
|
|
0b0b2a8087 | ||
|
|
7b78aa0e8d | ||
|
|
c37e7bf580 | ||
|
|
c23d16ac19 | ||
|
|
926606deab | ||
|
|
1b28ed575b | ||
|
|
135c0af1bb | ||
|
|
f98c9972a7 | ||
|
|
475918410b | ||
|
|
3102792161 | ||
|
|
a291182757 | ||
|
|
df7cae352d | ||
|
|
eda75c31e3 | ||
|
|
2e689f6040 | ||
|
|
ea494f7b88 | ||
|
|
8250f6f1fc | ||
|
|
eb0c85dec3 | ||
|
|
9332b8c1c4 | ||
|
|
7be09992c6 | ||
|
|
ceea4c85b4 | ||
|
|
d1ec197e49 | ||
|
|
f4d9cdc531 | ||
|
|
e3f47ba87f | ||
|
|
ab665f4a7e | ||
|
|
35ff595e19 | ||
|
|
be2c37ef73 | ||
|
|
888b8f32d7 | ||
|
|
962c53c0cd | ||
|
|
ce6f656e1b | ||
|
|
9cb12c9d76 | ||
|
|
f089efdfab | ||
|
|
b26ca3408c | ||
|
|
a236373435 | ||
|
|
83978bd37a | ||
|
|
a3790c0d01 | ||
|
|
63b6090f7c | ||
|
|
c5571db0c2 | ||
|
|
7d555c8615 | ||
|
|
d63b1678b5 | ||
|
|
beaa89def7 | ||
|
|
b4bf34ce39 | ||
|
|
f99ac98efb | ||
|
|
e0457d5f7c | ||
|
|
c615cdd7cb | ||
|
|
ae52ec9869 | ||
|
|
e7d339b678 | ||
|
|
3f64d0bf3b | ||
|
|
0b33bc6b72 | ||
|
|
7aa983c6db | ||
|
|
fab972b914 | ||
|
|
2b90b1f344 | ||
|
|
a10b85d9e6 | ||
|
|
44cc9715ec | ||
|
|
65123f8064 | ||
|
|
1d8634b110 | ||
|
|
29e0c30c2a | ||
|
|
cf82191d77 | ||
|
|
a807f6460e | ||
|
|
3a8a0a3945 | ||
|
|
19c3f1c40d | ||
|
|
c5d4ab7e35 | ||
|
|
b30504c61c | ||
|
|
cbb5f1f025 | ||
|
|
b955dbd325 | ||
|
|
45582d1e2b | ||
|
|
b8556ab14b | ||
|
|
48c269ad7f | ||
|
|
60c50cbf9c | ||
|
|
3a3619b46a | ||
|
|
b83eddc578 | ||
|
|
7f558334ad | ||
|
|
6229a5607c | ||
|
|
6acc3b9689 | ||
|
|
66aa856698 | ||
|
|
f559f31bef | ||
|
|
3210b4fd14 | ||
|
|
a7b42009c4 | ||
|
|
d6945e10b5 | ||
|
|
7b5ffd6834 | ||
|
|
9b55da73ca | ||
|
|
e7156ff2e8 | ||
|
|
437db75b94 | ||
|
|
1586365835 | ||
|
|
7d5b04db4e | ||
|
|
48b0cf8b10 | ||
|
|
70bed0ca2d | ||
|
|
b693f941fd | ||
|
|
c602e7f4e8 | ||
|
|
e20788700c | ||
|
|
1fc6d41bf6 | ||
|
|
a41477f92e | ||
|
|
5f68c5feef | ||
|
|
ee84a5a7fb | ||
|
|
66d3e7481e | ||
|
|
0e21156333 | ||
|
|
f533b7780e | ||
|
|
cc2f5a8022 | ||
|
|
b441bf9226 | ||
|
|
2a9aca32dc | ||
|
|
b60806a097 | ||
|
|
89da653fa6 | ||
|
|
af50b58c3f | ||
|
|
0b9925be4f | ||
|
|
3e9ae0c462 | ||
|
|
4d635a7001 | ||
|
|
ce15d5a9dc | ||
|
|
ba1c602281 | ||
|
|
96ec4ce0d2 | ||
|
|
cfc781be6e | ||
|
|
84acc3c2bc | ||
|
|
c2e4f17c1a | ||
|
|
38b3e9edde | ||
|
|
979689aa5c | ||
|
|
a3faebd104 | ||
|
|
025c7737b2 | ||
|
|
513d4b4c16 | ||
|
|
7ef701519b | ||
|
|
50d194af4d | ||
|
|
287973746e | ||
|
|
f1558bb424 | ||
|
|
6ca487992b | ||
|
|
cf3a5cebd7 | ||
|
|
a661b65357 | ||
|
|
9ccadf1c6f | ||
|
|
1e55e768c3 | ||
|
|
98e6654938 | ||
|
|
cecd263878 | ||
|
|
31fe950d2b | ||
|
|
db6a87d8cc | ||
|
|
7beb408771 | ||
|
|
51008ffce1 | ||
|
|
3811eed8d5 | ||
|
|
581f1c8494 | ||
|
|
b914a547e1 | ||
|
|
41ebed27fa | ||
|
|
bf21446a2a | ||
|
|
e72d734d5f | ||
|
|
20d2186c87 | ||
|
|
9ba3ec9176 | ||
|
|
8f71fb8d98 | ||
|
|
48948d53b6 | ||
|
|
dbec19622e | ||
|
|
03b148f4a9 | ||
|
|
2dbdcd9734 | ||
|
|
2ce15df528 | ||
|
|
681bfae499 | ||
|
|
1147fa5a5f | ||
|
|
a9eba3f3f5 | ||
|
|
5dd955dcd2 | ||
|
|
aa8a33c230 | ||
|
|
56fa8e69cf | ||
|
|
46ff8e0d0a | ||
|
|
67d0738aba | ||
|
|
3f9077278a | ||
|
|
accb6063f3 | ||
|
|
b8a61e7362 | ||
|
|
744301ccd8 | ||
|
|
dd5e774664 | ||
|
|
6b86bad5ef | ||
|
|
712557128b | ||
|
|
3009e9f9ef | ||
|
|
b30245dae0 | ||
|
|
116daf4c2f | ||
|
|
cb40bdaf57 | ||
|
|
a295ca8cf9 | ||
|
|
4b12506891 | ||
|
|
cf98440178 | ||
|
|
c500d44735 | ||
|
|
18eda73234 | ||
|
|
7526e2c043 | ||
|
|
6d52f260bf | ||
|
|
752f2b6785 | ||
|
|
293c4d747c | ||
|
|
e1c279b63d | ||
|
|
467889703a | ||
|
|
3a457cca86 | ||
|
|
285046ec51 | ||
|
|
f8000b9345 | ||
|
|
77a8eb352f | ||
|
|
114697bef3 | ||
|
|
2aa9043ad3 | ||
|
|
1a095560f7 | ||
|
|
f329b8d73b | ||
|
|
3d90a32429 | ||
|
|
e3a7463c5d | ||
|
|
796c6eadcb | ||
|
|
b485e5b7e3 | ||
|
|
d1cc7b8f22 | ||
|
|
1cf9d58cb4 | ||
|
|
0cff933416 | ||
|
|
c41b29e5db | ||
|
|
65fb3fa630 | ||
|
|
0b0f08dbc7 | ||
|
|
5c32657c80 | ||
|
|
07cee70258 | ||
|
|
4ba163cbf9 | ||
|
|
2bfb2398e3 | ||
|
|
09389cbef5 | ||
|
|
a4a8f7b3ef | ||
|
|
34c66925aa | ||
|
|
cb7fd76f57 | ||
|
|
de822715b2 | ||
|
|
89f534e1d3 | ||
|
|
d46c1a8126 | ||
|
|
e32587d5a6 | ||
|
|
7876e4488f | ||
|
|
1a19f83d4c | ||
|
|
db8c838c6a | ||
|
|
37da54b10e | ||
|
|
0fea7ed4a4 | ||
|
|
dbeac560aa | ||
|
|
89eeccacde | ||
|
|
c9fc143972 | ||
|
|
004aa803a9 | ||
|
|
c921a5e1d4 | ||
|
|
0b4b9a11f5 | ||
|
|
d7e0299792 | ||
|
|
9dfdf0ad1d | ||
|
|
3b04cdd706 | ||
|
|
11a57c7be5 | ||
|
|
b370230b78 | ||
|
|
50a381b789 | ||
|
|
534aaf3731 | ||
|
|
6dc5d570d0 | ||
|
|
cb78486d97 | ||
|
|
9c9aa4f145 | ||
|
|
b6d1e52d45 | ||
|
|
f185e725a0 | ||
|
|
591ccf586d | ||
|
|
b7061c61b0 | ||
|
|
8a428200a6 | ||
|
|
10b2328fea | ||
|
|
594a3e5bd5 | ||
|
|
98c2a26ea6 | ||
|
|
ae9010abd5 | ||
|
|
965b6dad44 | ||
|
|
a3d8c0fc5d | ||
|
|
a32d795aae | ||
|
|
ef3dc028ef | ||
|
|
2413a3975f | ||
|
|
ae3a6640b7 | ||
|
|
029dfa64d4 | ||
|
|
3b0b5abae3 | ||
|
|
b49124f6d9 | ||
|
|
f8845509b6 | ||
|
|
2260ad21fb | ||
|
|
3f98e1dd11 | ||
|
|
6b0e9facf4 | ||
|
|
c404ff7955 | ||
|
|
8e2f6b79ea | ||
|
|
e53afa9e9b | ||
|
|
ee60d9fb28 | ||
|
|
e41c5bd730 | ||
|
|
be6d77005f | ||
|
|
b263b66746 | ||
|
|
5294dd705d | ||
|
|
2b67158673 | ||
|
|
db744f8950 | ||
|
|
e059b19ddb | ||
|
|
997a54c981 | ||
|
|
10981a5c84 | ||
|
|
b78e502104 | ||
|
|
9cf8888149 | ||
|
|
b6d0054a52 | ||
|
|
117df10db4 | ||
|
|
491d390ec9 | ||
|
|
d300bcca7f | ||
|
|
87301baec9 | ||
|
|
0cf4df488b | ||
|
|
d59c3e5046 | ||
|
|
6d8566f2eb | ||
|
|
4e1b0d8904 | ||
|
|
8ce2912fbc | ||
|
|
1372965e2e | ||
|
|
1a1422643b | ||
|
|
409960491d | ||
|
|
96bd6f730a | ||
|
|
c0f5dd070b | ||
|
|
9d7a8d3578 | ||
|
|
4dec4f646d | ||
|
|
fde9626cff | ||
|
|
2cb924b052 | ||
|
|
51ac0cfe44 | ||
|
|
16e819e1d8 | ||
|
|
1023cfe70d | ||
|
|
8e0a2d8461 | ||
|
|
e13ae96d7c | ||
|
|
9f29ec4721 | ||
|
|
b9a20b5057 | ||
|
|
c2222c2ea2 | ||
|
|
336da5642d | ||
|
|
8573fa1806 | ||
|
|
a52c2fb296 | ||
|
|
41450b27f2 | ||
|
|
e72d5983f2 | ||
|
|
5a85385387 | ||
|
|
fb9520c12d | ||
|
|
5e54b4f364 | ||
|
|
5ba372b17c | ||
|
|
62b0502750 | ||
|
|
f9b0f47c0c | ||
|
|
4deeadf7dc | ||
|
|
384eff877c | ||
|
|
c77c4c9f1c | ||
|
|
c5220abc6a | ||
|
|
68dbba9817 | ||
|
|
ea7150b070 | ||
|
|
b90f36d240 | ||
|
|
2712fe80be | ||
|
|
cb42ce0b67 | ||
|
|
e8330cf5ac | ||
|
|
7d34470458 | ||
|
|
f1047cebea | ||
|
|
da8a2e6f90 | ||
|
|
546ec5a9b3 | ||
|
|
e3fefbfd56 | ||
|
|
3b80e3aa9e | ||
|
|
13aab9cca4 | ||
|
|
14cfde9c83 | ||
|
|
9cabef963c | ||
|
|
ce9eab79a7 | ||
|
|
e9e202cfa8 | ||
|
|
d83ae69455 | ||
|
|
bb4f7a8d52 | ||
|
|
619b2c03dc | ||
|
|
aa4c2de10e | ||
|
|
6c36f7a9f2 | ||
|
|
78f7923580 | ||
|
|
33c0e6f547 | ||
|
|
d84f543ea6 | ||
|
|
978ebf0141 | ||
|
|
a7113d645f | ||
|
|
a9ed4da8eb | ||
|
|
e1a4814cd4 | ||
|
|
3cad81f6fe | ||
|
|
4450107afb | ||
|
|
908efd3b73 | ||
|
|
1a7691c059 | ||
|
|
f524ddbe04 | ||
|
|
541814c403 | ||
|
|
5013540224 | ||
|
|
94cb5ee63c | ||
|
|
fc9c61bc3b | ||
|
|
e815d3015e | ||
|
|
dc2a33d680 | ||
|
|
7ba45bf133 | ||
|
|
3f345dc653 | ||
|
|
d98a4b7366 | ||
|
|
889a54c467 | ||
|
|
9d07fd03e3 | ||
|
|
a8a1878256 | ||
|
|
0dd892848e | ||
|
|
5b46eee0f5 | ||
|
|
e5e6a94fbf | ||
|
|
d9ff889073 | ||
|
|
e4decc418a | ||
|
|
cf5bfbfc21 | ||
|
|
567fef894e | ||
|
|
6ee2a1365e | ||
|
|
435037d4e4 | ||
|
|
c5de8996cc | ||
|
|
2dc5383a20 | ||
|
|
9391f97715 | ||
|
|
5b16639538 | ||
|
|
1738bb61e1 | ||
|
|
91b3f0e691 | ||
|
|
6ac4e8bd6e | ||
|
|
f4681b0864 | ||
|
|
983495c4b2 | ||
|
|
931a23a5a5 | ||
|
|
72849dce81 | ||
|
|
2618893114 | ||
|
|
36026dfc01 | ||
|
|
79aa04ef27 | ||
|
|
3a0799977b | ||
|
|
e19ea55783 | ||
|
|
8716dbea40 | ||
|
|
e9bc66c84f | ||
|
|
c078798c60 | ||
|
|
de73cca923 | ||
|
|
b1051789d6 | ||
|
|
4db73c1bb8 | ||
|
|
3ae34e3a8c | ||
|
|
1f3b65801b | ||
|
|
5e2c4e23f4 | ||
|
|
35780c2139 | ||
|
|
ceff5fec5a | ||
|
|
4897dc4056 | ||
|
|
35e33f0e52 | ||
|
|
a844e27baa | ||
|
|
0783bf151c | ||
|
|
566bdf2bda | ||
|
|
eb6dc02b23 | ||
|
|
78435364ec | ||
|
|
5cbc2e8bc1 | ||
|
|
e7cf7fcd21 | ||
|
|
a04baf9b5c | ||
|
|
029fb8aa26 | ||
|
|
bb8aab0211 | ||
|
|
0fbf5f7102 | ||
|
|
2cb95a153e | ||
|
|
20d57547e6 | ||
|
|
f1b2807478 | ||
|
|
faacb092f8 | ||
|
|
b439a74620 | ||
|
|
3132ab8ce6 | ||
|
|
ea5b10a177 | ||
|
|
bfd7bb3eb6 | ||
|
|
dca598b911 | ||
|
|
11c8f0b79d | ||
|
|
187ebb98ad | ||
|
|
84712f4f9d | ||
|
|
c4068186ac | ||
|
|
44366c3713 | ||
|
|
0a93a68020 | ||
|
|
f2ab7d1392 | ||
|
|
c41ab9ade5 | ||
|
|
feef7d2dc6 | ||
|
|
7ac19add8f | ||
|
|
e1c82386d1 | ||
|
|
141e584998 | ||
|
|
d9164abe69 | ||
|
|
9347774449 | ||
|
|
336736ef35 | ||
|
|
51db1db082 | ||
|
|
df7cb13525 | ||
|
|
3d11230259 | ||
|
|
d93eb21c7c | ||
|
|
653cc07b51 | ||
|
|
7a5b2bea86 | ||
|
|
a403188f92 | ||
|
|
82b2230527 | ||
|
|
a8a004987c | ||
|
|
0e36019977 | ||
|
|
354c3ace73 | ||
|
|
3eba9b0ebc | ||
|
|
544346a6c8 | ||
|
|
52129c0b0b | ||
|
|
5f18f1b4c5 | ||
|
|
1b061845d7 | ||
|
|
a52877a2f1 | ||
|
|
3ad82e4707 | ||
|
|
71cbb0f128 | ||
|
|
cdd7c3ce92 | ||
|
|
b82030e90a | ||
|
|
ce59bb8bd0 | ||
|
|
c1497b4d19 | ||
|
|
deecc4bede | ||
|
|
b2ed462934 | ||
|
|
bb766a0ad6 | ||
|
|
b65f851318 | ||
|
|
35bf35411c | ||
|
|
86cd2530db | ||
|
|
54fbc77dc8 | ||
|
|
3d85776a09 | ||
|
|
9e09eebf94 | ||
|
|
45a2f93906 | ||
|
|
6982c0da4e | ||
|
|
b7727ee616 | ||
|
|
f0446ca8d7 | ||
|
|
6bc847e49e | ||
|
|
ec578380c9 | ||
|
|
3f1c4e49a3 | ||
|
|
8dccbdfc5b | ||
|
|
904de6e4f5 | ||
|
|
37a7cd1a11 | ||
|
|
65ce21da9a | ||
|
|
3a2d9c4dd0 | ||
|
|
e51d1321fc | ||
|
|
b9fdb3eb99 | ||
|
|
d66ace9da5 | ||
|
|
db75357110 | ||
|
|
0713f8abe6 | ||
|
|
93d9121a77 | ||
|
|
92dad6cc84 | ||
|
|
61454a9f8c | ||
|
|
bb2297a41d | ||
|
|
75e98d0563 | ||
|
|
e9eb000c53 | ||
|
|
1ba01caaa3 | ||
|
|
5cd6571fae | ||
|
|
6383bbe525 | ||
|
|
06da6e4977 | ||
|
|
b72faddc47 | ||
|
|
d92f0bb6e9 | ||
|
|
710e5d5639 | ||
|
|
6da980e2b5 | ||
|
|
7ea0acc3ef | ||
|
|
37f599bcec | ||
|
|
8408f4fbc7 | ||
|
|
534164ef90 | ||
|
|
dd186f600d | ||
|
|
e32c852e1e | ||
|
|
dbfc0f8c2b | ||
|
|
3728974460 | ||
|
|
fdc2bbcacb | ||
|
|
c2a3358b60 | ||
|
|
882e891284 | ||
|
|
05bbf78afd | ||
|
|
99ecb90a99 | ||
|
|
dbad169019 | ||
|
|
3ba5d1cf2e | ||
|
|
be2e2c3297 | ||
|
|
ed0015284b | ||
|
|
6d03b73e35 | ||
|
|
622d3d3592 | ||
|
|
0e06354402 | ||
|
|
62c271610b | ||
|
|
01fc70323f | ||
|
|
db089ad60d | ||
|
|
03a70bad4f | ||
|
|
1f0c9ad7e1 | ||
|
|
7146221bbe | ||
|
|
06efc222f9 | ||
|
|
de3333bae4 | ||
|
|
80a8d1406b | ||
|
|
924875e53b | ||
|
|
1a76a85c93 | ||
|
|
cf1b34ad34 | ||
|
|
3a64458217 | ||
|
|
ea71c22731 | ||
|
|
dc706cd35f | ||
|
|
1241126adf | ||
|
|
19da130053 | ||
|
|
44d4b684f9 | ||
|
|
a75b191502 | ||
|
|
e5cb260365 | ||
|
|
746142d672 | ||
|
|
6aecef815c | ||
|
|
475e21bc7b | ||
|
|
5204726bfe | ||
|
|
daba492c3a | ||
|
|
27f3a1bd9c | ||
|
|
24cff6ced5 | ||
|
|
ac7b42610f | ||
|
|
b1a810571c | ||
|
|
7abe76e1bd | ||
|
|
7bc03ded12 | ||
|
|
ea3b8af50a | ||
|
|
c6719ffb77 | ||
|
|
badb910f3c | ||
|
|
3866752e7e | ||
|
|
3e3dac9f97 | ||
|
|
16fdf5b904 | ||
|
|
d2cfefc892 | ||
|
|
397ba0f08a | ||
|
|
07ad8f5d17 | ||
|
|
47c3448a97 | ||
|
|
71ff177754 | ||
|
|
5b6051067a | ||
|
|
4db48ec0bd | ||
|
|
c518ade1fd | ||
|
|
acdf4afb91 | ||
|
|
c0bee3c8d6 | ||
|
|
6d3dec92fb | ||
|
|
79e29dca65 | ||
|
|
04bdca29d7 | ||
|
|
2d3b6a5be7 | ||
|
|
81d1998e09 | ||
|
|
6b46ca135a | ||
|
|
7ca6deef3f | ||
|
|
fa293e4e4b | ||
|
|
026dad0f3b | ||
|
|
24cbf3efc6 | ||
|
|
534a1ed0cb | ||
|
|
ee306a1332 | ||
|
|
45442167b0 | ||
|
|
131645ecce | ||
|
|
f1ca5f5b89 | ||
|
|
e452de9d87 | ||
|
|
6b99c692d0 | ||
|
|
a0256f462a | ||
|
|
82d5d46c14 | ||
|
|
0665dd6852 | ||
|
|
98fc09b18a | ||
|
|
192ebef8cf | ||
|
|
b01ab14338 | ||
|
|
2a96235bf7 | ||
|
|
1cf9bf00f4 | ||
|
|
a5224c3420 | ||
|
|
af436bc158 | ||
|
|
ab603c6987 | ||
|
|
04d9784d17 | ||
|
|
9c11a0e541 | ||
|
|
8de83bf876 | ||
|
|
679df234b7 | ||
|
|
26eaab0990 | ||
|
|
7be96d7c9f | ||
|
|
d11493934c | ||
|
|
c62da732a4 | ||
|
|
bcfca923d4 | ||
|
|
a1a63a4239 | ||
|
|
103a434386 | ||
|
|
567671e291 | ||
|
|
d8a750ee7f | ||
|
|
9c10b2c8d3 | ||
|
|
56a106115f | ||
|
|
e9ad0d2c31 | ||
|
|
97639f0d73 | ||
|
|
e3a4f8b84c | ||
|
|
7e99812432 | ||
|
|
2a1ef75435 | ||
|
|
c148d70978 | ||
|
|
0410b6c50b | ||
|
|
483c4e0682 | ||
|
|
7b6055d1af | ||
|
|
f31b12503e | ||
|
|
f82197ad75 | ||
|
|
3f37e73bae | ||
|
|
0774f470d9 | ||
|
|
d7a9e91688 | ||
|
|
601cb9be20 | ||
|
|
de61328615 | ||
|
|
f3229ee19a | ||
|
|
219a3580b7 | ||
|
|
d63c6bd397 | ||
|
|
fdb61e583a | ||
|
|
b8e2f83ae6 | ||
|
|
731e14031c | ||
|
|
93dbd83570 | ||
|
|
5be022712a | ||
|
|
93074b2509 | ||
|
|
43f9391bcc | ||
|
|
c1c971654b | ||
|
|
72b1072fbd | ||
|
|
3bfd99bfbb | ||
|
|
a169e82065 | ||
|
|
c80410c50c | ||
|
|
dc01b6b1f2 | ||
|
|
b7a26e6daf | ||
|
|
ce16450a89 | ||
|
|
9d2e51c199 | ||
|
|
1498ad74bb | ||
|
|
1e325f6149 | ||
|
|
e319a89f84 | ||
|
|
9fa5786340 | ||
|
|
c458a33196 | ||
|
|
7953b8ff1b | ||
|
|
b1460627f3 | ||
|
|
5abc8ae6f9 | ||
|
|
6a184a6098 | ||
|
|
3d5e97f560 | ||
|
|
54c7559a7e | ||
|
|
0c9de428ae | ||
|
|
f13def508c | ||
|
|
1ae6ddac91 | ||
|
|
55dcfa421c | ||
|
|
c04f8cf44a | ||
|
|
870d986131 | ||
|
|
4f272c17f5 | ||
|
|
fd3e027faa | ||
|
|
235dd0a22a | ||
|
|
b589977b9e | ||
|
|
291e4a6ebe | ||
|
|
2d2ed9dffd | ||
|
|
8ada6e7705 | ||
|
|
7f657f342a | ||
|
|
20e8f0ee27 | ||
|
|
429266b7e4 | ||
|
|
2c7bc88d78 | ||
|
|
54f7ebe789 | ||
|
|
dd499e74de | ||
|
|
19a6e8b32c | ||
|
|
ed5538dc2b | ||
|
|
b8ffcf49ed | ||
|
|
eb929eef14 | ||
|
|
2cd3ad9bdd | ||
|
|
323f289c48 | ||
|
|
a45e4a5537 | ||
|
|
b7fe2f9675 | ||
|
|
6dcd1c9109 | ||
|
|
2fe5adc36c | ||
|
|
839590f576 | ||
|
|
e0a8d1f94e | ||
|
|
9ad0f6812f | ||
|
|
a3376fe8fc | ||
|
|
1b822decb8 | ||
|
|
3cc1f498a1 | ||
|
|
c6c0035ea5 | ||
|
|
531d630b5c | ||
|
|
853b1eb424 | ||
|
|
09a2615fb2 | ||
|
|
dab4c2824f | ||
|
|
285b42756a | ||
|
|
508f15cdab | ||
|
|
52c0d30078 | ||
|
|
10997ee8ab | ||
|
|
8a774dc9a6 | ||
|
|
200bc9e3e8 | ||
|
|
7dd0ee0495 | ||
|
|
76569fc662 | ||
|
|
f2a253e0dd | ||
|
|
19352b794d | ||
|
|
0ad0eaf61c | ||
|
|
8746ee311e | ||
|
|
47b0f48dd9 | ||
|
|
e90323844f | ||
|
|
44e48abc44 | ||
|
|
f420de027f | ||
|
|
630c1aedd2 | ||
|
|
ecf186065c | ||
|
|
a650df440b | ||
|
|
20e021bf41 | ||
|
|
afd7b5affe | ||
|
|
8ca2ae775d | ||
|
|
ee8aa8217a | ||
|
|
38c3436577 | ||
|
|
2b49dd1e8f | ||
|
|
30a54b9085 | ||
|
|
1e7e62f8cd | ||
|
|
5352823fbf | ||
|
|
7e9547e126 | ||
|
|
20251f01ea | ||
|
|
528f6b81db | ||
|
|
27bfba299e | ||
|
|
1690863acc | ||
|
|
397211323c | ||
|
|
a87f50fb5a | ||
|
|
83583e9479 | ||
|
|
31bc51c8cf | ||
|
|
41d208db79 | ||
|
|
be487c429e | ||
|
|
9a1c40049e | ||
|
|
80340f1fe9 | ||
|
|
d918f85146 | ||
|
|
a95541d61e | ||
|
|
30b4c2724e | ||
|
|
2adc929367 | ||
|
|
7e97837274 | ||
|
|
4cb73bf8e4 | ||
|
|
79bb8d0077 | ||
|
|
6c1a3e4f58 | ||
|
|
39bed15e53 | ||
|
|
76c919c1a3 | ||
|
|
4b04466f14 | ||
|
|
2474b596ad | ||
|
|
98405f240b | ||
|
|
181355616e | ||
|
|
b49a5b2dc0 | ||
|
|
a890c4e9bb | ||
|
|
713f226114 | ||
|
|
d57d85ff35 | ||
|
|
c62ddfbb6e | ||
|
|
74daa124c2 | ||
|
|
b8e35bd66e | ||
|
|
e8734731d3 | ||
|
|
9e0fcabeca | ||
|
|
6482dec1bb | ||
|
|
81b5eeed6a | ||
|
|
365359dd79 | ||
|
|
2757be06de | ||
|
|
d0afe49d3e | ||
|
|
81b31b7087 | ||
|
|
2643b122fc | ||
|
|
88db657ac2 | ||
|
|
1f0af2c073 | ||
|
|
2ed2d1515e | ||
|
|
bb5b16a36c | ||
|
|
8b9351cf61 | ||
|
|
5892855c5f | ||
|
|
b23f1df65f | ||
|
|
a6e859e9ec | ||
|
|
99c65cef0f | ||
|
|
496da8b918 | ||
|
|
739862384c | ||
|
|
0a647c2b8b | ||
|
|
429e4f0de8 | ||
|
|
2d10c7156c | ||
|
|
299053becd | ||
|
|
1449bda052 | ||
|
|
56bb1a7c83 | ||
|
|
96aaf806d8 | ||
|
|
d70e5100c0 | ||
|
|
4831e626aa | ||
|
|
f05735c8c9 | ||
|
|
33ab4699ba | ||
|
|
595cc5b4b8 | ||
|
|
29fb08c2de | ||
|
|
7babdf2029 | ||
|
|
42f310f596 | ||
|
|
4b3270f78e | ||
|
|
3351b8d007 | ||
|
|
4b49bf6a93 | ||
|
|
926a56bfe3 | ||
|
|
d6f188be71 | ||
|
|
016cadfb54 | ||
|
|
bdee69f718 | ||
|
|
77c6edc1d1 | ||
|
|
ff43e2e155 | ||
|
|
f53948856e | ||
|
|
14056ee2ee | ||
|
|
b545dc6775 | ||
|
|
027902999e | ||
|
|
9a310a5d4e | ||
|
|
a63d5eaab2 | ||
|
|
6af59bc095 | ||
|
|
99bd4baa54 | ||
|
|
24cc290b85 | ||
|
|
c8913d8e8a | ||
|
|
8e264a933f | ||
|
|
3c836ff0f8 | ||
|
|
f0b54fefe9 | ||
|
|
a956392145 | ||
|
|
cf2d9e09b3 | ||
|
|
d02408ad8a | ||
|
|
4760dc31c9 | ||
|
|
7ae551fd03 | ||
|
|
c2e45f6ddf | ||
|
|
f9a4ad4fa6 | ||
|
|
10645a4f13 | ||
|
|
06cb0353e5 | ||
|
|
b41f836e5f | ||
|
|
26a81abffc | ||
|
|
ab03b0df4c | ||
|
|
e5a77633cf | ||
|
|
6f8a82c7af | ||
|
|
7a7f47ea80 | ||
|
|
0ce5f3e4f5 | ||
|
|
21023745e2 | ||
|
|
a679116f6f | ||
|
|
3988bb34aa | ||
|
|
9e78e6c3f8 | ||
|
|
3caff6092a | ||
|
|
0d96bf8950 | ||
|
|
91dc71f98d | ||
|
|
b7b6c047ca | ||
|
|
5fde80cd56 | ||
|
|
0ea659475c | ||
|
|
1e20bb0648 | ||
|
|
c962479bdf | ||
|
|
b31ccc362c | ||
|
|
0cd5866726 | ||
|
|
2a8a10eda6 | ||
|
|
f11bc84080 | ||
|
|
e2f3ae1252 | ||
|
|
40fcda292f | ||
|
|
59bc3126c5 | ||
|
|
4d6115a5cc | ||
|
|
ecacb136c5 | ||
|
|
3a25b96caf | ||
|
|
db17ecdae3 | ||
|
|
6e6d04e29a | ||
|
|
48ff225300 | ||
|
|
a4a9d97a3e | ||
|
|
404f952aa3 | ||
|
|
dcd87618ab | ||
|
|
d54bf14559 | ||
|
|
ea3a429efe | ||
|
|
e3f1223fe4 | ||
|
|
7ef6e3fe2f | ||
|
|
ee718b2c22 | ||
|
|
197322455d | ||
|
|
4f19a0672b | ||
|
|
514481f686 | ||
|
|
854e076df8 | ||
|
|
b089e64654 | ||
|
|
3c1f0ccbf4 | ||
|
|
c5e00a3ee2 | ||
|
|
cb2a0e1319 | ||
|
|
26c329cd84 | ||
|
|
638b0d4277 | ||
|
|
f2346808de | ||
|
|
d349c5f8fd | ||
|
|
d7818facb9 | ||
|
|
bcf95a2183 | ||
|
|
3a11466381 | ||
|
|
f7181a9179 | ||
|
|
9237ba8b66 | ||
|
|
95874603b0 | ||
|
|
ed2e24d564 | ||
|
|
c9fd77e9dd | ||
|
|
a9d2bc4902 | ||
|
|
5c4c4c2b90 | ||
|
|
ec11fa2159 | ||
|
|
c3bdbcf639 | ||
|
|
d9a770e6ea | ||
|
|
35feed50f0 | ||
|
|
a116afa42e | ||
|
|
c4365acc48 | ||
|
|
b4542fb307 | ||
|
|
1f224bf029 | ||
|
|
4d231b4359 | ||
|
|
ac0f1d0b14 | ||
|
|
124d8cf701 | ||
|
|
7d0d0996aa | ||
|
|
9cddbf14db | ||
|
|
5f1fddbbe7 | ||
|
|
027e257b1d | ||
|
|
c29dbb9562 | ||
|
|
93f117003e | ||
|
|
42748c084e | ||
|
|
77dd9c1850 | ||
|
|
cb1c1555fa | ||
|
|
fa528639e3 | ||
|
|
092ab05aef | ||
|
|
4f647957c5 | ||
|
|
4424a12c43 | ||
|
|
83d968df60 | ||
|
|
4ac881ede3 | ||
|
|
ccd2cd3e64 | ||
|
|
592f5c5797 | ||
|
|
14ba311676 | ||
|
|
b9a96c0134 | ||
|
|
6186ef9338 | ||
|
|
6bcac6e578 | ||
|
|
75c3c831db | ||
|
|
967d95f096 | ||
|
|
26c7750827 | ||
|
|
5a16d270ab | ||
|
|
385af2e9ec | ||
|
|
3c43aa1b82 | ||
|
|
3a465d5ec9 | ||
|
|
dea0f7dd0d | ||
|
|
413a4a0461 | ||
|
|
a95d2c5133 | ||
|
|
1876cc32ae | ||
|
|
9a22ce66c9 | ||
|
|
72cd659df6 | ||
|
|
4e2a08ddd4 | ||
|
|
61e2c34a10 | ||
|
|
58eef36b4d | ||
|
|
e56b54a376 | ||
|
|
79311176b2 | ||
|
|
0da945bb20 | ||
|
|
69443d0da0 | ||
|
|
e4dc18d7e5 | ||
|
|
3f86a2b147 | ||
|
|
fd664b9fc6 | ||
|
|
88f59f6152 | ||
|
|
722ca2781c | ||
|
|
1c72eebf89 | ||
|
|
69ce8bb952 | ||
|
|
50b8ba0201 | ||
|
|
e32578847c | ||
|
|
c9fd9152bd | ||
|
|
323fd27435 | ||
|
|
f891abccf2 | ||
|
|
e2effdbc6b | ||
|
|
fcc88e4915 | ||
|
|
86cb01870c | ||
|
|
b10ae320f7 | ||
|
|
19086ef67b | ||
|
|
ce3fc3956d | ||
|
|
787f25ab42 | ||
|
|
85794e5556 | ||
|
|
7f950bd8a2 | ||
|
|
5d3ab9b096 | ||
|
|
bf7b0d2d2b | ||
|
|
4fea8145e2 | ||
|
|
83c4e75be9 | ||
|
|
884e26080f | ||
|
|
9946491fcc | ||
|
|
e5f3be2bbb | ||
|
|
fbca4281c8 | ||
|
|
a858b8036c | ||
|
|
d2be2fb241 | ||
|
|
4855eb75a7 | ||
|
|
ae6dfff5bf | ||
|
|
307bf4dae2 | ||
|
|
96d65fc022 | ||
|
|
b1f88ec4e2 | ||
|
|
080b8cadfa | ||
|
|
44924fb2b4 | ||
|
|
7cdd2aa128 | ||
|
|
0e810cf6b0 | ||
|
|
7d7672f119 | ||
|
|
6a5b52efa0 | ||
|
|
1777e3fd5e | ||
|
|
6d864b7030 | ||
|
|
509ca689b0 | ||
|
|
3a1dbce19d | ||
|
|
71a39dd4be | ||
|
|
500230ee94 | ||
|
|
347177e052 | ||
|
|
b7883fbb6e | ||
|
|
10f2bf6d81 | ||
|
|
1714c07164 | ||
|
|
a77e023ab4 | ||
|
|
4cc3d1728f | ||
|
|
812cb5638c | ||
|
|
3ae82255a9 | ||
|
|
9bcab53f49 | ||
|
|
77a0f1d727 | ||
|
|
b9a18f3b8d | ||
|
|
ae17135ab5 | ||
|
|
73aeb61c3f | ||
|
|
3041903844 | ||
|
|
1f6b757ae9 | ||
|
|
ad8ee98617 | ||
|
|
a496f45f22 | ||
|
|
bc29d0e5d4 | ||
|
|
3485cdb98e | ||
|
|
3e3f04d4b7 | ||
|
|
879d230da3 | ||
|
|
2006dd12d6 | ||
|
|
f89aebb1c4 | ||
|
|
744b9066e2 | ||
|
|
1e01dbfbb2 | ||
|
|
6ebcd441d6 | ||
|
|
ea09a504ef | ||
|
|
2e3b3c7be5 | ||
|
|
93389c86ca | ||
|
|
8d82218269 | ||
|
|
1d7fb4f0c5 | ||
|
|
81a6c7817f | ||
|
|
a8e738f9ad | ||
|
|
bdcb9321ca | ||
|
|
d239b734e1 | ||
|
|
d91722f8e0 | ||
|
|
b6282a2004 | ||
|
|
f14aa30118 | ||
|
|
a4c1a7e317 | ||
|
|
5238fccc15 | ||
|
|
b222cf0624 | ||
|
|
68b08abb14 | ||
|
|
cee3fffab5 | ||
|
|
fba9046490 | ||
|
|
d1d8608464 | ||
|
|
19d2a20a7f | ||
|
|
8a2908a24a | ||
|
|
e8b12f7a6f | ||
|
|
271da5a2e0 | ||
|
|
26fbabf3d1 | ||
|
|
37cdcb4d8a | ||
|
|
57b6534e53 | ||
|
|
8bf49ea170 | ||
|
|
02ee8626fb | ||
|
|
0bf5d40787 | ||
|
|
6276e5b41b | ||
|
|
757d479536 | ||
|
|
74c9ace6f0 | ||
|
|
51740b12ae | ||
|
|
cfb8afc558 | ||
|
|
6e6783056e | ||
|
|
791bd0cd2b | ||
|
|
e890dcdb19 | ||
|
|
e8acf5c6f8 | ||
|
|
d5864a1dcb | ||
|
|
5ddcb8664a | ||
|
|
9f56705f96 | ||
|
|
7b5b22af5a | ||
|
|
09c4b4e0b7 | ||
|
|
00ecca84a8 | ||
|
|
368101778e | ||
|
|
535d79da63 | ||
|
|
4f69172d25 | ||
|
|
38c3b405c8 | ||
|
|
e486ec5e0e | ||
|
|
eb272ac0b0 | ||
|
|
9f06ce19dd | ||
|
|
ba61b14f1d | ||
|
|
63c43dcc59 | ||
|
|
8562801137 | ||
|
|
5d8094143e | ||
|
|
5114966e00 | ||
|
|
bb6dcb54f9 | ||
|
|
eed7dd8d75 | ||
|
|
0a3ea5d34a | ||
|
|
a5e4c0bb9e | ||
|
|
70bddeda24 | ||
|
|
f66efab8f7 | ||
|
|
0caa1c11f8 | ||
|
|
c68f050647 | ||
|
|
d58eb72f25 | ||
|
|
11bfaf6cff | ||
|
|
68a54ab591 | ||
|
|
9693045170 | ||
|
|
cad4b840c8 | ||
|
|
37a92e9ce4 | ||
|
|
311e4e9253 | ||
|
|
1896ce3558 | ||
|
|
1874366208 | ||
|
|
0357422d14 | ||
|
|
18c497dffb | ||
|
|
15922ccdf6 | ||
|
|
5098bc92f8 | ||
|
|
a411eaa858 | ||
|
|
42b848bcf1 | ||
|
|
b670b1e3da | ||
|
|
d3ee37c5d9 | ||
|
|
a1c769a5f6 | ||
|
|
2c89d56a1d | ||
|
|
f51cf14b85 | ||
|
|
194dd04699 | ||
|
|
14f7ee4916 | ||
|
|
a29d78e90b | ||
|
|
5b054c6955 | ||
|
|
10654d3a74 | ||
|
|
6017e604f8 | ||
|
|
3837491174 | ||
|
|
86a921af06 | ||
|
|
616df35633 | ||
|
|
e44fcedadf | ||
|
|
6f8f443170 | ||
|
|
d18af3f37e | ||
|
|
48fe4d6233 | ||
|
|
7b8250053b | ||
|
|
251cb4cfed | ||
|
|
24a93e6cdd | ||
|
|
142e22641e | ||
|
|
40e15f9d78 | ||
|
|
b4f682d32f | ||
|
|
83d0e5e512 | ||
|
|
4e20b1a656 | ||
|
|
cc5ba6a7b6 | ||
|
|
0396479dec | ||
|
|
b9cc6148f4 | ||
|
|
e34cfcf7e1 | ||
|
|
c6a15854ee | ||
|
|
1358835050 | ||
|
|
754d494bef | ||
|
|
42909e3968 | ||
|
|
ba41d8a556 | ||
|
|
c108108028 | ||
|
|
5451e0d924 | ||
|
|
f46a878e3f | ||
|
|
fac683684b | ||
|
|
4ea3855514 | ||
|
|
20a9b1a7cf | ||
|
|
156e85578d | ||
|
|
b28ec12420 | ||
|
|
bb62a8b0c5 | ||
|
|
a75d8bebd2 | ||
|
|
f51fee66ad | ||
|
|
b72ff47037 | ||
|
|
a2b03690a8 | ||
|
|
abb48d5a5f | ||
|
|
0e99546424 | ||
|
|
bd9e2e4c53 | ||
|
|
5fb0aa6487 | ||
|
|
ff612904d2 | ||
|
|
9c3cbe5d7f | ||
|
|
429cf462d0 | ||
|
|
c62b26fdc6 | ||
|
|
e0a9ba9c3c | ||
|
|
2dc769a1c1 | ||
|
|
4f98cbabde | ||
|
|
98499135d7 | ||
|
|
3285076c8e | ||
|
|
3b4cfea688 | ||
|
|
de10f6900d | ||
|
|
adfe54b7be | ||
|
|
b576337e8b | ||
|
|
4de633dd5f | ||
|
|
91f29a38a0 | ||
|
|
1d5bd6cf71 | ||
|
|
226cc7ded4 | ||
|
|
e869d4bd32 | ||
|
|
60428dbf0a | ||
|
|
70d70a3c81 | ||
|
|
f1f25544e0 | ||
|
|
2e0db07627 | ||
|
|
58fc62296f | ||
|
|
df9cc1535e | ||
|
|
c4b36ff474 | ||
|
|
f418f8c17c | ||
|
|
5277d7cb7c | ||
|
|
0657bf9c14 | ||
|
|
5b438e9b0f | ||
|
|
7b4c588f58 | ||
|
|
1d00800e88 | ||
|
|
774530f412 | ||
|
|
fb171e534e | ||
|
|
7d7db13e67 | ||
|
|
45abac85a9 | ||
|
|
24b8dc9a55 | ||
|
|
d8c79c7f72 | ||
|
|
3a12ce0137 | ||
|
|
9bd35f6376 | ||
|
|
62763f682b | ||
|
|
38e3c5815c | ||
|
|
f8fe20e0d9 | ||
|
|
65e8167079 | ||
|
|
3e0d891828 | ||
|
|
757a8b4621 | ||
|
|
5cac59b6c1 | ||
|
|
bad4058574 | ||
|
|
d8c2adae57 | ||
|
|
786e0c2424 | ||
|
|
794103d285 | ||
|
|
c454dbcd32 | ||
|
|
f3a3106807 | ||
|
|
62dc5aad06 | ||
|
|
45ecfb1973 | ||
|
|
1c85e93c7c | ||
|
|
95d334f2db | ||
|
|
f23478c314 | ||
|
|
3d2e469cfa | ||
|
|
bf401a2aef | ||
|
|
98486a9310 | ||
|
|
06a2b07bb0 | ||
|
|
8700e7b3cf | ||
|
|
7f19d42e9d | ||
|
|
d7bbd31efe | ||
|
|
fafc7f9875 | ||
|
|
d88a26c489 | ||
|
|
64b48877fa | ||
|
|
b31cc2d9f7 | ||
|
|
4910cbf6db | ||
|
|
f196522159 | ||
|
|
75090e0365 | ||
|
|
4ff18c8c3e | ||
|
|
db4a465974 | ||
|
|
3cdc8ad07a | ||
|
|
6676457bba | ||
|
|
ad45ed9f5c | ||
|
|
2c1571b4ff | ||
|
|
6767a53669 | ||
|
|
ba93fd6a38 | ||
|
|
d7c06e9ec7 | ||
|
|
386828d029 | ||
|
|
d339187b1a | ||
|
|
61fca8b69b | ||
|
|
bb5ea36b96 | ||
|
|
e3a9164073 | ||
|
|
f85c9904c6 | ||
|
|
48bf4aae24 | ||
|
|
6231576088 | ||
|
|
4270144b39 | ||
|
|
5031a89dc3 | ||
|
|
bbd1c84e6e | ||
|
|
a2cf08cc23 | ||
|
|
32828e6ffd | ||
|
|
d3a73875e2 | ||
|
|
41d2a336ee | ||
|
|
627774fd87 | ||
|
|
a5bc1e8568 | ||
|
|
c38171ba1f | ||
|
|
bb3ee8e75d | ||
|
|
32654e792b | ||
|
|
19f2192136 | ||
|
|
1961b327eb | ||
|
|
2ae87d465e | ||
|
|
e3ef8d2e6b | ||
|
|
65a87c7d01 | ||
|
|
72e3c20c14 | ||
|
|
ec0f19597e | ||
|
|
fa2b8db499 | ||
|
|
1aa0d94781 | ||
|
|
dc644fe229 | ||
|
|
47ddf355b4 | ||
|
|
a39ded513a | ||
|
|
941181ec0f | ||
|
|
d399fdf877 | ||
|
|
487550b61d | ||
|
|
35618bf6ad | ||
|
|
460fe31f0c | ||
|
|
14565bedaf | ||
|
|
02cc82ff8a | ||
|
|
38f3b3e29c | ||
|
|
4dc719fc37 | ||
|
|
48f2ef8d00 | ||
|
|
be1bd9239f | ||
|
|
b8feddae71 | ||
|
|
a9daa46758 | ||
|
|
569afce4b0 | ||
|
|
a9aa3d580c | ||
|
|
56a6ccc84f | ||
|
|
03c4d82fa1 | ||
|
|
7ab1a39181 | ||
|
|
56dde3ebe6 | ||
|
|
6525ced540 | ||
|
|
32d0ad41a4 | ||
|
|
e28e42a549 | ||
|
|
ff055b5c89 | ||
|
|
0069dbc4a5 | ||
|
|
d8770f3ece | ||
|
|
4981372d03 | ||
|
|
3ebac273f5 | ||
|
|
5af18f65f4 | ||
|
|
a9b34991d9 | ||
|
|
ac90362581 | ||
|
|
6d82a20624 | ||
|
|
bc36ee6227 | ||
|
|
f2bc668429 | ||
|
|
8120813066 | ||
|
|
7242cd8f8f | ||
|
|
12c2fe8d53 | ||
|
|
28143c66e1 | ||
|
|
6c66fcba5f | ||
|
|
335c4f0966 | ||
|
|
faa624f9f9 | ||
|
|
5003a61b9f | ||
|
|
15ed15d3e4 | ||
|
|
7bd51947e5 | ||
|
|
4901b41653 | ||
|
|
54f7c8571f | ||
|
|
74cd365b03 | ||
|
|
2affbab9fc | ||
|
|
cf1b7d9664 | ||
|
|
649c5a2b09 | ||
|
|
07247321c6 | ||
|
|
0c43540433 | ||
|
|
acba75c59d | ||
|
|
267a1927eb | ||
|
|
b0c8638650 | ||
|
|
b36c170d1b | ||
|
|
934397ec66 | ||
|
|
0f8631495d | ||
|
|
b6fefec364 | ||
|
|
95ffe86dbc | ||
|
|
87b79c3ef3 | ||
|
|
2bf1c86d05 | ||
|
|
52d160d85d | ||
|
|
2147cd3540 | ||
|
|
54ff1e6ae5 | ||
|
|
a6b7ffddac | ||
|
|
6a0fb6083c | ||
|
|
f30d34f3a8 | ||
|
|
84a2173797 | ||
|
|
0dbfc1da4a | ||
|
|
52b621db88 | ||
|
|
a6ed5dd674 | ||
|
|
1417f2dccb | ||
|
|
f2e5ca84d4 | ||
|
|
36fafffae2 | ||
|
|
cdc7b8cc60 | ||
|
|
f945040633 | ||
|
|
720235eeec | ||
|
|
8b8e03dc66 | ||
|
|
56ec43a0dd | ||
|
|
8e495e4ac7 | ||
|
|
2afbd6fa08 | ||
|
|
74ac7455c5 | ||
|
|
166850e315 | ||
|
|
f282ca7413 | ||
|
|
67c1801924 | ||
|
|
46a58ab946 | ||
|
|
94fcd01349 | ||
|
|
e15abbc69f | ||
|
|
c6b523d3dd | ||
|
|
9a04387362 | ||
|
|
282d8b1c38 | ||
|
|
1e376e41a2 | ||
|
|
dc931b1fca | ||
|
|
41ecaba97e | ||
|
|
96dfab9e0e | ||
|
|
1b65ce7db3 | ||
|
|
7fcb1de839 | ||
|
|
49b02a2d77 | ||
|
|
7b9cb4a224 | ||
|
|
bc2dfde4b3 | ||
|
|
ec9dc137e7 | ||
|
|
620cea37e0 | ||
|
|
c15e036398 | ||
|
|
ccb08f98ae | ||
|
|
418a0d151e | ||
|
|
e306892994 | ||
|
|
836f996010 | ||
|
|
1613c4d3bf | ||
|
|
7b0cb7f08d | ||
|
|
b5f6d9dc6e | ||
|
|
c063f2c5ec | ||
|
|
c47c619680 | ||
|
|
93cd57a578 | ||
|
|
1c08c320c5 | ||
|
|
49ce63cd7c | ||
|
|
b3f2e399d2 | ||
|
|
8c950429a9 | ||
|
|
c2bf70a27c | ||
|
|
9235adbf47 | ||
|
|
452b34a770 | ||
|
|
a71b5abfa4 | ||
|
|
928cc3a6de | ||
|
|
466e4249ab | ||
|
|
6bdb723259 | ||
|
|
9fbc45b159 | ||
|
|
792e2ce7f4 | ||
|
|
31a74acfd3 | ||
|
|
3952584571 | ||
|
|
d82242169b | ||
|
|
a0707e6170 | ||
|
|
a5d2acfc79 | ||
|
|
07fc72fea1 | ||
|
|
35ed8cb8b6 | ||
|
|
7edc5ed90a | ||
|
|
420125f996 | ||
|
|
813c7c415b | ||
|
|
38b3a46ffa | ||
|
|
57e7d3ce15 | ||
|
|
a8ebe4697e | ||
|
|
60b3b2c9d0 | ||
|
|
deb2c1a1c5 | ||
|
|
d4219c485b | ||
|
|
73fc98a7bf | ||
|
|
259810e05b | ||
|
|
171cc53a96 | ||
|
|
9eea2be6f1 | ||
|
|
c7410f2693 | ||
|
|
69a03c1799 | ||
|
|
43a5e1409e | ||
|
|
4327aae816 | ||
|
|
741a9690df | ||
|
|
cd4fad5488 | ||
|
|
28b1bceb2f | ||
|
|
e24e40657f | ||
|
|
448361a86c | ||
|
|
26e083ccb7 | ||
|
|
4978361212 | ||
|
|
247c1361f3 | ||
|
|
1618bc7921 | ||
|
|
1b843d3c69 | ||
|
|
d4d76b9e83 | ||
|
|
e1fee47759 | ||
|
|
0bc6597d4d | ||
|
|
2b916952a8 | ||
|
|
02e4fbed3d | ||
|
|
88e9984da5 | ||
|
|
7403c34b0b | ||
|
|
dac1169e82 | ||
|
|
9022f2403b | ||
|
|
53ab745f7a | ||
|
|
08f3f07212 | ||
|
|
2bbe747045 | ||
|
|
55cd47ffb4 | ||
|
|
8cbceba610 | ||
|
|
88ce56f8c1 | ||
|
|
664d83bb23 | ||
|
|
2e1d669cba | ||
|
|
8cff6331c9 | ||
|
|
819d5cef08 | ||
|
|
e9cba65a99 | ||
|
|
cd6aa710b5 | ||
|
|
3b1f393ae7 | ||
|
|
903872d65e | ||
|
|
16a44ae7e9 | ||
|
|
739423fceb | ||
|
|
61433519af | ||
|
|
c032563a0a | ||
|
|
943f8a46a4 | ||
|
|
78f3a2aad7 | ||
|
|
b847024026 | ||
|
|
7a60df7dd3 | ||
|
|
50d5199120 | ||
|
|
9020b86250 | ||
|
|
de0b3ab7fb | ||
|
|
a342cc5a70 | ||
|
|
2b8d087ba1 | ||
|
|
67c3cf0675 | ||
|
|
9a875a3574 | ||
|
|
a43cf9fae9 | ||
|
|
eec6e53851 | ||
|
|
9ae9c221de | ||
|
|
4256650d68 | ||
|
|
9cd9ae3e3e | ||
|
|
ae0665b8f1 | ||
|
|
c4fd88f519 | ||
|
|
0a0a261d64 | ||
|
|
75802000c8 | ||
|
|
325ae88efb | ||
|
|
6610d4f3b9 | ||
|
|
a25b265d27 | ||
|
|
d0a8af61b1 | ||
|
|
e58d808a4c | ||
|
|
751b5e8ff2 | ||
|
|
36f74d60b3 | ||
|
|
9756da13dd | ||
|
|
70f74dd946 | ||
|
|
92fdeb37a0 | ||
|
|
893b76c544 | ||
|
|
b5a6f0a92d | ||
|
|
ba8e28248f | ||
|
|
bfcec27d61 | ||
|
|
8e8972bb68 | ||
|
|
ffac355834 | ||
|
|
57108f0ad5 | ||
|
|
73758d435b | ||
|
|
2e72fde15f | ||
|
|
90f63e8f83 | ||
|
|
e8af92fcb1 | ||
|
|
361ef5f4dc | ||
|
|
aa9be09088 | ||
|
|
b3466895e6 | ||
|
|
81f169e95c | ||
|
|
a068630a20 | ||
|
|
dfebac32c0 | ||
|
|
ab5db00717 | ||
|
|
8bcceacf34 | ||
|
|
6308af199d | ||
|
|
8e5b6314ef | ||
|
|
b4b1bdd5d3 | ||
|
|
5782ceb298 | ||
|
|
cc85ec447b | ||
|
|
c67cdb50d2 | ||
|
|
af5473c45a | ||
|
|
f2c46006e7 | ||
|
|
a5a4b34a5a | ||
|
|
69e42952e1 | ||
|
|
adf87b2df5 | ||
|
|
40753f760d | ||
|
|
d199858e89 | ||
|
|
10a2975a27 | ||
|
|
9b4dc8308f | ||
|
|
b93642c5cc | ||
|
|
a5435e8b29 | ||
|
|
72e2d9138c | ||
|
|
1dd080bca4 | ||
|
|
f648590991 | ||
|
|
a14280d41e | ||
|
|
91b842c972 | ||
|
|
eddf82a36a | ||
|
|
673b3fde82 | ||
|
|
a87e50a945 | ||
|
|
b62a0c4cab | ||
|
|
f99267cffc | ||
|
|
c06648f7f0 | ||
|
|
cd56182b41 | ||
|
|
65a22e8e4d | ||
|
|
5860ecb8ec | ||
|
|
cbf0f45f90 | ||
|
|
b2293b1e9b | ||
|
|
04e53c273f | ||
|
|
599c03530a | ||
|
|
56a67adb64 | ||
|
|
28e5428d5d | ||
|
|
3c91484052 | ||
|
|
98d517c5da | ||
|
|
18602745de | ||
|
|
ad2e032049 | ||
|
|
601140b363 | ||
|
|
e02cc10ea4 | ||
|
|
b5524a3ac3 | ||
|
|
0c61e299b3 | ||
|
|
0b33bc65cd | ||
|
|
0f5fa24a7c | ||
|
|
8e96183506 | ||
|
|
a8312c0e24 | ||
|
|
bf0d176e48 | ||
|
|
ec5add8784 | ||
|
|
856d456a71 | ||
|
|
7f2113a2d5 | ||
|
|
97f56446a3 | ||
|
|
5d92be8cc6 | ||
|
|
e102a3dcfd | ||
|
|
ecbe07817a | ||
|
|
71db02813c | ||
|
|
a6574c21eb | ||
|
|
26da3e65ac | ||
|
|
21cd437886 | ||
|
|
f09628e42f | ||
|
|
6f346c7115 | ||
|
|
d8ecc56c9d | ||
|
|
4e1209ebf8 | ||
|
|
78d3b819f0 | ||
|
|
200b24e391 | ||
|
|
1690c2b26e | ||
|
|
701adceb12 | ||
|
|
3f07fe09b5 | ||
|
|
f86c5c9ac7 | ||
|
|
66a0def81b | ||
|
|
73e92de577 | ||
|
|
09ab755c55 | ||
|
|
ec558b6548 | ||
|
|
037a9f9c1a | ||
|
|
799751bcff | ||
|
|
29e1fdf3f2 | ||
|
|
28ddfc61dc | ||
|
|
725c88879c | ||
|
|
beaea31a96 | ||
|
|
a9c3dc60b9 | ||
|
|
a0aae68cf6 | ||
|
|
57d2f21782 | ||
|
|
895959b736 | ||
|
|
3c07b4c2ee | ||
|
|
1cc0b0a66a | ||
|
|
beb23252a6 | ||
|
|
3ba25ee86a | ||
|
|
0be35f5c51 | ||
|
|
60f7492646 | ||
|
|
1456d1860e | ||
|
|
2fb0c899c6 | ||
|
|
5755cab49d | ||
|
|
975842f9fb | ||
|
|
73bc0cfd93 | ||
|
|
126fe085db | ||
|
|
cbfa030de7 | ||
|
|
123d24d600 | ||
|
|
bb617a9646 | ||
|
|
3880cd35ad | ||
|
|
7947f98b9b | ||
|
|
fc4868cb47 | ||
|
|
cb38052b3a | ||
|
|
f640ee90c3 | ||
|
|
09f4278d25 | ||
|
|
1f47ec53a2 | ||
|
|
959f67d6a4 | ||
|
|
b2e7419a1d | ||
|
|
6546fdfaf8 | ||
|
|
3a3ca1d474 | ||
|
|
7522254b48 | ||
|
|
f1a6a0d4dd | ||
|
|
9c67ab2f26 | ||
|
|
1a7b2d33f4 | ||
|
|
6e2dad1cc7 | ||
|
|
2c0d10123e | ||
|
|
3ac82faae5 | ||
|
|
c08523d862 | ||
|
|
137e601277 | ||
|
|
09f4bd2a39 | ||
|
|
2fc0d1f15e | ||
|
|
2a86064f95 | ||
|
|
016d7d250a | ||
|
|
2c15d426b9 | ||
|
|
bdcfe1d165 | ||
|
|
3b28dbce7e | ||
|
|
555a8493cd | ||
|
|
5a4fbc69c3 | ||
|
|
2452e013aa | ||
|
|
7e7c8952b5 | ||
|
|
de487514ae | ||
|
|
06db4253e2 | ||
|
|
4ce7894c4a | ||
|
|
36f554d43c | ||
|
|
8d28d5f81b | ||
|
|
53b407da84 | ||
|
|
765e531159 | ||
|
|
de282fe3ba | ||
|
|
36ac656a1b | ||
|
|
2aff7727f7 | ||
|
|
cc93ae3ef4 | ||
|
|
34d69d3b23 | ||
|
|
a29b1a3f0f | ||
|
|
daea0ff8a9 | ||
|
|
448701473a | ||
|
|
572f0017d5 | ||
|
|
df2c442a6d | ||
|
|
23e2947cc8 | ||
|
|
44b51ca36c | ||
|
|
bbf848ce8d | ||
|
|
d0fa136ce2 | ||
|
|
15156cce0e | ||
|
|
9d6b1ce644 | ||
|
|
66ebbb6a56 | ||
|
|
c5e48d8b01 | ||
|
|
8dea52fa42 | ||
|
|
f7356b677b | ||
|
|
80d89e6a6a | ||
|
|
bc5f2740d2 | ||
|
|
aa66eba7c8 | ||
|
|
f27b45d237 | ||
|
|
3bb4736289 | ||
|
|
bac685417a | ||
|
|
1a4d6400ae | ||
|
|
322006dcb1 | ||
|
|
db01d55671 | ||
|
|
0a52d38b31 | ||
|
|
902d1051b1 | ||
|
|
f67868ff4c | ||
|
|
a6576c56dd | ||
|
|
240f516939 | ||
|
|
ef8f14a882 | ||
|
|
aecb0b018f | ||
|
|
e4d56bab5b | ||
|
|
1435ccfba1 | ||
|
|
d766a23deb | ||
|
|
b1e21f8fac | ||
|
|
9347ba487c | ||
|
|
c28500900e | ||
|
|
e4c5391ddb | ||
|
|
0c34556cbd | ||
|
|
b50118ca3e | ||
|
|
a57ecb95f6 | ||
|
|
428a55a0fe | ||
|
|
cc74659fcc | ||
|
|
90e7ce363a | ||
|
|
a47b505e37 | ||
|
|
9f49524331 | ||
|
|
6a2347ee45 | ||
|
|
79370621ea | ||
|
|
e5164b7041 | ||
|
|
ebff44b83a | ||
|
|
c0e7c3aab9 | ||
|
|
733777275b | ||
|
|
f1919c3df9 | ||
|
|
97b1719583 | ||
|
|
b0dc680f71 | ||
|
|
addb309ad6 | ||
|
|
4c4f1ee4de | ||
|
|
152a689cf9 | ||
|
|
fe772376ec | ||
|
|
35a99b6380 | ||
|
|
dfa46e502d | ||
|
|
c21c35e6a4 | ||
|
|
b26f84cbbd | ||
|
|
0dba0613ea | ||
|
|
e0c875081e | ||
|
|
ea1b7fe6d4 | ||
|
|
db88223baa | ||
|
|
d29b63bc9b | ||
|
|
1946cd8bc2 | ||
|
|
111482cf2e | ||
|
|
52a1bab2d9 | ||
|
|
0826c85f4c | ||
|
|
385d81380c | ||
|
|
862e973b50 | ||
|
|
2efff10cfa | ||
|
|
33479d275a | ||
|
|
3e7a6396ed | ||
|
|
5a12df5c40 | ||
|
|
b5a25a430a | ||
|
|
592c784ffe | ||
|
|
99cf5acd5c | ||
|
|
17e757478a | ||
|
|
a023052580 | ||
|
|
4b757c830d | ||
|
|
9b7a552f4b | ||
|
|
8df788c97f | ||
|
|
12cfcc128c | ||
|
|
f9b3bff6f7 | ||
|
|
d2c38b1c73 | ||
|
|
fc2e05c2d5 | ||
|
|
b2993bdea1 | ||
|
|
470fa98f8a | ||
|
|
de6e207db6 | ||
|
|
1363155145 | ||
|
|
db5bda670f | ||
|
|
0ae485dc07 | ||
|
|
19cda70045 | ||
|
|
4751717cd8 | ||
|
|
bd68b6b1f6 | ||
|
|
cd9b7d7c35 | ||
|
|
058123afb6 | ||
|
|
a4614bf06d | ||
|
|
23f80f46a4 | ||
|
|
c4438dc0e5 | ||
|
|
04ca16890b | ||
|
|
20f88b9bd4 | ||
|
|
25439b76ad | ||
|
|
3465dd3853 | ||
|
|
ac445acf69 | ||
|
|
77ac92d00a | ||
|
|
73c2522c7c | ||
|
|
6b5d39e82d | ||
|
|
cd2eebfd64 | ||
|
|
06676624fc | ||
|
|
ef8b601789 | ||
|
|
01e62900c7 | ||
|
|
d50f1bdfac | ||
|
|
38b40c624c | ||
|
|
eb1f1b0a34 | ||
|
|
a9376dbff9 | ||
|
|
673d7ac121 | ||
|
|
14697d9d6d | ||
|
|
c6a926d9e2 | ||
|
|
c1db5bfc08 | ||
|
|
429b8162c6 | ||
|
|
0dd2254d76 | ||
|
|
03a0848922 | ||
|
|
9161672950 | ||
|
|
a08bcccc67 | ||
|
|
bdec3c5323 | ||
|
|
53d286797c | ||
|
|
b6cafbd7d8 | ||
|
|
499e167fda | ||
|
|
0135e33511 | ||
|
|
f2cc7559dd | ||
|
|
fe8686ba4b | ||
|
|
4aa69fe0b6 | ||
|
|
b984cd2b01 | ||
|
|
adcc64cd9e | ||
|
|
c94b6de017 | ||
|
|
666d437538 | ||
|
|
000e21779c | ||
|
|
f1d6f64c8e | ||
|
|
d79cab27a5 | ||
|
|
24b44446e2 | ||
|
|
87739b2c53 | ||
|
|
c782089611 | ||
|
|
265592b99a | ||
|
|
077ff61eef | ||
|
|
dcbd0d74d5 | ||
|
|
1ec0a3862e | ||
|
|
946cd9a540 | ||
|
|
0ac87024e3 | ||
|
|
7abe830501 | ||
|
|
5acaa49504 | ||
|
|
535b9b5724 | ||
|
|
78a0c1f18d | ||
|
|
6cc5e19d47 | ||
|
|
7e0c5264e7 | ||
|
|
73343ac38a | ||
|
|
d53d271728 | ||
|
|
37fc8c3747 | ||
|
|
01412ec600 | ||
|
|
c4f3542abf | ||
|
|
c799770060 | ||
|
|
cd26e6c79d | ||
|
|
4e773226f5 | ||
|
|
646d56956b | ||
|
|
0cc1115643 | ||
|
|
257341b5b4 | ||
|
|
83f2571782 | ||
|
|
baa257f1ed | ||
|
|
e06cc57118 | ||
|
|
0450d28759 | ||
|
|
7f56097c65 | ||
|
|
7396958515 | ||
|
|
3c758be86e | ||
|
|
227385b719 | ||
|
|
f7a059316f | ||
|
|
b1d6e3f551 | ||
|
|
db70a3fd6e | ||
|
|
28fd5c60de | ||
|
|
cbd48ba626 | ||
|
|
67d93e6f49 | ||
|
|
afb83c45e6 | ||
|
|
43fcc1b096 | ||
|
|
d5695a26a6 | ||
|
|
8bfc8f934f | ||
|
|
ef02b10a16 | ||
|
|
803e4e93d4 | ||
|
|
60b8607727 | ||
|
|
159564ae9f | ||
|
|
cd1bf28e2c | ||
|
|
74e10aa58b | ||
|
|
5f524accc1 | ||
|
|
451e60e99f | ||
|
|
89c16ab53e | ||
|
|
820aaa5fc5 | ||
|
|
993ea851f5 | ||
|
|
305db17b5f | ||
|
|
6a8ba34f9d | ||
|
|
f777408fc5 | ||
|
|
2984b0ae24 | ||
|
|
3d6001f7b9 | ||
|
|
f6a8898fc3 | ||
|
|
757e392d4e | ||
|
|
2f9f0c72de | ||
|
|
cb4ae6c0d3 | ||
|
|
359fd02fec | ||
|
|
e1a8ac495b | ||
|
|
0b5806b5f5 | ||
|
|
ccb9643f02 | ||
|
|
ddf72ed59f | ||
|
|
7f7b8d6871 | ||
|
|
bb7e632aef | ||
|
|
55d892e373 | ||
|
|
f971ccb264 | ||
|
|
a4aba800d9 | ||
|
|
669cefdd35 | ||
|
|
6502735b9c | ||
|
|
31a266cb93 | ||
|
|
b703bce788 | ||
|
|
0188a53d19 | ||
|
|
e7ce15846d | ||
|
|
1433ae4790 | ||
|
|
a506153219 | ||
|
|
bee4756251 | ||
|
|
b3f4fb1f72 | ||
|
|
38654b070d | ||
|
|
82c31e1496 | ||
|
|
4c3853abea | ||
|
|
5b88fe121d | ||
|
|
a46db6ecce | ||
|
|
f4d52a896e | ||
|
|
57b6a64eed | ||
|
|
c0a86cd5dd | ||
|
|
43cbb1e3dd | ||
|
|
2cb3c3b2bf | ||
|
|
24802a6d91 | ||
|
|
c125ea2767 | ||
|
|
df4fd356df | ||
|
|
1f1f23a882 | ||
|
|
ee4462d2b1 | ||
|
|
41faea737a | ||
|
|
7c69ce8bc0 | ||
|
|
eb3633164e | ||
|
|
a08d14fef4 | ||
|
|
b73ff18078 | ||
|
|
9beaae61ec |
805
CHANGES
805
CHANGES
@@ -2,117 +2,723 @@
|
|||||||
OpenSSL CHANGES
|
OpenSSL CHANGES
|
||||||
_______________
|
_______________
|
||||||
|
|
||||||
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
|
Changes between 0.9.6c and 0.9.6d [XX xxx XXXX]
|
||||||
|
|
||||||
*) Make DSO load along a path given through an environment variable
|
*) Check various X509_...() return values in apps/req.c.
|
||||||
(SHLIB_PATH) with shl_load().
|
[Nils Larsch <nla@trustcenter.de>]
|
||||||
[Richard Levitte]
|
|
||||||
|
|
||||||
*) Constify the ENGINE code as a result of BIGNUM constification.
|
*) Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines:
|
||||||
Also constify the RSA code and most things related to it. In a
|
an end-of-file condition would erronously be flagged, when the CRLF
|
||||||
few places, most notable in the depth of the ASN.1 code, ugly
|
was just at the end of a processed block. The bug was discovered when
|
||||||
casts back to non-const were required (to be solved at a later
|
processing data through a buffering memory BIO handing the data to a
|
||||||
time)
|
BASE64-decoding BIO. Bug fund and patch submitted by Pavel Tsekov
|
||||||
[Richard Levitte]
|
<ptsekov@syntrex.com> and Nedelcho Stanev.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
*) Make it so the openssl application has all engines loaded by default.
|
*) Implement a countermeasure against a vulnerability recently found
|
||||||
[Richard Levitte]
|
in CBC ciphersuites in SSL 3.0/TLS 1.0: Send an empty fragment
|
||||||
|
before application data chunks to avoid the use of known IVs
|
||||||
*) Constify the BIGNUM routines a little more.
|
with data potentially chosen by the attacker.
|
||||||
[Richard Levitte]
|
|
||||||
|
|
||||||
*) Make sure that shared libraries get the internal name engine with
|
|
||||||
the full version number and not just 0. This should mark the
|
|
||||||
shared libraries as not backward compatible. Of course, this should
|
|
||||||
be changed again when we can guarantee backward binary compatibility.
|
|
||||||
[Richard Levitte]
|
|
||||||
|
|
||||||
*) Add the following functions:
|
|
||||||
|
|
||||||
ENGINE_load_cswift()
|
|
||||||
ENGINE_load_chil()
|
|
||||||
ENGINE_load_atalla()
|
|
||||||
ENGINE_load_nuron()
|
|
||||||
ENGINE_load_builtin_engines()
|
|
||||||
|
|
||||||
That way, an application can itself choose if external engines that
|
|
||||||
are built-in in OpenSSL shall ever be used or not. The benefit is
|
|
||||||
that applications won't have to be linked with libdl or other dso
|
|
||||||
libraries unless it's really needed.
|
|
||||||
|
|
||||||
Changed 'openssl engine' to load all engines on demand.
|
|
||||||
Changed the engine header files to avoid the duplication of some
|
|
||||||
declarations (they differed!).
|
|
||||||
[Richard Levitte]
|
|
||||||
|
|
||||||
*) 'openssl engine' can now list capabilities.
|
|
||||||
[Richard Levitte]
|
|
||||||
|
|
||||||
*) Better error reporting in 'openssl engine'.
|
|
||||||
[Richard Levitte]
|
|
||||||
|
|
||||||
*) Never call load_dh_param(NULL) in s_server.
|
|
||||||
[Bodo Moeller]
|
[Bodo Moeller]
|
||||||
|
|
||||||
*) Add engine application. It can currently list engines by name and
|
*) Fix length checks in ssl3_get_client_hello().
|
||||||
identity, and test if they are actually available.
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) TLS/SSL library bugfix: use s->s3->in_read_app_data differently
|
||||||
|
to prevent ssl3_read_internal() from incorrectly assuming that
|
||||||
|
ssl3_read_bytes() found application data while handshake
|
||||||
|
processing was enabled when in fact s->s3->in_read_app_data was
|
||||||
|
merely automatically cleared during the initial handshake.
|
||||||
|
[Bodo Moeller; problem pointed out by Arne Ansper <arne@ats.cyber.ee>]
|
||||||
|
|
||||||
|
*) Fix object definitions for Private and Enterprise: they were not
|
||||||
|
recognized in their shortname (=lowercase) representation. Extend
|
||||||
|
obj_dat.pl to issue an error when using undefined keywords instead
|
||||||
|
of silently ignoring the problem (Svenning Sorensen
|
||||||
|
<sss@sss.dnsalias.net>).
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix DH_generate_parameters() so that it works for 'non-standard'
|
||||||
|
generators, i.e. generators other than 2 and 5. (Previously, the
|
||||||
|
code did not properly initialise the 'add' and 'rem' values to
|
||||||
|
BN_generate_prime().)
|
||||||
|
|
||||||
|
In the new general case, we do not insist that 'generator' is
|
||||||
|
actually a primitive root: This requirement is rather pointless;
|
||||||
|
a generator of the order-q subgroup is just as good, if not
|
||||||
|
better.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Map new X509 verification errors to alerts. Discovered and submitted by
|
||||||
|
Tom Wu <tom@arcot.com>.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix ssl3_pending() (ssl/s3_lib.c) to prevent SSL_pending() from
|
||||||
|
returning non-zero before the data has been completely received
|
||||||
|
when using non-blocking I/O.
|
||||||
|
[Bodo Moeller; problem pointed out by John Hughes]
|
||||||
|
|
||||||
|
*) Some of the ciphers missed the strength entry (SSL_LOW etc).
|
||||||
|
[Ben Laurie, Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix bug in SSL_clear(): bad sessions were not removed (found by
|
||||||
|
Yoram Zahavi <YoramZ@gilian.com>).
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Add information about CygWin 1.3 and on, and preserve proper
|
||||||
|
configuration for the versions before that.
|
||||||
|
[Corinna Vinschen <vinschen@redhat.com> and Richard Levitte]
|
||||||
|
|
||||||
|
*) Make removal from session cache (SSL_CTX_remove_session()) more robust:
|
||||||
|
check whether we deal with a copy of a session and do not delete from
|
||||||
|
the cache in this case. Problem reported by "Izhar Shoshani Levi"
|
||||||
|
<izhar@checkpoint.com>.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Do not store session data into the internal session cache, if it
|
||||||
|
is never intended to be looked up (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
|
||||||
|
flag is set). Proposed by Aslam <aslam@funk.com>.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested
|
||||||
|
value is 0.
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) [In 0.9.6c-engine release:]
|
||||||
|
Fix a crashbug and a logic bug in hwcrhk_load_pubkey()
|
||||||
|
[Toomas Kiisk <vix@cyber.ee> via Richard Levitte]
|
||||||
|
|
||||||
|
*) Add the configuration target linux-s390x.
|
||||||
|
[Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte]
|
||||||
|
|
||||||
|
*) The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of
|
||||||
|
ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag
|
||||||
|
variable as an indication that a ClientHello message has been
|
||||||
|
received. As the flag value will be lost between multiple
|
||||||
|
invocations of ssl3_accept when using non-blocking I/O, the
|
||||||
|
function may not be aware that a handshake has actually taken
|
||||||
|
place, thus preventing a new session from being added to the
|
||||||
|
session cache.
|
||||||
|
|
||||||
|
To avoid this problem, we now set s->new_session to 2 instead of
|
||||||
|
using a local variable.
|
||||||
|
[Lutz Jaenicke, Bodo Moeller]
|
||||||
|
|
||||||
|
*) Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c)
|
||||||
|
if the SSL_R_LENGTH_MISMATCH error is detected.
|
||||||
|
[Geoff Thorpe, Bodo Moeller]
|
||||||
|
|
||||||
|
*) New 'shared_ldflag' column in Configure platform table.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) Fix EVP_CIPHER_mode macro.
|
||||||
|
["Dan S. Camper" <dan@bti.net>]
|
||||||
|
|
||||||
|
*) Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown
|
||||||
|
type, we must throw them away by setting rr->length to 0.
|
||||||
|
[D P Chang <dpc@qualys.com>]
|
||||||
|
|
||||||
|
Changes between 0.9.6b and 0.9.6c [21 dec 2001]
|
||||||
|
|
||||||
|
*) Fix BN_rand_range bug pointed out by Dominikus Scherkl
|
||||||
|
<Dominikus.Scherkl@biodata.com>. (The previous implementation
|
||||||
|
worked incorrectly for those cases where range = 10..._2 and
|
||||||
|
3*range is two bits longer than range.)
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Only add signing time to PKCS7 structures if it is not already
|
||||||
|
present.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Fix crypto/objects/objects.h: "ld-ce" should be "id-ce",
|
||||||
|
OBJ_ld_ce should be OBJ_id_ce.
|
||||||
|
Also some ip-pda OIDs in crypto/objects/objects.txt were
|
||||||
|
incorrect (cf. RFC 3039).
|
||||||
|
[Matt Cooper, Frederic Giudicelli, Bodo Moeller]
|
||||||
|
|
||||||
|
*) Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid()
|
||||||
|
returns early because it has nothing to do.
|
||||||
|
[Andy Schneider <andy.schneider@bjss.co.uk>]
|
||||||
|
|
||||||
|
*) [In 0.9.6c-engine release:]
|
||||||
|
Fix mutex callback return values in crypto/engine/hw_ncipher.c.
|
||||||
|
[Andy Schneider <andy.schneider@bjss.co.uk>]
|
||||||
|
|
||||||
|
*) [In 0.9.6c-engine release:]
|
||||||
|
Add support for Cryptographic Appliance's keyserver technology.
|
||||||
|
(Use engine 'keyclient')
|
||||||
|
[Cryptographic Appliances and Geoff Thorpe]
|
||||||
|
|
||||||
|
*) Add a configuration entry for OS/390 Unix. The C compiler 'c89'
|
||||||
|
is called via tools/c89.sh because arguments have to be
|
||||||
|
rearranged (all '-L' options must appear before the first object
|
||||||
|
modules).
|
||||||
|
[Richard Shapiro <rshapiro@abinitio.com>]
|
||||||
|
|
||||||
|
*) [In 0.9.6c-engine release:]
|
||||||
|
Add support for Broadcom crypto accelerator cards, backported
|
||||||
|
from 0.9.7.
|
||||||
|
[Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox]
|
||||||
|
|
||||||
|
*) [In 0.9.6c-engine release:]
|
||||||
|
Add support for SureWare crypto accelerator cards from
|
||||||
|
Baltimore Technologies. (Use engine 'sureware')
|
||||||
|
[Baltimore Technologies and Mark Cox]
|
||||||
|
|
||||||
|
*) [In 0.9.6c-engine release:]
|
||||||
|
Add support for crypto accelerator cards from Accelerated
|
||||||
|
Encryption Processing, www.aep.ie. (Use engine 'aep')
|
||||||
|
[AEP Inc. and Mark Cox]
|
||||||
|
|
||||||
|
*) Add a configuration entry for gcc on UnixWare.
|
||||||
|
[Gary Benson <gbenson@redhat.com>]
|
||||||
|
|
||||||
|
*) Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake
|
||||||
|
messages are stored in a single piece (fixed-length part and
|
||||||
|
variable-length part combined) and fix various bugs found on the way.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Disable caching in BIO_gethostbyname(), directly use gethostbyname()
|
||||||
|
instead. BIO_gethostbyname() does not know what timeouts are
|
||||||
|
appropriate, so entries would stay in cache even when they have
|
||||||
|
become invalid.
|
||||||
|
[Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>
|
||||||
|
|
||||||
|
*) Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when
|
||||||
|
faced with a pathologically small ClientHello fragment that does
|
||||||
|
not contain client_version: Instead of aborting with an error,
|
||||||
|
simply choose the highest available protocol version (i.e.,
|
||||||
|
TLS 1.0 unless it is disabled). In practice, ClientHello
|
||||||
|
messages are never sent like this, but this change gives us
|
||||||
|
strictly correct behaviour at least for TLS.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix SSL handshake functions and SSL_clear() such that SSL_clear()
|
||||||
|
never resets s->method to s->ctx->method when called from within
|
||||||
|
one of the SSL handshake functions.
|
||||||
|
[Bodo Moeller; problem pointed out by Niko Baric]
|
||||||
|
|
||||||
|
*) In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert
|
||||||
|
(sent using the client's version number) if client_version is
|
||||||
|
smaller than the protocol version in use. Also change
|
||||||
|
ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if
|
||||||
|
the client demanded SSL 3.0 but only TLS 1.0 is enabled; then
|
||||||
|
the client will at least see that alert.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation
|
||||||
|
correctly.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a
|
||||||
|
client receives HelloRequest while in a handshake.
|
||||||
|
[Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>]
|
||||||
|
|
||||||
|
*) Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C
|
||||||
|
should end in 'break', not 'goto end' which circuments various
|
||||||
|
cleanups done in state SSL_ST_OK. But session related stuff
|
||||||
|
must be disabled for SSL_ST_OK in the case that we just sent a
|
||||||
|
HelloRequest.
|
||||||
|
|
||||||
|
Also avoid some overhead by not calling ssl_init_wbio_buffer()
|
||||||
|
before just sending a HelloRequest.
|
||||||
|
[Bodo Moeller, Eric Rescorla <ekr@rtfm.com>]
|
||||||
|
|
||||||
|
*) Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't
|
||||||
|
reveal whether illegal block cipher padding was found or a MAC
|
||||||
|
verification error occured. (Neither SSLerr() codes nor alerts
|
||||||
|
are directly visible to potential attackers, but the information
|
||||||
|
may leak via logfiles.)
|
||||||
|
|
||||||
|
Similar changes are not required for the SSL 2.0 implementation
|
||||||
|
because the number of padding bytes is sent in clear for SSL 2.0,
|
||||||
|
and the extra bytes are just ignored. However ssl/s2_pkt.c
|
||||||
|
failed to verify that the purported number of padding bytes is in
|
||||||
|
the legal range.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Add OpenUNIX-8 support including shared libraries
|
||||||
|
(Boyd Lynn Gerber <gerberb@zenez.com>).
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Improve RSA_padding_check_PKCS1_OAEP() check again to avoid
|
||||||
|
'wristwatch attack' using huge encoding parameters (cf.
|
||||||
|
James H. Manger's CRYPTO 2001 paper). Note that the
|
||||||
|
RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use
|
||||||
|
encoding parameters and hence was not vulnerable.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) BN_sqr() bug fix.
|
||||||
|
[Ulf M<>ller, reported by Jim Ellis <jim.ellis@cavium.com>]
|
||||||
|
|
||||||
|
*) Rabin-Miller test analyses assume uniformly distributed witnesses,
|
||||||
|
so use BN_pseudo_rand_range() instead of using BN_pseudo_rand()
|
||||||
|
followed by modular reduction.
|
||||||
|
[Bodo Moeller; pointed out by Adam Young <AYoung1@NCSUS.JNJ.COM>]
|
||||||
|
|
||||||
|
*) Add BN_pseudo_rand_range() with obvious functionality: BN_rand_range()
|
||||||
|
equivalent based on BN_pseudo_rand() instead of BN_rand().
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) s3_srvr.c: allow sending of large client certificate lists (> 16 kB).
|
||||||
|
This function was broken, as the check for a new client hello message
|
||||||
|
to handle SGC did not allow these large messages.
|
||||||
|
(Tracked down by "Douglas E. Engert" <deengert@anl.gov>.)
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Add alert descriptions for TLSv1 to SSL_alert_desc_string[_long]().
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix buggy behaviour of BIO_get_num_renegotiates() and BIO_ctrl()
|
||||||
|
for BIO_C_GET_WRITE_BUF_SIZE ("Stephen Hinton" <shinton@netopia.com>).
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Rework the configuration and shared library support for Tru64 Unix.
|
||||||
|
The configuration part makes use of modern compiler features and
|
||||||
|
still retains old compiler behavior for those that run older versions
|
||||||
|
of the OS. The shared library support part includes a variant that
|
||||||
|
uses the RPATH feature, and is available through the special
|
||||||
|
configuration target "alpha-cc-rpath", which will never be selected
|
||||||
|
automatically.
|
||||||
|
[Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> via Richard Levitte]
|
||||||
|
|
||||||
|
*) In ssl3_get_key_exchange (ssl/s3_clnt.c), call ssl3_get_message()
|
||||||
|
with the same message size as in ssl3_get_certificate_request().
|
||||||
|
Otherwise, if no ServerKeyExchange message occurs, CertificateRequest
|
||||||
|
messages might inadvertently be reject as too long.
|
||||||
|
[Petr Lampa <lampa@fee.vutbr.cz>]
|
||||||
|
|
||||||
|
*) Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX).
|
||||||
|
[Andy Polyakov]
|
||||||
|
|
||||||
|
*) Modified SSL library such that the verify_callback that has been set
|
||||||
|
specificly for an SSL object with SSL_set_verify() is actually being
|
||||||
|
used. Before the change, a verify_callback set with this function was
|
||||||
|
ignored and the verify_callback() set in the SSL_CTX at the time of
|
||||||
|
the call was used. New function X509_STORE_CTX_set_verify_cb() introduced
|
||||||
|
to allow the necessary settings.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Initialize static variable in crypto/dsa/dsa_lib.c and crypto/dh/dh_lib.c
|
||||||
|
explicitly to NULL, as at least on Solaris 8 this seems not always to be
|
||||||
|
done automatically (in contradiction to the requirements of the C
|
||||||
|
standard). This made problems when used from OpenSSH.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) In OpenSSL 0.9.6a and 0.9.6b, crypto/dh/dh_key.c ignored
|
||||||
|
dh->length and always used
|
||||||
|
|
||||||
|
BN_rand_range(priv_key, dh->p).
|
||||||
|
|
||||||
|
BN_rand_range() is not necessary for Diffie-Hellman, and this
|
||||||
|
specific range makes Diffie-Hellman unnecessarily inefficient if
|
||||||
|
dh->length (recommended exponent length) is much smaller than the
|
||||||
|
length of dh->p. We could use BN_rand_range() if the order of
|
||||||
|
the subgroup was stored in the DH structure, but we only have
|
||||||
|
dh->length.
|
||||||
|
|
||||||
|
So switch back to
|
||||||
|
|
||||||
|
BN_rand(priv_key, l, ...)
|
||||||
|
|
||||||
|
where 'l' is dh->length if this is defined, or BN_num_bits(dh->p)-1
|
||||||
|
otherwise.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) In
|
||||||
|
|
||||||
|
RSA_eay_public_encrypt
|
||||||
|
RSA_eay_private_decrypt
|
||||||
|
RSA_eay_private_encrypt (signing)
|
||||||
|
RSA_eay_public_decrypt (signature verification)
|
||||||
|
|
||||||
|
(default implementations for RSA_public_encrypt,
|
||||||
|
RSA_private_decrypt, RSA_private_encrypt, RSA_public_decrypt),
|
||||||
|
always reject numbers >= n.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) In crypto/rand/md_rand.c, use a new short-time lock CRYPTO_LOCK_RAND2
|
||||||
|
to synchronize access to 'locking_thread'. This is necessary on
|
||||||
|
systems where access to 'locking_thread' (an 'unsigned long'
|
||||||
|
variable) is not atomic.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) In crypto/rand/md_rand.c, set 'locking_thread' to current thread's ID
|
||||||
|
*before* setting the 'crypto_lock_rand' flag. The previous code had
|
||||||
|
a race condition if 0 is a valid thread ID.
|
||||||
|
[Travis Vitek <vitek@roguewave.com>]
|
||||||
|
|
||||||
*) Add support for shared libraries under Irix.
|
*) Add support for shared libraries under Irix.
|
||||||
[Albert Chin-A-Young <china@thewrittenword.com>]
|
[Albert Chin-A-Young <china@thewrittenword.com>]
|
||||||
|
|
||||||
*) Improve RPM specification file by forcing symbolic linking and making
|
|
||||||
sure the installed documentation is also owned by root.root.
|
|
||||||
[Damien Miller <djm@mindrot.org>]
|
|
||||||
|
|
||||||
*) Add configuration option to build on Linux on both big-endian and
|
*) Add configuration option to build on Linux on both big-endian and
|
||||||
little-endian MIPS.
|
little-endian MIPS.
|
||||||
[Ralf Baechle <ralf@uni-koblenz.de>]
|
[Ralf Baechle <ralf@uni-koblenz.de>]
|
||||||
|
|
||||||
*) Give the OpenSSL applications more possibilities to make use of
|
*) Add the possibility to create shared libraries on HP-UX.
|
||||||
keys (public as well as private) handled by engines.
|
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
*) Add OCSP code that comes from CertCo.
|
Changes between 0.9.6a and 0.9.6b [9 Jul 2001]
|
||||||
|
|
||||||
|
*) Change ssleay_rand_bytes (crypto/rand/md_rand.c)
|
||||||
|
to avoid a SSLeay/OpenSSL PRNG weakness pointed out by
|
||||||
|
Markku-Juhani O. Saarinen <markku-juhani.saarinen@nokia.com>:
|
||||||
|
PRNG state recovery was possible based on the output of
|
||||||
|
one PRNG request appropriately sized to gain knowledge on
|
||||||
|
'md' followed by enough consecutive 1-byte PRNG requests
|
||||||
|
to traverse all of 'state'.
|
||||||
|
|
||||||
|
1. When updating 'md_local' (the current thread's copy of 'md')
|
||||||
|
during PRNG output generation, hash all of the previous
|
||||||
|
'md_local' value, not just the half used for PRNG output.
|
||||||
|
|
||||||
|
2. Make the number of bytes from 'state' included into the hash
|
||||||
|
independent from the number of PRNG bytes requested.
|
||||||
|
|
||||||
|
The first measure alone would be sufficient to avoid
|
||||||
|
Markku-Juhani's attack. (Actually it had never occurred
|
||||||
|
to me that the half of 'md_local' used for chaining was the
|
||||||
|
half from which PRNG output bytes were taken -- I had always
|
||||||
|
assumed that the secret half would be used.) The second
|
||||||
|
measure makes sure that additional data from 'state' is never
|
||||||
|
mixed into 'md_local' in small portions; this heuristically
|
||||||
|
further strengthens the PRNG.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix crypto/bn/asm/mips3.s.
|
||||||
|
[Andy Polyakov]
|
||||||
|
|
||||||
|
*) When only the key is given to "enc", the IV is undefined. Print out
|
||||||
|
an error message in this case.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Handle special case when X509_NAME is empty in X509 printing routines.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) In dsa_do_verify (crypto/dsa/dsa_ossl.c), verify that r and s are
|
||||||
|
positive and less than q.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Don't change *pointer in CRYPTO_add_lock() is add_lock_callback is
|
||||||
|
used: it isn't thread safe and the add_lock_callback should handle
|
||||||
|
that itself.
|
||||||
|
[Paul Rose <Paul.Rose@bridge.com>]
|
||||||
|
|
||||||
|
*) Verify that incoming data obeys the block size in
|
||||||
|
ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix OAEP check.
|
||||||
|
[Ulf M<>ller, Bodo M<>ller]
|
||||||
|
|
||||||
|
*) The countermeasure against Bleichbacher's attack on PKCS #1 v1.5
|
||||||
|
RSA encryption was accidentally removed in s3_srvr.c in OpenSSL 0.9.5
|
||||||
|
when fixing the server behaviour for backwards-compatible 'client
|
||||||
|
hello' messages. (Note that the attack is impractical against
|
||||||
|
SSL 3.0 and TLS 1.0 anyway because length and version checking
|
||||||
|
means that the probability of guessing a valid ciphertext is
|
||||||
|
around 2^-40; see section 5 in Bleichenbacher's CRYPTO '98
|
||||||
|
paper.)
|
||||||
|
|
||||||
|
Before 0.9.5, the countermeasure (hide the error by generating a
|
||||||
|
random 'decryption result') did not work properly because
|
||||||
|
ERR_clear_error() was missing, meaning that SSL_get_error() would
|
||||||
|
detect the supposedly ignored error.
|
||||||
|
|
||||||
|
Both problems are now fixed.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) In crypto/bio/bf_buff.c, increase DEFAULT_BUFFER_SIZE to 4096
|
||||||
|
(previously it was 1024).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix for compatibility mode trust settings: ignore trust settings
|
||||||
|
unless some valid trust or reject settings are present.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Fix for blowfish EVP: its a variable length cipher.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Fix various bugs related to DSA S/MIME verification. Handle missing
|
||||||
|
parameters in DSA public key structures and return an error in the
|
||||||
|
DSA routines if parameters are absent.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd"
|
||||||
|
in the current directory if neither $RANDFILE nor $HOME was set.
|
||||||
|
RAND_file_name() in 0.9.6a returned NULL in this case. This has
|
||||||
|
caused some confusion to Windows users who haven't defined $HOME.
|
||||||
|
Thus RAND_file_name() is changed again: e_os.h can define a
|
||||||
|
DEFAULT_HOME, which will be used if $HOME is not set.
|
||||||
|
For Windows, we use "C:"; on other platforms, we still require
|
||||||
|
environment variables.
|
||||||
|
|
||||||
|
*) Move 'if (!initialized) RAND_poll()' into regions protected by
|
||||||
|
CRYPTO_LOCK_RAND. This is not strictly necessary, but avoids
|
||||||
|
having multiple threads call RAND_poll() concurrently.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) In crypto/rand/md_rand.c, replace 'add_do_not_lock' flag by a
|
||||||
|
combination of a flag and a thread ID variable.
|
||||||
|
Otherwise while one thread is in ssleay_rand_bytes (which sets the
|
||||||
|
flag), *other* threads can enter ssleay_add_bytes without obeying
|
||||||
|
the CRYPTO_LOCK_RAND lock (and may even illegally release the lock
|
||||||
|
that they do not hold after the first thread unsets add_do_not_lock).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Change bctest again: '-x' expressions are not available in all
|
||||||
|
versions of 'test'.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
Changes between 0.9.6 and 0.9.6a [5 Apr 2001]
|
||||||
|
|
||||||
|
*) Fix a couple of memory leaks in PKCS7_dataDecode()
|
||||||
|
[Steve Henson, reported by Heyun Zheng <hzheng@atdsprint.com>]
|
||||||
|
|
||||||
|
*) Change Configure and Makefiles to provide EXE_EXT, which will contain
|
||||||
|
the default extension for executables, if any. Also, make the perl
|
||||||
|
scripts that use symlink() to test if it really exists and use "cp"
|
||||||
|
if it doesn't. All this made OpenSSL compilable and installable in
|
||||||
|
CygWin.
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
*) Add VMS support for the Rijndael code.
|
*) Fix for asn1_GetSequence() for indefinite length constructed data.
|
||||||
|
If SEQUENCE is length is indefinite just set c->slen to the total
|
||||||
|
amount of data available.
|
||||||
|
[Steve Henson, reported by shige@FreeBSD.org]
|
||||||
|
[This change does not apply to 0.9.7.]
|
||||||
|
|
||||||
|
*) Change bctest to avoid here-documents inside command substitution
|
||||||
|
(workaround for FreeBSD /bin/sh bug).
|
||||||
|
For compatibility with Ultrix, avoid shell functions (introduced
|
||||||
|
in the bctest version that searches along $PATH).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes
|
||||||
|
with des_encrypt() defined on some operating systems, like Solaris
|
||||||
|
and UnixWare.
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
*) Added untested support for Nuron crypto accelerator.
|
*) Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton:
|
||||||
[Ben Laurie]
|
On the Importance of Eliminating Errors in Cryptographic
|
||||||
|
Computations, J. Cryptology 14 (2001) 2, 101-119,
|
||||||
|
http://theory.stanford.edu/~dabo/papers/faults.ps.gz).
|
||||||
|
[Ulf Moeller]
|
||||||
|
|
||||||
|
*) MIPS assembler BIGNUM division bug fix.
|
||||||
|
[Andy Polyakov]
|
||||||
|
|
||||||
*) Add support for external cryptographic devices. This code was
|
*) Disabled incorrect Alpha assembler code.
|
||||||
previously distributed separately as the "engine" branch.
|
[Richard Levitte]
|
||||||
[Geoff Thorpe, Richard Levitte]
|
|
||||||
|
|
||||||
*) Rework the filename-translation in the DSO code. It is now possible to
|
*) Fix PKCS#7 decode routines so they correctly update the length
|
||||||
have far greater control over how a "name" is turned into a filename
|
after reading an EOC for the EXPLICIT tag.
|
||||||
depending on the operating environment and any oddities about the
|
[Steve Henson]
|
||||||
different shared library filenames on each system.
|
[This change does not apply to 0.9.7.]
|
||||||
|
|
||||||
|
*) Fix bug in PKCS#12 key generation routines. This was triggered
|
||||||
|
if a 3DES key was generated with a 0 initial byte. Include
|
||||||
|
PKCS12_BROKEN_KEYGEN compilation option to retain the old
|
||||||
|
(but broken) behaviour.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Enhance bctest to search for a working bc along $PATH and print
|
||||||
|
it when found.
|
||||||
|
[Tim Rice <tim@multitalents.net> via Richard Levitte]
|
||||||
|
|
||||||
|
*) Fix memory leaks in err.c: free err_data string if necessary;
|
||||||
|
don't write to the wrong index in ERR_set_error_data.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Implement ssl23_peek (analogous to ssl23_read), which previously
|
||||||
|
did not exist.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Replace rdtsc with _emit statements for VC++ version 5.
|
||||||
|
[Jeremy Cooper <jeremy@baymoo.org>]
|
||||||
|
|
||||||
|
*) Make it possible to reuse SSLv2 sessions.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) In copy_email() check for >= 0 as a return value for
|
||||||
|
X509_NAME_get_index_by_NID() since 0 is a valid index.
|
||||||
|
[Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>]
|
||||||
|
|
||||||
|
*) Avoid coredump with unsupported or invalid public keys by checking if
|
||||||
|
X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when
|
||||||
|
PKCS7_verify() fails with non detached data.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Don't use getenv in library functions when run as setuid/setgid.
|
||||||
|
New function OPENSSL_issetugid().
|
||||||
|
[Ulf Moeller]
|
||||||
|
|
||||||
|
*) Avoid false positives in memory leak detection code (crypto/mem_dbg.c)
|
||||||
|
due to incorrect handling of multi-threading:
|
||||||
|
|
||||||
|
1. Fix timing glitch in the MemCheck_off() portion of CRYPTO_mem_ctrl().
|
||||||
|
|
||||||
|
2. Fix logical glitch in is_MemCheck_on() aka CRYPTO_is_mem_check_on().
|
||||||
|
|
||||||
|
3. Count how many times MemCheck_off() has been called so that
|
||||||
|
nested use can be treated correctly. This also avoids
|
||||||
|
inband-signalling in the previous code (which relied on the
|
||||||
|
assumption that thread ID 0 is impossible).
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Add "-rand" option also to s_client and s_server.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix CPU detection on Irix 6.x.
|
||||||
|
[Kurt Hockenbury <khockenb@stevens-tech.edu> and
|
||||||
|
"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>]
|
||||||
|
|
||||||
|
*) Fix X509_NAME bug which produced incorrect encoding if X509_NAME
|
||||||
|
was empty.
|
||||||
|
[Steve Henson]
|
||||||
|
[This change does not apply to 0.9.7.]
|
||||||
|
|
||||||
|
*) Use the cached encoding of an X509_NAME structure rather than
|
||||||
|
copying it. This is apparently the reason for the libsafe "errors"
|
||||||
|
but the code is actually correct.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Add new function BN_rand_range(), and fix DSA_sign_setup() to prevent
|
||||||
|
Bleichenbacher's DSA attack.
|
||||||
|
Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits
|
||||||
|
to be set and top=0 forces the highest bit to be set; top=-1 is new
|
||||||
|
and leaves the highest bit random.
|
||||||
|
[Ulf Moeller, Bodo Moeller]
|
||||||
|
|
||||||
|
*) In the NCONF_...-based implementations for CONF_... queries
|
||||||
|
(crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using
|
||||||
|
a temporary CONF structure with the data component set to NULL
|
||||||
|
(which gives segmentation faults in lh_retrieve).
|
||||||
|
Instead, use NULL for the CONF pointer in CONF_get_string and
|
||||||
|
CONF_get_number (which may use environment variables) and directly
|
||||||
|
return NULL from CONF_get_section.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix potential buffer overrun for EBCDIC.
|
||||||
|
[Ulf Moeller]
|
||||||
|
|
||||||
|
*) Tolerate nonRepudiation as being valid for S/MIME signing and certSign
|
||||||
|
keyUsage if basicConstraints absent for a CA.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Make SMIME_write_PKCS7() write mail header values with a format that
|
||||||
|
is more generally accepted (no spaces before the semicolon), since
|
||||||
|
some programs can't parse those values properly otherwise. Also make
|
||||||
|
sure BIO's that break lines after each write do not create invalid
|
||||||
|
headers.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) Make the CRL encoding routines work with empty SEQUENCE OF. The
|
||||||
|
macros previously used would not encode an empty SEQUENCE OF
|
||||||
|
and break the signature.
|
||||||
|
[Steve Henson]
|
||||||
|
[This change does not apply to 0.9.7.]
|
||||||
|
|
||||||
|
*) Zero the premaster secret after deriving the master secret in
|
||||||
|
DH ciphersuites.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Add some EVP_add_digest_alias registrations (as found in
|
||||||
|
OpenSSL_add_all_digests()) to SSL_library_init()
|
||||||
|
aka OpenSSL_add_ssl_algorithms(). This provides improved
|
||||||
|
compatibility with peers using X.509 certificates
|
||||||
|
with unconventional AlgorithmIdentifier OIDs.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix for Irix with NO_ASM.
|
||||||
|
["Bruce W. Forsberg" <bruce.forsberg@baesystems.com>]
|
||||||
|
|
||||||
|
*) ./config script fixes.
|
||||||
|
[Ulf Moeller, Richard Levitte]
|
||||||
|
|
||||||
|
*) Fix 'openssl passwd -1'.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Change PKCS12_key_gen_asc() so it can cope with non null
|
||||||
|
terminated strings whose length is passed in the passlen
|
||||||
|
parameter, for example from PEM callbacks. This was done
|
||||||
|
by adding an extra length parameter to asc2uni().
|
||||||
|
[Steve Henson, reported by <oddissey@samsung.co.kr>]
|
||||||
|
|
||||||
|
*) Fix C code generated by 'openssl dsaparam -C': If a BN_bin2bn
|
||||||
|
call failed, free the DSA structure.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix to uni2asc() to cope with zero length Unicode strings.
|
||||||
|
These are present in some PKCS#12 files.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Increase s2->wbuf allocation by one byte in ssl2_new (ssl/s2_lib.c).
|
||||||
|
Otherwise do_ssl_write (ssl/s2_pkt.c) will write beyond buffer limits
|
||||||
|
when writing a 32767 byte record.
|
||||||
|
[Bodo Moeller; problem reported by Eric Day <eday@concentric.net>]
|
||||||
|
|
||||||
|
*) In RSA_eay_public_{en,ed}crypt and RSA_eay_mod_exp (rsa_eay.c),
|
||||||
|
obtain lock CRYPTO_LOCK_RSA before setting rsa->_method_mod_{n,p,q}.
|
||||||
|
|
||||||
|
(RSA objects have a reference count access to which is protected
|
||||||
|
by CRYPTO_LOCK_RSA [see rsa_lib.c, s3_srvr.c, ssl_cert.c, ssl_rsa.c],
|
||||||
|
so they are meant to be shared between threads.)
|
||||||
|
[Bodo Moeller, Geoff Thorpe; original patch submitted by
|
||||||
|
"Reddie, Steven" <Steven.Reddie@ca.com>]
|
||||||
|
|
||||||
|
*) Fix a deadlock in CRYPTO_mem_leaks().
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Use better test patterns in bntest.
|
||||||
|
[Ulf M<>ller]
|
||||||
|
|
||||||
|
*) rand_win.c fix for Borland C.
|
||||||
|
[Ulf M<>ller]
|
||||||
|
|
||||||
|
*) BN_rshift bugfix for n == 0.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Add a 'bctest' script that checks for some known 'bc' bugs
|
||||||
|
so that 'make test' does not abort just because 'bc' is broken.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Store verify_result within SSL_SESSION also for client side to
|
||||||
|
avoid potential security hole. (Re-used sessions on the client side
|
||||||
|
always resulted in verify_result==X509_V_OK, not using the original
|
||||||
|
result of the server certificate verification.)
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
|
*) Fix ssl3_pending: If the record in s->s3->rrec is not of type
|
||||||
|
SSL3_RT_APPLICATION_DATA, return 0.
|
||||||
|
Similarly, change ssl2_pending to return 0 if SSL_in_init(s) is true.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Fix SSL_peek:
|
||||||
|
Both ssl2_peek and ssl3_peek, which were totally broken in earlier
|
||||||
|
releases, have been re-implemented by renaming the previous
|
||||||
|
implementations of ssl2_read and ssl3_read to ssl2_read_internal
|
||||||
|
and ssl3_read_internal, respectively, and adding 'peek' parameters
|
||||||
|
to them. The new ssl[23]_{read,peek} functions are calls to
|
||||||
|
ssl[23]_read_internal with the 'peek' flag set appropriately.
|
||||||
|
A 'peek' parameter has also been added to ssl3_read_bytes, which
|
||||||
|
does the actual work for ssl3_read_internal.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Initialise "ex_data" member of RSA/DSA/DH structures prior to calling
|
||||||
|
the method-specific "init()" handler. Also clean up ex_data after
|
||||||
|
calling the method-specific "finish()" handler. Previously, this was
|
||||||
|
happening the other way round.
|
||||||
[Geoff Thorpe]
|
[Geoff Thorpe]
|
||||||
|
|
||||||
*) Support threads on FreeBSD-elf in Configure.
|
*) Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16.
|
||||||
[Richard Levitte]
|
The previous value, 12, was not always sufficient for BN_mod_exp().
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
*) Add the possibility to create shared libraries on HP-UX
|
*) Make sure that shared libraries get the internal name engine with
|
||||||
[Richard Levitte]
|
the full version number and not just 0. This should mark the
|
||||||
|
shared libraries as not backward compatible. Of course, this should
|
||||||
*) Fix for SHA1 assembly problem with MASM: it produces
|
be changed again when we can guarantee backward binary compatibility.
|
||||||
warnings about corrupt line number information when assembling
|
|
||||||
with debugging information. This is caused by the overlapping
|
|
||||||
of two sections.
|
|
||||||
[Bernd Matthes <mainbug@celocom.de>, Steve Henson]
|
|
||||||
|
|
||||||
*) NCONF changes.
|
|
||||||
NCONF_get_number() has no error checking at all. As a replacement,
|
|
||||||
NCONF_get_number_e() is defined (_e for "error checking") and is
|
|
||||||
promoted strongly. The old NCONF_get_number is kept around for
|
|
||||||
binary backward compatibility.
|
|
||||||
Make it possible for methods to load from something other than a BIO,
|
|
||||||
by providing a function pointer that is given a name instead of a BIO.
|
|
||||||
For example, this could be used to load configuration data from an
|
|
||||||
LDAP server.
|
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
*) Fix typo in get_cert_by_subject() in by_dir.c
|
*) Fix typo in get_cert_by_subject() in by_dir.c
|
||||||
@@ -133,26 +739,6 @@
|
|||||||
static ones.
|
static ones.
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
*) Fix for non blocking accept BIOs. Added new I/O special reason
|
|
||||||
BIO_RR_ACCEPT to cover this case. Previously use of accept BIOs
|
|
||||||
with non blocking I/O was not possible because no retry code was
|
|
||||||
implemented. Also added new SSL code SSL_WANT_ACCEPT to cover
|
|
||||||
this case.
|
|
||||||
[Steve Henson]
|
|
||||||
|
|
||||||
*) Added the beginnings of Rijndael support.
|
|
||||||
[Ben Laurie]
|
|
||||||
|
|
||||||
*) Fix for bug in DirectoryString mask setting. Add support for
|
|
||||||
X509_NAME_print_ex() in 'req' and X509_print_ex() function
|
|
||||||
to allow certificate printing to more controllable, additional
|
|
||||||
'certopt' option to 'x509' to allow new printing options to be
|
|
||||||
set.
|
|
||||||
[Steve Henson]
|
|
||||||
|
|
||||||
*) Clean old EAY MD5 hack from e_os.h.
|
|
||||||
[Richard Levitte]
|
|
||||||
|
|
||||||
*) Fix SSL_CTX_set_read_ahead macro to actually use its argument.
|
*) Fix SSL_CTX_set_read_ahead macro to actually use its argument.
|
||||||
|
|
||||||
Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new
|
Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new
|
||||||
@@ -166,6 +752,9 @@
|
|||||||
matter what.
|
matter what.
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) Added several new manual pages for SSL_* function.
|
||||||
|
[Lutz Jaenicke]
|
||||||
|
|
||||||
Changes between 0.9.5a and 0.9.6 [24 Sep 2000]
|
Changes between 0.9.5a and 0.9.6 [24 Sep 2000]
|
||||||
|
|
||||||
*) In ssl23_get_client_hello, generate an error message when faced
|
*) In ssl23_get_client_hello, generate an error message when faced
|
||||||
@@ -515,7 +1104,7 @@
|
|||||||
default is static libraries only, and the OpenSSL programs
|
default is static libraries only, and the OpenSSL programs
|
||||||
are always statically linked for now, but there are
|
are always statically linked for now, but there are
|
||||||
preparations for dynamic linking in place.
|
preparations for dynamic linking in place.
|
||||||
This has been tested on Linux and True64.
|
This has been tested on Linux and Tru64.
|
||||||
[Richard Levitte]
|
[Richard Levitte]
|
||||||
|
|
||||||
*) Randomness polling function for Win9x, as described in:
|
*) Randomness polling function for Win9x, as described in:
|
||||||
@@ -2242,7 +2831,7 @@
|
|||||||
copied!)
|
copied!)
|
||||||
[Bodo Moeller]
|
[Bodo Moeller]
|
||||||
|
|
||||||
*) Bugfix: SSL_set_mode ignored its parameter, only SSL_CTX_set_mode
|
*) Bugfix: SSL_set_options ignored its parameter, only SSL_CTX_set_options
|
||||||
worked.
|
worked.
|
||||||
|
|
||||||
*) Fix problems with no-hmac etc.
|
*) Fix problems with no-hmac etc.
|
||||||
|
|||||||
372
Configure
372
Configure
@@ -10,7 +10,7 @@ use strict;
|
|||||||
|
|
||||||
# see INSTALL for instructions.
|
# see INSTALL for instructions.
|
||||||
|
|
||||||
my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [rsaref] [no-threads] [no-asm] [no-dso] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] os/compiler[:flags]\n";
|
my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [rsaref] [no-threads] [no-asm] [no-dso] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--test-sanity] os/compiler[:flags]\n";
|
||||||
|
|
||||||
# Options:
|
# Options:
|
||||||
#
|
#
|
||||||
@@ -23,11 +23,9 @@ my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-
|
|||||||
# default). This needn't be set in advance, you can
|
# default). This needn't be set in advance, you can
|
||||||
# just as well use "make INSTALL_PREFIX=/whatever install".
|
# just as well use "make INSTALL_PREFIX=/whatever install".
|
||||||
#
|
#
|
||||||
# no-hw-xxx do not compile support for specific crypto hardware.
|
# --test-sanity Make a number of sanity checks on the data in this file.
|
||||||
# Generic OpenSSL-style methods relating to this support
|
# This is a debugging tool for OpenSSL developers.
|
||||||
# are always compiled but return NULL if the hardware
|
#
|
||||||
# support isn't compiled.
|
|
||||||
# no-hw do not compile support for any crypto hardware.
|
|
||||||
# rsaref use RSAref
|
# rsaref use RSAref
|
||||||
# [no-]threads [don't] try to create a library that is suitable for
|
# [no-]threads [don't] try to create a library that is suitable for
|
||||||
# multithreaded applications (default is "threads" if we
|
# multithreaded applications (default is "threads" if we
|
||||||
@@ -94,10 +92,15 @@ my $x86_elf_asm="asm/bn86-elf.o asm/co86-elf.o:asm/dx86-elf.o asm/yx86-elf.o:asm
|
|||||||
my $x86_out_asm="asm/bn86-out.o asm/co86-out.o:asm/dx86-out.o asm/yx86-out.o:asm/bx86-out.o:asm/mx86-out.o:asm/sx86-out.o:asm/cx86-out.o:asm/rx86-out.o:asm/rm86-out.o:asm/r586-out.o";
|
my $x86_out_asm="asm/bn86-out.o asm/co86-out.o:asm/dx86-out.o asm/yx86-out.o:asm/bx86-out.o:asm/mx86-out.o:asm/sx86-out.o:asm/cx86-out.o:asm/rx86-out.o:asm/rm86-out.o:asm/r586-out.o";
|
||||||
my $x86_bsdi_asm="asm/bn86bsdi.o asm/co86bsdi.o:asm/dx86bsdi.o asm/yx86bsdi.o:asm/bx86bsdi.o:asm/mx86bsdi.o:asm/sx86bsdi.o:asm/cx86bsdi.o:asm/rx86bsdi.o:asm/rm86bsdi.o:asm/r586bsdi.o";
|
my $x86_bsdi_asm="asm/bn86bsdi.o asm/co86bsdi.o:asm/dx86bsdi.o asm/yx86bsdi.o:asm/bx86bsdi.o:asm/mx86bsdi.o:asm/sx86bsdi.o:asm/cx86bsdi.o:asm/rx86bsdi.o:asm/rm86bsdi.o:asm/r586bsdi.o";
|
||||||
|
|
||||||
|
my $mips3_irix_asm="asm/mips3.o::::::::";
|
||||||
|
# There seems to be boundary faults in asm/alpha.s.
|
||||||
|
#my $alpha_asm="asm/alpha.o::::::::";
|
||||||
|
my $alpha_asm="::::::::";
|
||||||
|
|
||||||
# -DB_ENDIAN slows things down on a sparc for md5, but helps sha1.
|
# -DB_ENDIAN slows things down on a sparc for md5, but helps sha1.
|
||||||
# So the md5_locl.h file has an undef B_ENDIAN if sun is defined
|
# So the md5_locl.h file has an undef B_ENDIAN if sun is defined
|
||||||
|
|
||||||
#config-string $cc : $cflags : $unistd : $thread_cflag : $lflags : $bn_ops : $bn_obj : $des_obj : $bf_obj : $md5_obj : $sha1_obj : $cast_obj : $rc4_obj : $rmd160_obj : $rc5_obj : $dso_scheme : $shared_target : $shared_cflag
|
#config-string $cc : $cflags : $unistd : $thread_cflag : $lflags : $bn_ops : $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
|
||||||
|
|
||||||
my %table=(
|
my %table=(
|
||||||
# File 'TABLE' (created by 'make TABLE') contains the data from this list,
|
# File 'TABLE' (created by 'make TABLE') contains the data from this list,
|
||||||
@@ -116,10 +119,10 @@ my %table=(
|
|||||||
"debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
|
"debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
|
||||||
"debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe::(unknown):::::",
|
"debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe::(unknown):::::",
|
||||||
"debug-rse","cc:-DTERMIOS -DL_ENDIAN -pipe -O -g -ggdb3 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
"debug-rse","cc:-DTERMIOS -DL_ENDIAN -pipe -O -g -ggdb3 -Wall::(unknown)::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 -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 -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 -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 -Wid-clash-31 -pipe::-D_REENTRANT:-ldl:::::::::::dlfcn",
|
||||||
"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
|
||||||
@@ -132,32 +135,35 @@ my %table=(
|
|||||||
# surrounds it with #APP #NO_APP comment pair which (at least Solaris
|
# surrounds it with #APP #NO_APP comment pair which (at least Solaris
|
||||||
# 7_x86) /usr/ccs/bin/as fails to assemble with "Illegal mnemonic"
|
# 7_x86) /usr/ccs/bin/as fails to assemble with "Illegal mnemonic"
|
||||||
# error message.
|
# error message.
|
||||||
"solaris-x86-gcc","gcc:-O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN -DNO_INLINE_ASM::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_sol_asm}:dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-x86-gcc","gcc:-O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN -DNO_INLINE_ASM::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_sol_asm}:dlfcn:solaris-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
|
#### Solaris x86 with Sun C setups
|
||||||
|
"solaris-x86-cc","cc:-fast -O -Xa::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
#### SPARC Solaris with GNU C setups
|
#### SPARC Solaris with GNU C setups
|
||||||
"solaris-sparcv7-gcc","gcc:-O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparcv7-gcc","gcc:-O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"solaris-sparcv8-gcc","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparcv8-gcc","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"solaris-sparcv9-gcc","gcc:-mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparcv9-gcc","gcc:-mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# gcc pre-2.8 doesn't understand -mcpu=ultrasparc, so fall down to -mv8
|
# gcc pre-2.8 doesn't understand -mcpu=ultrasparc, so fall down to -mv8
|
||||||
# but keep the assembler modules.
|
# but keep the assembler modules.
|
||||||
"solaris-sparcv9-gcc27","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus-gcc27.o:::asm/md5-sparcv8plus-gcc27.o::::::dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparcv9-gcc27","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus-gcc27.o:::asm/md5-sparcv8plus-gcc27.o::::::dlfcn:solaris-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
####
|
####
|
||||||
"debug-solaris-sparcv8-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"debug-solaris-sparcv8-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"debug-solaris-sparcv9-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::::::::dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"debug-solaris-sparcv9-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::::::::dlfcn:solaris-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
#### SPARC Solaris with Sun C setups
|
#### SPARC Solaris with Sun C setups
|
||||||
# DO NOT use /xO[34] on sparc with SC3.0. It is broken, and will not pass the tests
|
# DO NOT use /xO[34] on sparc with SC3.0. It is broken, and will not pass the tests
|
||||||
"solaris-sparc-sc3","cc:-fast -O -Xa -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-KPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparc-sc3","cc:-fast -O -Xa -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# SC4.0 doesn't pass 'make test', upgrade to SC5.0 or SC4.2.
|
# SC4.0 doesn't pass 'make test', upgrade to SC5.0 or SC4.2.
|
||||||
# SC4.2 is ok, better than gcc even on bn as long as you tell it -xarch=v8
|
# SC4.2 is ok, better than gcc even on bn as long as you tell it -xarch=v8
|
||||||
# SC5.0 note: Compiler common patch 107357-01 or later is required!
|
# SC5.0 note: Compiler common patch 107357-01 or later is required!
|
||||||
"solaris-sparcv7-cc","cc:-xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-KPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparcv7-cc","cc:-xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"solaris-sparcv8-cc","cc:-xarch=v8 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparcv8-cc","cc:-xarch=v8 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"solaris-sparcv9-cc","cc:-xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris-sparcv9-cc","cc:-xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"solaris64-sparcv9-cc","cc:-xtarget=ultra -xarch=v9 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::asm/md5-sparcv9.o::::::dlfcn:solaris-shared:-KPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"solaris64-sparcv9-cc","cc:-xtarget=ultra -xarch=v9 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::asm/md5-sparcv9.o::::::dlfcn:solaris-shared:-KPIC:-xarch=v9:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):/usr/ccs/bin/ar rs",
|
||||||
####
|
####
|
||||||
"debug-solaris-sparcv8-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"debug-solaris-sparcv8-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"debug-solaris-sparcv9-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"debug-solaris-sparcv9-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
#### SPARC Linux setups
|
#### SPARC Linux setups
|
||||||
"linux-sparcv7","gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::",
|
"linux-sparcv7","gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::",
|
||||||
@@ -166,7 +172,7 @@ my %table=(
|
|||||||
"linux-sparcv8","gcc:-mv8 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DBN_DIV2W::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o::::",
|
"linux-sparcv8","gcc:-mv8 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DBN_DIV2W::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o::::",
|
||||||
# it's a real mess with -mcpu=ultrasparc option under Linux, but
|
# it's a real mess with -mcpu=ultrasparc option under Linux, but
|
||||||
# -Wa,-Av8plus should do the trick no matter what.
|
# -Wa,-Av8plus should do the trick no matter what.
|
||||||
"linux-sparcv9","gcc:-mcpu=ultrasparc -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -Wa,-Av8plus -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o:",
|
"linux-sparcv9","gcc:-mcpu=ultrasparc -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -Wa,-Av8plus -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:linux-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# !!!Folowing can't be even tested yet!!!
|
# !!!Folowing can't be even tested yet!!!
|
||||||
# We have to wait till 64-bit glibc for SPARC is operational!!!
|
# We have to wait till 64-bit glibc for SPARC is operational!!!
|
||||||
#"linux64-sparcv9","sparc64-linux-gcc:-m64 -mcpu=v9 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::asm/md5-sparcv9.o:",
|
#"linux64-sparcv9","sparc64-linux-gcc:-m64 -mcpu=v9 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::asm/md5-sparcv9.o:",
|
||||||
@@ -177,17 +183,17 @@ my %table=(
|
|||||||
|
|
||||||
#### IRIX 5.x configs
|
#### IRIX 5.x configs
|
||||||
# -mips2 flag is added by ./config when appropriate.
|
# -mips2 flag is added by ./config when appropriate.
|
||||||
"irix-gcc","gcc:-O3 -DTERMIOS -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK DES_UNROLL DES_RISC2 DES_PTR BF_PTR::::::::::dlfcn:irix-shared::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"irix-gcc","gcc:-O3 -DTERMIOS -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK DES_UNROLL DES_RISC2 DES_PTR BF_PTR::::::::::dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"irix-cc", "cc:-O2 -use_readonly_const -DTERMIOS -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC2 DES_UNROLL BF_PTR::::::::::dlfcn:irix-shared::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"irix-cc", "cc:-O2 -use_readonly_const -DTERMIOS -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC2 DES_UNROLL BF_PTR::::::::::dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
#### IRIX 6.x configs
|
#### IRIX 6.x configs
|
||||||
# Only N32 and N64 ABIs are supported. If you need O32 ABI build, invoke
|
# Only N32 and N64 ABIs are supported. If you need O32 ABI build, invoke
|
||||||
# './Configure irix-[g]cc' manually.
|
# './Configure irix-[g]cc' manually.
|
||||||
# -mips4 flag is added by ./config when appropriate.
|
# -mips4 flag is added by ./config when appropriate.
|
||||||
"irix-mips3-gcc","gcc:-mabi=n32 -mmips-as -O3 -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK_LL DES_UNROLL DES_RISC2 DES_PTR BF_PTR SIXTY_FOUR_BIT:asm/mips3.o:::::::::dlfcn:irix-shared::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"irix-mips3-gcc","gcc:-mabi=n32 -mmips-as -O3 -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK_LL DES_UNROLL DES_RISC2 DES_PTR BF_PTR SIXTY_FOUR_BIT:${mips3_irix_asm}:dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"irix-mips3-cc", "cc:-n32 -O2 -use_readonly_const -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::DES_PTR RC4_CHAR RC4_CHUNK_LL DES_RISC2 DES_UNROLL BF_PTR SIXTY_FOUR_BIT:asm/mips3.o:::::::::dlfcn:irix-shared::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"irix-mips3-cc", "cc:-n32 -O2 -use_readonly_const -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::DES_PTR RC4_CHAR RC4_CHUNK_LL DES_RISC2 DES_UNROLL BF_PTR SIXTY_FOUR_BIT:${mips3_irix_asm}:dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# N64 ABI builds.
|
# N64 ABI builds.
|
||||||
"irix64-mips4-gcc","gcc:-mabi=64 -mips4 -mmips-as -O3 -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG:asm/mips3.o:::::::::dlfcn:irix-shared::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"irix64-mips4-gcc","gcc:-mabi=64 -mips4 -mmips-as -O3 -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG:${mips3_irix_asm}:dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"irix64-mips4-cc", "cc:-64 -mips4 -O2 -use_readonly_const -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG:asm/mips3.o:::::::::dlfcn:irix-shared::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"irix64-mips4-cc", "cc:-64 -mips4 -O2 -use_readonly_const -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE::RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG:${mips3_irix_asm}:dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
#### Unified HP-UX ANSI C configs.
|
#### Unified HP-UX ANSI C configs.
|
||||||
# Special notes:
|
# Special notes:
|
||||||
@@ -219,41 +225,44 @@ my %table=(
|
|||||||
#
|
#
|
||||||
#!#"hpux-parisc-cc","cc:-Ae +O3 +ESlit -z -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY:::-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
#!#"hpux-parisc-cc","cc:-Ae +O3 +ESlit -z -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY:::-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
||||||
# Since there is mention of this in shlib/hpux10-cc.sh
|
# Since there is mention of this in shlib/hpux10-cc.sh
|
||||||
"hpux-parisc-cc-o4","cc:-Ae +O4 +ESlit -z -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY:::-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-parisc-cc-o4","cc:-Ae +O4 +ESlit -z -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY:::-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"hpux-parisc-gcc","gcc:-O3 -DB_ENDIAN -DBN_DIV2W:::-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-parisc-gcc","gcc:-O3 -DB_ENDIAN -DBN_DIV2W:::-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"hpux64-parisc-cc","cc:-Ae +DD64 +O3 +ESlit -z -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dlfcn:hpux64-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux64-parisc-cc","cc:-Ae +DD64 +O3 +ESlit -z -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dlfcn:hpux64-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
# More attempts at unified 10.X and 11.X targets for HP C compiler.
|
# More attempts at unified 10.X and 11.X targets for HP C compiler.
|
||||||
#
|
#
|
||||||
# Chris Ruemmler <ruemmler@cup.hp.com>
|
# Chris Ruemmler <ruemmler@cup.hp.com>
|
||||||
# Kevin Steves <ks@hp.se>
|
# Kevin Steves <ks@hp.se>
|
||||||
"hpux-parisc-cc","cc:+O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY::-D_REENTRANT:-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-parisc-cc","cc:+O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY::-D_REENTRANT:-ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-Wl,+s -ldld:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:asm/pa-risc2.o:::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-ldld:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:asm/pa-risc2.o:::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"hpux64-parisc2-cc","cc:+DD64 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:asm/pa-risc2W.o:::::::::dlfcn:hpux64-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux64-parisc2-cc","cc:+DD64 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:asm/pa-risc2W.o:::::::::dlfcn:hpux64-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"hpux-parisc1_1-cc","cc:+DA1.1 +DS1.1 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-parisc1_1-cc","cc:+DA1.1 +DS1.1 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT:-ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
# HPUX 9.X config.
|
# HPUX 9.X config.
|
||||||
# Don't use the bundled cc. It is broken. Use HP ANSI C if possible, or
|
# Don't use the bundled cc. It is broken. Use HP ANSI C if possible, or
|
||||||
# egcs. gcc 2.8.1 is also broken.
|
# egcs. gcc 2.8.1 is also broken.
|
||||||
|
|
||||||
"hpux-cc", "cc:-DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY -Ae +ESlit +O3 -z::(unknown):-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-cc", "cc:-DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY -Ae +ESlit +O3 -z::(unknown):-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# If hpux-cc fails (e.g. during "make test"), try the next one; otherwise,
|
# If hpux-cc fails (e.g. during "make test"), try the next one; otherwise,
|
||||||
# please report your OS and compiler version to the openssl-bugs@openssl.org
|
# please report your OS and compiler version to the openssl-bugs@openssl.org
|
||||||
# mailing list.
|
# mailing list.
|
||||||
"hpux-brokencc", "cc:-DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O2 -z::(unknown):-Wl,+s -ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-brokencc", "cc:-DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O2 -z::(unknown):-ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
"hpux-gcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::(unknown):-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-gcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::(unknown):-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# If hpux-gcc fails, try this one:
|
# If hpux-gcc fails, try this one:
|
||||||
"hpux-brokengcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::(unknown):-Wl,+s -ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux-brokengcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::(unknown):-ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
|
# HPUX 9.X on Motorola 68k platforms with gcc
|
||||||
|
"hpux-m68k-gcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::(unknown)::BN_LLONG DES_PTR DES_UNROLL:::",
|
||||||
|
|
||||||
# HPUX 10.X config. Supports threads.
|
# HPUX 10.X config. Supports threads.
|
||||||
"hpux10-cc", "cc:-DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY -Ae +ESlit +O3 -z::-D_REENTRANT:-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux10-cc", "cc:-DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY -Ae +ESlit +O3 -z::-D_REENTRANT:-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# If hpux10-cc fails, try this one (if still fails, try deleting BN_LLONG):
|
# If hpux10-cc fails, try this one (if still fails, try deleting BN_LLONG):
|
||||||
"hpux10-brokencc", "cc:-DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O2 -z::-D_REENTRANT:-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux10-brokencc", "cc:-DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O2 -z::-D_REENTRANT:-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
"hpux10-gcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::-D_REENTRANT:-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux10-gcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::-D_REENTRANT:-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
# If hpux10-gcc fails, try this one:
|
# If hpux10-gcc fails, try this one:
|
||||||
"hpux10-brokengcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::-D_REENTRANT:-Wl,+s -ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"hpux10-brokengcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::-D_REENTRANT:-ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
# HPUX 11.X from www.globus.org.
|
# HPUX 11.X from www.globus.org.
|
||||||
# Only works on PA-RISC 2.0 cpus, and not optimized. Why?
|
# Only works on PA-RISC 2.0 cpus, and not optimized. Why?
|
||||||
@@ -264,13 +273,43 @@ my %table=(
|
|||||||
#### HP MPE/iX http://jazz.external.hp.com/src/openssl/
|
#### HP MPE/iX http://jazz.external.hp.com/src/openssl/
|
||||||
"MPE/iX-gcc", "gcc:-D_ENDIAN -DBN_DIV2W -O3 -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB::(unknown):-L/SYSLOG/PUB -lsyslog -lsocket -lcurses:BN_LLONG DES_PTR DES_UNROLL DES_RISC1:::",
|
"MPE/iX-gcc", "gcc:-D_ENDIAN -DBN_DIV2W -O3 -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB::(unknown):-L/SYSLOG/PUB -lsyslog -lsocket -lcurses:BN_LLONG DES_PTR DES_UNROLL DES_RISC1:::",
|
||||||
|
|
||||||
# Dec Alpha, OSF/1 - the alpha164-cc is the flags for a 21164A with
|
#### PARISC Linux setups
|
||||||
# the new compiler
|
"linux-parisc","gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DBN_DIV2W::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::",
|
||||||
|
|
||||||
|
# Dec Alpha, OSF/1 - the alpha164-cc is historical, for the conversion
|
||||||
|
# from the older DEC C Compiler to the newer compiler. It's now the
|
||||||
|
# same as the preferred entry, alpha-cc. If you are still using the
|
||||||
|
# older compiler (you're at 3.x or earlier, or perhaps very early 4.x)
|
||||||
|
# you should use `alphaold-cc'.
|
||||||
|
#
|
||||||
|
# "What's in a name? That which we call a rose
|
||||||
|
# By any other word would smell as sweet."
|
||||||
|
#
|
||||||
|
# - William Shakespeare, "Romeo & Juliet", Act II, scene II.
|
||||||
|
#
|
||||||
|
# For OSF/1 3.2b and earlier, and Digital UNIX 3.2c - 3.2g, with the
|
||||||
|
# vendor compiler, use alphaold-cc.
|
||||||
|
# For Digital UNIX 4.0 - 4.0e, with the vendor compiler, use alpha-cc.
|
||||||
|
# For Tru64 UNIX 4.f - current, with the vendor compiler, use alpha-cc.
|
||||||
|
#
|
||||||
|
# There's also an alternate target available (which `config' will never
|
||||||
|
# select) called alpha-cc-rpath. This target builds an RPATH into the
|
||||||
|
# shared libraries, which is very convenient on Tru64 since binaries
|
||||||
|
# linked against that shared library will automatically inherit that RPATH,
|
||||||
|
# and hence know where to look for the openssl libraries, even if they're in
|
||||||
|
# an odd place.
|
||||||
|
#
|
||||||
# For gcc, the following gave a %50 speedup on a 164 over the 'DES_INT' version
|
# For gcc, the following gave a %50 speedup on a 164 over the 'DES_INT' version
|
||||||
"alpha-gcc","gcc:-O3::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_RISC1:asm/alpha.o:::::::::dlfcn:tru64-shared::.so",
|
#
|
||||||
"alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK:asm/alpha.o:::::::::dlfcn:tru64-shared::.so",
|
"alpha-gcc","gcc:-O3::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_RISC1:${alpha_asm}:dlfcn:alpha-osf1-shared:::.so",
|
||||||
"alpha164-cc", "cc:-std1 -tune host -fast -readonly_strings::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK:asm/alpha.o:::::::::dlfcn:tru64-shared::.so",
|
"alphaold-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared:::.so",
|
||||||
"FreeBSD-alpha","gcc:-DTERMIOS -O -fomit-frame-pointer::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"alpha164-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:tru64-shared:::.so",
|
||||||
|
"alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:tru64-shared:::.so",
|
||||||
|
"alpha-cc-rpath", "cc:-std1 -tune host -fast -readonly_strings::-pthread::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:tru64-shared-rpath:::.so",
|
||||||
|
#
|
||||||
|
# This probably belongs in a different section.
|
||||||
|
#
|
||||||
|
"FreeBSD-alpha","gcc:-DTERMIOS -O -fomit-frame-pointer::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
#### Alpha Linux with GNU C and Compaq C setups
|
#### Alpha Linux with GNU C and Compaq C setups
|
||||||
# Special notes:
|
# Special notes:
|
||||||
@@ -285,32 +324,34 @@ my %table=(
|
|||||||
#
|
#
|
||||||
# <appro@fy.chalmers.se>
|
# <appro@fy.chalmers.se>
|
||||||
#
|
#
|
||||||
"linux-alpha-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:asm/alpha.o:::::::::dlfcn:linux-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-alpha-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"linux-alpha+bwx-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:asm/alpha.o:::::::::dlfcn:linux-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-alpha+bwx-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:asm/alpha.o::",
|
"linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
|
||||||
"linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:asm/alpha.o::",
|
"linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
|
||||||
|
|
||||||
# assembler versions -- currently defunct:
|
# assembler versions -- currently defunct:
|
||||||
##"OpenBSD-alpha","gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown):SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:asm/alpha.o::",
|
##"OpenBSD-alpha","gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown):SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:${alpha_asm}",
|
||||||
|
|
||||||
# The intel boxes :-), It would be worth seeing if bsdi-gcc can use the
|
# The intel boxes :-), It would be worth seeing if bsdi-gcc can use the
|
||||||
# bn86-elf.o file file since it is hand tweaked assembler.
|
# bn86-elf.o file file since it is hand tweaked assembler.
|
||||||
"linux-elf", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-elf", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"debug-linux-elf","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT:-lefence -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
|
"debug-linux-elf","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT:-lefence -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"debug-linux-elf-noefence","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
|
"debug-linux-elf-noefence","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
|
||||||
"linux-aout", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}",
|
"linux-aout", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}",
|
||||||
"linux-mipsel", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::BN_LLONG:::",
|
"linux-mipsel", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::BN_LLONG:::",
|
||||||
"linux-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::BN_LLONG:::",
|
"linux-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::BN_LLONG:::",
|
||||||
"linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::",
|
"linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"linux-m68k", "gcc:-DB_ENDIAN -DTERMIO -O2 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::",
|
"linux-m68k", "gcc:-DB_ENDIAN -DTERMIO -O2 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::",
|
||||||
"linux-ia64", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::SIXTY_FOUR_BIT_LONG::",
|
"linux-s390", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::",
|
||||||
"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-s390x", "gcc:-DB_ENDIAN -DTERMIO -DNO_ASM -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::SIXTY_FOUR_BIT_LONG:::::::::::linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"NetBSD-m68", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-ia64", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR:asm/ia64.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"NetBSD-x86", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"FreeBSD-elf", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::-pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"NetBSD-m68", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
"NetBSD-x86", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
"FreeBSD-elf", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::-pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"FreeBSD", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}",
|
"FreeBSD", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}",
|
||||||
"bsdi-gcc", "gcc:-O3 -ffast-math -DL_ENDIAN -DPERL5 -m486::(unknown)::RSA_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_bsdi_asm}",
|
"bsdi-gcc", "gcc:-O3 -ffast-math -DL_ENDIAN -DPERL5 -m486::(unknown)::RSA_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_bsdi_asm}",
|
||||||
"bsdi-elf-gcc", "gcc:-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"bsdi-elf-gcc", "gcc:-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown):-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"nextstep", "cc:-O -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::",
|
"nextstep", "cc:-O -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::",
|
||||||
"nextstep3.3", "cc:-O3 -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::",
|
"nextstep3.3", "cc:-O3 -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::",
|
||||||
# NCR MP-RAS UNIX ver 02.03.01
|
# NCR MP-RAS UNIX ver 02.03.01
|
||||||
@@ -319,22 +360,43 @@ my %table=(
|
|||||||
# QNX 4
|
# QNX 4
|
||||||
"qnx4", "cc:-DL_ENDIAN -DTERMIO::(unknown)::${x86_gcc_des} ${x86_gcc_opts}:",
|
"qnx4", "cc:-DL_ENDIAN -DTERMIO::(unknown)::${x86_gcc_des} ${x86_gcc_opts}:",
|
||||||
|
|
||||||
# Linux on ARM
|
# QNX 6
|
||||||
"linux-elf-arm","gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::::::::::dlfcn:linux-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"qnx6", "cc:-DL_ENDIAN -DTERMIOS::(unknown):-lsocket:${x86_gcc_des} ${x86_gcc_opts}:",
|
||||||
|
|
||||||
# UnixWare 2.0
|
# Linux on ARM
|
||||||
"unixware-2.0","cc:-O -DFILIO_H::(unknown):-lsocket -lnsl:${x86_gcc_des} ${x86_gcc_opts}:::",
|
"linux-elf-arm","gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"unixware-2.0-pentium","cc:-O -DFILIO_H -Kpentium -Kthread::(unknown):-lsocket -lnsl:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
|
||||||
|
# UnixWare 2.0x fails destest with -O
|
||||||
|
"unixware-2.0","cc:-DFILIO_H::-Kthread:-lsocket -lnsl -lx:${x86_gcc_des} ${x86_gcc_opts}:::",
|
||||||
|
"unixware-2.0-pentium","cc:-DFILIO_H -Kpentium::-Kthread:-lsocket -lnsl -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
|
||||||
|
# UnixWare 2.1
|
||||||
|
"unixware-2.1","cc:-O -DFILIO_H::-Kthread:-lsocket -lnsl -lx:${x86_gcc_des} ${x86_gcc_opts}:::",
|
||||||
|
"unixware-2.1-pentium","cc:-O -DFILIO_H -Kpentium::-Kthread:-lsocket -lnsl -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"unixware-2.1-p6","cc:-O -DFILIO_H -Kp6::-Kthread:-lsocket -lnsl -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
|
||||||
# UnixWare 7
|
# UnixWare 7
|
||||||
"unixware-7","cc:-O -DFILIO_H -Kalloca::-Kthread:-lsocket -lnsl:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
"unixware-7","cc:-O -DFILIO_H -Kalloca::-Kthread:-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"unixware-7-pentium","cc:-O -DFILIO_H -Kalloca -Kpentium::-Kthread:-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"unixware-7-pentium_pro","cc:-O -DFILIO_H -Kalloca -Kpentium_pro::-Kthread:-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"unixware-7-gcc","gcc:-DL_ENDIAN -DFILIO_H -O3 -fomit-frame-pointer -m486 -Wall::-D_REENTRANT:-lsocket -lnsl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::dlfcn:gnu-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
|
# OpenUNIX 8
|
||||||
|
"OpenUNIX-8","cc:-O -DFILIO_H -Kalloca::-Kthread:-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"OpenUNIX-8-gcc","gcc:-O -DFILIO_H -fomit-frame-pointer::-pthread:-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"OpenUNIX-8-pentium","cc:-O -DFILIO_H -Kalloca -Kpentium::-Kthread:-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"OpenUNIX-8-pentium_pro","cc:-O -DFILIO_H -Kalloca -Kpentium_pro::-Kthread:-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
"OpenUNIX-8-shared","cc:-O -DFILIO_H -Kalloca::-Kthread:-lsocket -lnsl:MD2_CHAR RC4_INDEX ${x86_gcc_des}::::::::::dlfcn:svr5-shared:-Kpic",
|
||||||
|
"OpenUNIX-8-gcc-shared","gcc:-O3 -DFILIO_H -fomit-frame-pointer::-pthread:-lsocket -lnsl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:svr5-shared:-fPIC",
|
||||||
|
|
||||||
# IBM's AIX.
|
# IBM's AIX.
|
||||||
"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-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
||||||
|
|
||||||
#
|
#
|
||||||
# Cray T90 (SDSC)
|
# Cray T90 and similar (SDSC)
|
||||||
# It's Big-endian, but the algorithms work properly when B_ENDIAN is NOT
|
# It's Big-endian, but the algorithms work properly when B_ENDIAN is NOT
|
||||||
# defined. The T90 ints and longs are 8 bytes long, and apparently the
|
# defined. The T90 ints and longs are 8 bytes long, and apparently the
|
||||||
# B_ENDIAN code assumes 4 byte ints. Fortunately, the non-B_ENDIAN and
|
# B_ENDIAN code assumes 4 byte ints. Fortunately, the non-B_ENDIAN and
|
||||||
@@ -344,7 +406,10 @@ my %table=(
|
|||||||
#'Taking the address of a bit field is not allowed. '
|
#'Taking the address of a bit field is not allowed. '
|
||||||
#'An expression with bit field exists as the operand of "sizeof" '
|
#'An expression with bit field exists as the operand of "sizeof" '
|
||||||
# (written by Wayne Schroeder <schroede@SDSC.EDU>)
|
# (written by Wayne Schroeder <schroede@SDSC.EDU>)
|
||||||
"cray-t90-cc", "cc: -DBIT_FIELD_LIMITS -DTERMIOS::(unknown)::SIXTY_FOUR_BIT_LONG DES_INT:::",
|
#
|
||||||
|
# j90 is considered the base machine type for unicos machines,
|
||||||
|
# so this configuration is now called "cray-j90" ...
|
||||||
|
"cray-j90", "cc: -DBIT_FIELD_LIMITS -DTERMIOS::(unknown)::SIXTY_FOUR_BIT_LONG DES_INT:::",
|
||||||
|
|
||||||
#
|
#
|
||||||
# Cray T3E (Research Center Juelich, beckman@acl.lanl.gov)
|
# Cray T3E (Research Center Juelich, beckman@acl.lanl.gov)
|
||||||
@@ -358,13 +423,19 @@ my %table=(
|
|||||||
|
|
||||||
# DGUX, 88100.
|
# DGUX, 88100.
|
||||||
"dgux-R3-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown)::RC4_INDEX DES_UNROLL:::",
|
"dgux-R3-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown)::RC4_INDEX DES_UNROLL:::",
|
||||||
"dgux-R4-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown):-lnsl -lsocket:RC4_INDEX:RC4_INDEX DES_UNROLL:::",
|
"dgux-R4-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown):-lnsl -lsocket:RC4_INDEX DES_UNROLL:::",
|
||||||
"dgux-R4-x86-gcc", "gcc:-O3 -fomit-frame-pointer -DL_ENDIAN::(unknown):-lnsl -lsocket:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
"dgux-R4-x86-gcc", "gcc:-O3 -fomit-frame-pointer -DL_ENDIAN::(unknown):-lnsl -lsocket:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
||||||
|
|
||||||
|
# SCO 3 - Tim Rice <tim@multitalents.net>
|
||||||
|
"sco3-gcc", "gcc:-O3 -fomit-frame-pointer -Dssize_t=int -DNO_SYS_UN_H::(unknown):-lsocket:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::", # the SCO assembler doesn't seem to like our assembler files ...
|
||||||
|
|
||||||
# SCO 5 - Ben Laurie <ben@algroup.co.uk> says the -O breaks the
|
# SCO 5 - Ben Laurie <ben@algroup.co.uk> says the -O breaks the
|
||||||
# SCO cc.
|
# SCO cc.
|
||||||
"sco5-cc", "cc:::(unknown):-lsocket:${x86_gcc_des} ${x86_gcc_opts}:::", # des options?
|
"sco5-cc", "cc:-belf::(unknown):-lsocket -lresolv:${x86_gcc_des} ${x86_gcc_opts}:::", # des options?
|
||||||
|
"sco5-cc-pentium", "cc:-Kpentium::(unknown):-lsocket:${x86_gcc_des} ${x86_gcc_opts}:::", # des options?
|
||||||
"sco5-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown):-lsocket:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::", # the SCO assembler doesn't seem to like our assembler files ...
|
"sco5-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown):-lsocket:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::", # the SCO assembler doesn't seem to like our assembler files ...
|
||||||
|
"sco5-cc-shared","cc:-belf:::-lsocket -lresolv -lnsl:MD2_CHAR RC4_INDEX ${x86_gcc_des}::::::::::dlfcn:svr3-shared:-Kpic",
|
||||||
|
"sco5-gcc-shared","gcc:-O3 -DFILIO_H -fomit-frame-pointer:::-lsocket -lresolv -lnsl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:svr3-shared:-fPIC",
|
||||||
|
|
||||||
# Sinix/ReliantUNIX RM400
|
# Sinix/ReliantUNIX RM400
|
||||||
# NOTE: The CDS++ Compiler up to V2.0Bsomething has the IRIX_CC_BUG optimizer problem. Better use -g */
|
# NOTE: The CDS++ Compiler up to V2.0Bsomething has the IRIX_CC_BUG optimizer problem. Better use -g */
|
||||||
@@ -375,6 +446,12 @@ my %table=(
|
|||||||
# SIEMENS BS2000/OSD: an EBCDIC-based mainframe
|
# SIEMENS BS2000/OSD: an EBCDIC-based mainframe
|
||||||
"BS2000-OSD","c89:-O -XLLML -XLLMK -XL -DB_ENDIAN -DTERMIOS -DCHARSET_EBCDIC::(unknown):-lsocket -lnsl:THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:::",
|
"BS2000-OSD","c89:-O -XLLML -XLLMK -XL -DB_ENDIAN -DTERMIOS -DCHARSET_EBCDIC::(unknown):-lsocket -lnsl:THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:::",
|
||||||
|
|
||||||
|
# OS/390 Unix an EBCDIC-based Unix system on IBM mainframe
|
||||||
|
# You need to compile using the c89.sh wrapper in the tools directory, because the
|
||||||
|
# IBM compiler does not like the -L switch after any object modules.
|
||||||
|
#
|
||||||
|
"OS390-Unix","c89.sh:-O -DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H -D_ALL_SOURCE::(unknown)::THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:::",
|
||||||
|
|
||||||
# Windows NT, Microsoft Visual C++ 4.0
|
# Windows NT, Microsoft Visual C++ 4.0
|
||||||
|
|
||||||
"VC-NT","cl:::::BN_LLONG RC4_INDEX ${x86_gcc_opts}::::::::::win32",
|
"VC-NT","cl:::::BN_LLONG RC4_INDEX ${x86_gcc_opts}::::::::::win32",
|
||||||
@@ -393,8 +470,9 @@ my %table=(
|
|||||||
# and its library files in util/pl/*)
|
# and its library files in util/pl/*)
|
||||||
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
||||||
|
|
||||||
# CygWin32
|
# Cygwin
|
||||||
"CygWin32", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::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",
|
||||||
|
|
||||||
# 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)::::::",
|
||||||
@@ -403,24 +481,52 @@ my %table=(
|
|||||||
##"ultrix","cc:-O2 -DNOPROTO -DNOCONST -DL_ENDIAN::(unknown)::::::",
|
##"ultrix","cc:-O2 -DNOPROTO -DNOCONST -DL_ENDIAN::(unknown)::::::",
|
||||||
|
|
||||||
# Some OpenBSD from Bob Beck <beck@obtuse.com>
|
# Some OpenBSD from Bob Beck <beck@obtuse.com>
|
||||||
"OpenBSD-alpha","gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown)::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"OpenBSD-alpha","gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown)::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"OpenBSD-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -m486::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"OpenBSD-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -m486::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"OpenBSD", "gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown)::BN_LLONG RC2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"OpenBSD", "gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown)::BN_LLONG RC2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"OpenBSD-mips","gcc:-O2 -DL_ENDIAN::(unknown):BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR:::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"OpenBSD-mips","gcc:-O2 -DL_ENDIAN::(unknown):BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR:::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
##### MacOS X (a.k.a. Rhapsody) setup
|
##### MacOS X (a.k.a. Rhapsody or Darwin) setup
|
||||||
"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::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::::::::::darwin-shared:-fPIC:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||||
|
|
||||||
##### 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-ppc405","ccppc:-g -msoft-float -mlongcall -DVXWORKS -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::-r:::::",
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
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
|
||||||
BC-16 Mingw32);
|
BC-16 Mingw32);
|
||||||
|
|
||||||
|
my $idx = 0;
|
||||||
|
my $idx_cc = $idx++;
|
||||||
|
my $idx_cflags = $idx++;
|
||||||
|
my $idx_unistd = $idx++;
|
||||||
|
my $idx_thread_cflag = $idx++;
|
||||||
|
my $idx_lflags = $idx++;
|
||||||
|
my $idx_bn_ops = $idx++;
|
||||||
|
my $idx_bn_obj = $idx++;
|
||||||
|
my $idx_des_obj = $idx++;
|
||||||
|
my $idx_bf_obj = $idx++;
|
||||||
|
my $idx_md5_obj = $idx++;
|
||||||
|
my $idx_sha1_obj = $idx++;
|
||||||
|
my $idx_cast_obj = $idx++;
|
||||||
|
my $idx_rc4_obj = $idx++;
|
||||||
|
my $idx_rmd160_obj = $idx++;
|
||||||
|
my $idx_rc5_obj = $idx++;
|
||||||
|
my $idx_dso_scheme = $idx++;
|
||||||
|
my $idx_shared_target = $idx++;
|
||||||
|
my $idx_shared_cflag = $idx++;
|
||||||
|
my $idx_shared_ldflag = $idx++;
|
||||||
|
my $idx_shared_extension = $idx++;
|
||||||
|
my $idx_ranlib = $idx++;
|
||||||
|
|
||||||
my $prefix="";
|
my $prefix="";
|
||||||
my $openssldir="";
|
my $openssldir="";
|
||||||
|
my $exe_ext="";
|
||||||
my $install_prefix="";
|
my $install_prefix="";
|
||||||
my $no_threads=0;
|
my $no_threads=0;
|
||||||
my $no_shared=1;
|
my $no_shared=1;
|
||||||
@@ -448,10 +554,10 @@ my $md5_obj="";
|
|||||||
my $sha1_obj="";
|
my $sha1_obj="";
|
||||||
my $rmd160_obj="";
|
my $rmd160_obj="";
|
||||||
my $processor="";
|
my $processor="";
|
||||||
my $ranlib;
|
my $default_ranlib;
|
||||||
my $perl;
|
my $perl;
|
||||||
|
|
||||||
$ranlib=&which("ranlib") or $ranlib="true";
|
$default_ranlib= &which("ranlib") or $default_ranlib="true";
|
||||||
$perl=$ENV{'PERL'} or $perl=&which("perl5") or $perl=&which("perl")
|
$perl=$ENV{'PERL'} or $perl=&which("perl5") or $perl=&which("perl")
|
||||||
or $perl="perl";
|
or $perl="perl";
|
||||||
|
|
||||||
@@ -490,24 +596,16 @@ PROCESS_ARGS:
|
|||||||
foreach (@argvcopy)
|
foreach (@argvcopy)
|
||||||
{
|
{
|
||||||
s /^-no-/no-/; # some people just can't read the instructions
|
s /^-no-/no-/; # some people just can't read the instructions
|
||||||
if (/^no-asm$/)
|
if (/^--test-sanity$/)
|
||||||
|
{
|
||||||
|
exit(&test_sanity());
|
||||||
|
}
|
||||||
|
elsif (/^no-asm$/)
|
||||||
{
|
{
|
||||||
$no_asm=1;
|
$no_asm=1;
|
||||||
$flags .= "-DNO_ASM ";
|
$flags .= "-DNO_ASM ";
|
||||||
$openssl_other_defines .= "#define NO_ASM\n";
|
$openssl_other_defines .= "#define NO_ASM\n";
|
||||||
}
|
}
|
||||||
elsif (/^no-hw-(.+)$/)
|
|
||||||
{
|
|
||||||
my $hw=$1;
|
|
||||||
$hw =~ tr/[a-z]/[A-Z]/;
|
|
||||||
$flags .= "-DNO_HW_$hw ";
|
|
||||||
$openssl_other_defines .= "#define NO_HW_$hw\n";
|
|
||||||
}
|
|
||||||
elsif (/^no-hw$/)
|
|
||||||
{
|
|
||||||
$flags .= "-DNO_HW ";
|
|
||||||
$openssl_other_defines .= "#define NO_HW\n";
|
|
||||||
}
|
|
||||||
elsif (/^no-dso$/)
|
elsif (/^no-dso$/)
|
||||||
{ $no_dso=1; }
|
{ $no_dso=1; }
|
||||||
elsif (/^no-threads$/)
|
elsif (/^no-threads$/)
|
||||||
@@ -631,12 +729,17 @@ if ($target eq "LIST") {
|
|||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($target =~ m/^CygWin32(-.*)$/) {
|
||||||
|
$target = "Cygwin".$1;
|
||||||
|
}
|
||||||
|
|
||||||
print "Configuring for $target\n";
|
print "Configuring for $target\n";
|
||||||
|
|
||||||
&usage if (!defined($table{$target}));
|
&usage if (!defined($table{$target}));
|
||||||
|
|
||||||
my $IsWindows=scalar grep /^$target$/,@WinTargets;
|
my $IsWindows=scalar grep /^$target$/,@WinTargets;
|
||||||
|
|
||||||
|
$exe_ext=".exe" if ($target eq "Cygwin");
|
||||||
$openssldir="/usr/local/ssl" if ($openssldir eq "" and $prefix eq "");
|
$openssldir="/usr/local/ssl" if ($openssldir eq "" and $prefix eq "");
|
||||||
$prefix=$openssldir if $prefix eq "";
|
$prefix=$openssldir if $prefix eq "";
|
||||||
|
|
||||||
@@ -649,9 +752,29 @@ $openssldir=$prefix . "/" . $openssldir if $openssldir !~ /^\//;
|
|||||||
|
|
||||||
print "IsWindows=$IsWindows\n";
|
print "IsWindows=$IsWindows\n";
|
||||||
|
|
||||||
(my $cc,my $cflags,my $unistd,my $thread_cflag,my $lflags,my $bn_ops,my $bn_obj,my $des_obj,my $bf_obj,
|
my @fields = split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
|
||||||
$md5_obj,$sha1_obj,my $cast_obj,my $rc4_obj,$rmd160_obj,my $rc5_obj,my $dso_scheme,my $shared_target,my $shared_cflag,my $shared_extension)=
|
my $cc = $fields[$idx_cc];
|
||||||
split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
|
my $cflags = $fields[$idx_cflags];
|
||||||
|
my $unistd = $fields[$idx_unistd];
|
||||||
|
my $thread_cflag = $fields[$idx_thread_cflag];
|
||||||
|
my $lflags = $fields[$idx_lflags];
|
||||||
|
my $bn_ops = $fields[$idx_bn_ops];
|
||||||
|
my $bn_obj = $fields[$idx_bn_obj];
|
||||||
|
my $des_obj = $fields[$idx_des_obj];
|
||||||
|
my $bf_obj = $fields[$idx_bf_obj];
|
||||||
|
my $md5_obj = $fields[$idx_md5_obj];
|
||||||
|
my $sha1_obj = $fields[$idx_sha1_obj];
|
||||||
|
my $cast_obj = $fields[$idx_cast_obj];
|
||||||
|
my $rc4_obj = $fields[$idx_rc4_obj];
|
||||||
|
my $rmd160_obj = $fields[$idx_rmd160_obj];
|
||||||
|
my $rc5_obj = $fields[$idx_rc5_obj];
|
||||||
|
my $dso_scheme = $fields[$idx_dso_scheme];
|
||||||
|
my $shared_target = $fields[$idx_shared_target];
|
||||||
|
my $shared_cflag = $fields[$idx_shared_cflag];
|
||||||
|
my $shared_ldflag = $fields[$idx_shared_ldflag];
|
||||||
|
my $shared_extension = $fields[$idx_shared_extension];
|
||||||
|
my $ranlib = $fields[$idx_ranlib];
|
||||||
|
|
||||||
$cflags="$flags$cflags" if ($flags ne "");
|
$cflags="$flags$cflags" if ($flags ne "");
|
||||||
|
|
||||||
# The DSO code currently always implements all functions so that no
|
# The DSO code currently always implements all functions so that no
|
||||||
@@ -743,6 +866,11 @@ else
|
|||||||
$no_shared = 1;
|
$no_shared = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($ranlib eq "")
|
||||||
|
{
|
||||||
|
$ranlib = $default_ranlib;
|
||||||
|
}
|
||||||
|
|
||||||
#my ($bn1)=split(/\s+/,$bn_obj);
|
#my ($bn1)=split(/\s+/,$bn_obj);
|
||||||
#$bn1 = "" unless defined $bn1;
|
#$bn1 = "" unless defined $bn1;
|
||||||
#$bn1=$bn_asm unless ($bn1 =~ /\.o$/);
|
#$bn1=$bn_asm unless ($bn1 =~ /\.o$/);
|
||||||
@@ -834,6 +962,7 @@ while (<IN>)
|
|||||||
s/^CFLAG=.*$/CFLAG= $cflags/;
|
s/^CFLAG=.*$/CFLAG= $cflags/;
|
||||||
s/^DEPFLAG=.*$/DEPFLAG= $depflags/;
|
s/^DEPFLAG=.*$/DEPFLAG= $depflags/;
|
||||||
s/^EX_LIBS=.*$/EX_LIBS= $lflags/;
|
s/^EX_LIBS=.*$/EX_LIBS= $lflags/;
|
||||||
|
s/^EXE_EXT=.*$/EXE_EXT= $exe_ext/;
|
||||||
s/^BN_ASM=.*$/BN_ASM= $bn_obj/;
|
s/^BN_ASM=.*$/BN_ASM= $bn_obj/;
|
||||||
s/^DES_ENC=.*$/DES_ENC= $des_obj/;
|
s/^DES_ENC=.*$/DES_ENC= $des_obj/;
|
||||||
s/^BF_ENC=.*$/BF_ENC= $bf_obj/;
|
s/^BF_ENC=.*$/BF_ENC= $bf_obj/;
|
||||||
@@ -859,6 +988,7 @@ while (<IN>)
|
|||||||
my $sotmp = $1;
|
my $sotmp = $1;
|
||||||
s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
|
s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
|
||||||
}
|
}
|
||||||
|
s/^SHARED_LDFLAGS=.*/SHARED_LDFLAGS=$shared_ldflag/;
|
||||||
print OUT $_."\n";
|
print OUT $_."\n";
|
||||||
}
|
}
|
||||||
close(IN);
|
close(IN);
|
||||||
@@ -1146,7 +1276,7 @@ sub print_table_entry
|
|||||||
my $bn_obj,my $des_obj,my $bf_obj,
|
my $bn_obj,my $des_obj,my $bf_obj,
|
||||||
my $md5_obj,my $sha1_obj,my $cast_obj,my $rc4_obj,my $rmd160_obj,
|
my $md5_obj,my $sha1_obj,my $cast_obj,my $rc4_obj,my $rmd160_obj,
|
||||||
my $rc5_obj,my $dso_scheme,my $shared_target,my $shared_cflag,
|
my $rc5_obj,my $dso_scheme,my $shared_target,my $shared_cflag,
|
||||||
my $shared_extension)=
|
my $shared_ldflag,my $shared_extension,my $ranlib)=
|
||||||
split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
|
split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
|
||||||
|
|
||||||
print <<EOF
|
print <<EOF
|
||||||
@@ -1170,6 +1300,44 @@ sub print_table_entry
|
|||||||
\$dso_scheme = $dso_scheme
|
\$dso_scheme = $dso_scheme
|
||||||
\$shared_target= $shared_target
|
\$shared_target= $shared_target
|
||||||
\$shared_cflag = $shared_cflag
|
\$shared_cflag = $shared_cflag
|
||||||
|
\$shared_ldflag = $shared_ldflag
|
||||||
\$shared_extension = $shared_extension
|
\$shared_extension = $shared_extension
|
||||||
|
\$ranlib = $ranlib
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub test_sanity
|
||||||
|
{
|
||||||
|
my $errorcnt = 0;
|
||||||
|
|
||||||
|
print STDERR "=" x 70, "\n";
|
||||||
|
print STDERR "=== SANITY TESTING!\n";
|
||||||
|
print STDERR "=== No configuration will be done, all other arguments will be ignored!\n";
|
||||||
|
print STDERR "=" x 70, "\n";
|
||||||
|
|
||||||
|
foreach $target (sort keys %table)
|
||||||
|
{
|
||||||
|
@fields = split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
|
||||||
|
|
||||||
|
if ($fields[$idx_dso_scheme-1] =~ /^(dl|dlfcn|win32|vms)$/)
|
||||||
|
{
|
||||||
|
$errorcnt++;
|
||||||
|
print STDERR "SANITY ERROR: '$target' has the dso_scheme [$idx_dso_scheme] values\n";
|
||||||
|
print STDERR " in the previous field\n";
|
||||||
|
}
|
||||||
|
elsif ($fields[$idx_dso_scheme+1] =~ /^(dl|dlfcn|win32|vms)$/)
|
||||||
|
{
|
||||||
|
$errorcnt++;
|
||||||
|
print STDERR "SANITY ERROR: '$target' has the dso_scheme [$idx_dso_scheme] values\n";
|
||||||
|
print STDERR " in the following field\n";
|
||||||
|
}
|
||||||
|
elsif ($fields[$idx_dso_scheme] !~ /^(dl|dlfcn|win32|vms|)$/)
|
||||||
|
{
|
||||||
|
$errorcnt++;
|
||||||
|
print STDERR "SANITY ERROR: '$target' has the dso_scheme [$idx_dso_scheme] field = ",$fields[$idx_dso_scheme],"\n";
|
||||||
|
print STDERR " valid values are 'dl', 'dlfcn', 'win32' and 'vms'\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print STDERR "No sanity errors detected!\n" if $errorcnt == 0;
|
||||||
|
return $errorcnt;
|
||||||
|
}
|
||||||
|
|||||||
624
FAQ
624
FAQ
@@ -1,20 +1,24 @@
|
|||||||
OpenSSL - Frequently Asked Questions
|
OpenSSL - Frequently Asked Questions
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
|
[MISC] Miscellaneous questions
|
||||||
|
|
||||||
* Which is the current version of OpenSSL?
|
* Which is the current version of OpenSSL?
|
||||||
* Where is the documentation?
|
* Where is the documentation?
|
||||||
* How can I contact the OpenSSL developers?
|
* How can I contact the OpenSSL developers?
|
||||||
* Do I need patent licenses to use OpenSSL?
|
|
||||||
* Is OpenSSL thread-safe?
|
|
||||||
* Why do I get a "PRNG not seeded" error message?
|
|
||||||
* Why does the linker complain about undefined symbols?
|
|
||||||
* Where can I get a compiled version of OpenSSL?
|
* Where can I get a compiled version of OpenSSL?
|
||||||
* I've compiled a program under Windows and it crashes: why?
|
* Why aren't tools like 'autoconf' and 'libtool' used?
|
||||||
* How do I read or write a DER encoded buffer using the ASN1 functions?
|
* What is an 'engine' version?
|
||||||
* I've tried using <M_some_evil_pkcs12_macro> and I get errors why?
|
|
||||||
* I've called <some function> and it fails, why?
|
[LEGAL] Legal questions
|
||||||
* I just get a load of numbers for the error output, what do they mean?
|
|
||||||
* Why do I get errors about unknown algorithms?
|
* Do I need patent licenses to use OpenSSL?
|
||||||
|
* Can I use OpenSSL with GPL software?
|
||||||
|
|
||||||
|
[USER] Questions on using the OpenSSL applications
|
||||||
|
|
||||||
|
* Why do I get a "PRNG not seeded" error message?
|
||||||
|
* Why do I get an "unable to write 'random state'" error message?
|
||||||
* How do I create certificates or certificate requests?
|
* How do I create certificates or certificate requests?
|
||||||
* Why can't I create certificate requests?
|
* Why can't I create certificate requests?
|
||||||
* Why does <SSL program> fail with a certificate verify error?
|
* Why does <SSL program> fail with a certificate verify error?
|
||||||
@@ -22,19 +26,40 @@ OpenSSL - Frequently Asked Questions
|
|||||||
* How can I create DSA certificates?
|
* How can I create DSA certificates?
|
||||||
* Why can't I make an SSL connection using a DSA certificate?
|
* Why can't I make an SSL connection using a DSA certificate?
|
||||||
* How can I remove the passphrase on a private key?
|
* How can I remove the passphrase on a private key?
|
||||||
* Why can't the OpenSSH configure script detect OpenSSL?
|
* Why can't I use OpenSSL certificates with SSL client authentication?
|
||||||
|
* Why does my browser give a warning about a mismatched hostname?
|
||||||
|
* How do I install a CA certificate into a browser?
|
||||||
|
|
||||||
|
[BUILD] Questions about building and testing OpenSSL
|
||||||
|
|
||||||
|
* 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 compilation fail on Alpha True64 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++?
|
||||||
* Why aren't tools like 'autoconf' and 'libtool' used?
|
|
||||||
|
|
||||||
|
[PROG] Questions about programming with OpenSSL
|
||||||
|
|
||||||
|
* Is OpenSSL thread-safe?
|
||||||
|
* I've compiled a program under Windows and it crashes: why?
|
||||||
|
* How do I read or write a DER encoded buffer using the ASN1 functions?
|
||||||
|
* I've tried using <M_some_evil_pkcs12_macro> and I get errors why?
|
||||||
|
* I've called <some function> and it fails, why?
|
||||||
|
* I just get a load of numbers for the error output, what do they mean?
|
||||||
|
* Why do I get errors about unknown algorithms?
|
||||||
|
* Why can't the OpenSSH configure script detect OpenSSL?
|
||||||
|
* Can I use OpenSSL's SSL library with non-blocking I/O?
|
||||||
|
* Why doesn't my server application receive a client certificate?
|
||||||
|
|
||||||
|
===============================================================================
|
||||||
|
|
||||||
|
[MISC] ========================================================================
|
||||||
|
|
||||||
* 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.6 was released on September 24th, 2000.
|
OpenSSL 0.9.6c was released on December 21st, 2001.
|
||||||
|
|
||||||
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:
|
||||||
@@ -80,6 +105,33 @@ OpenSSL. Information on the OpenSSL mailing lists is available from
|
|||||||
<URL: http://www.openssl.org>.
|
<URL: http://www.openssl.org>.
|
||||||
|
|
||||||
|
|
||||||
|
* Where can I get a compiled version of OpenSSL?
|
||||||
|
|
||||||
|
Some applications that use OpenSSL are distributed in binary form.
|
||||||
|
When using such an application, you don't need to install OpenSSL
|
||||||
|
yourself; the application will include the required parts (e.g. DLLs).
|
||||||
|
|
||||||
|
If you want to install OpenSSL on a Windows system and you don't have
|
||||||
|
a C compiler, read the "Mingw32" section of INSTALL.W32 for information
|
||||||
|
on how to obtain and install the free GNU C compiler.
|
||||||
|
|
||||||
|
A number of Linux and *BSD distributions include OpenSSL.
|
||||||
|
|
||||||
|
|
||||||
|
* Why aren't tools like 'autoconf' and 'libtool' used?
|
||||||
|
|
||||||
|
autoconf will probably be used in future OpenSSL versions. If it was
|
||||||
|
less Unix-centric, it might have been used much earlier.
|
||||||
|
|
||||||
|
* What is an 'engine' version?
|
||||||
|
|
||||||
|
With version 0.9.6 OpenSSL was extended to interface to external crypto
|
||||||
|
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
|
||||||
|
development line, so that the special release is no longer necessary.
|
||||||
|
|
||||||
|
[LEGAL] =======================================================================
|
||||||
|
|
||||||
* Do I need patent licenses to use OpenSSL?
|
* Do I need patent licenses to use OpenSSL?
|
||||||
|
|
||||||
The patents section of the README file lists patents that may apply to
|
The patents section of the README file lists patents that may apply to
|
||||||
@@ -91,17 +143,25 @@ You can configure OpenSSL so as not to use RC5 and IDEA by using
|
|||||||
./config no-rc5 no-idea
|
./config no-rc5 no-idea
|
||||||
|
|
||||||
|
|
||||||
* Is OpenSSL thread-safe?
|
* Can I use OpenSSL with GPL software?
|
||||||
|
|
||||||
Yes (with limitations: an SSL connection may not concurrently be used
|
On many systems including the major Linux and BSD distributions, yes (the
|
||||||
by multiple threads). On Windows and many Unix systems, OpenSSL
|
GPL does not place restrictions on using libraries that are part of the
|
||||||
automatically uses the multi-threaded versions of the standard
|
normal operating system distribution).
|
||||||
libraries. If your platform is not one of these, consult the INSTALL
|
|
||||||
file.
|
|
||||||
|
|
||||||
Multi-threaded applications must provide two callback functions to
|
On other systems, the situation is less clear. Some GPL software copyright
|
||||||
OpenSSL. This is described in the threads(3) manpage.
|
holders claim that you infringe on their rights if you use OpenSSL with
|
||||||
|
their software on operating systems that don't normally include OpenSSL.
|
||||||
|
|
||||||
|
If you develop open source software that uses OpenSSL, you may find it
|
||||||
|
useful to choose an other license than the GPL, or state explicitly that
|
||||||
|
"This program is released under the GPL with the additional exemption that
|
||||||
|
compiling, linking, and/or using OpenSSL is allowed." If you are using
|
||||||
|
GPL software developed by others, you may want to ask the copyright holder
|
||||||
|
for permission to use their software with OpenSSL.
|
||||||
|
|
||||||
|
|
||||||
|
[USER] ========================================================================
|
||||||
|
|
||||||
* Why do I get a "PRNG not seeded" error message?
|
* Why do I get a "PRNG not seeded" error message?
|
||||||
|
|
||||||
@@ -110,6 +170,7 @@ correctly. Many open source operating systems provide a "randomness
|
|||||||
device" that serves this purpose. On other systems, applications have
|
device" that serves this purpose. On other systems, applications have
|
||||||
to call the RAND_add() or RAND_seed() function with appropriate data
|
to call the RAND_add() or RAND_seed() function with appropriate data
|
||||||
before generating keys or performing public key encryption.
|
before generating keys or performing public key encryption.
|
||||||
|
(These functions initialize the pseudo-random number generator, PRNG.)
|
||||||
|
|
||||||
Some broken applications do not do this. As of version 0.9.5, the
|
Some broken applications do not do this. As of version 0.9.5, the
|
||||||
OpenSSL functions that need randomness report an error if the random
|
OpenSSL functions that need randomness report an error if the random
|
||||||
@@ -119,18 +180,36 @@ application you are using. It is likely that it never worked
|
|||||||
correctly. OpenSSL 0.9.5 and later make the error visible by refusing
|
correctly. OpenSSL 0.9.5 and later make the error visible by refusing
|
||||||
to perform potentially insecure encryption.
|
to perform potentially insecure encryption.
|
||||||
|
|
||||||
On systems without /dev/urandom, it is a good idea to use the Entropy
|
On systems without /dev/urandom and /dev/random, it is a good idea to
|
||||||
Gathering Demon; see the RAND_egd() manpage for details.
|
use the Entropy Gathering Demon (EGD); see the RAND_egd() manpage for
|
||||||
|
details. Starting with version 0.9.7, OpenSSL will automatically look
|
||||||
|
for an EGD socket at /var/run/egd-pool, /dev/egd-pool, /etc/egd-pool and
|
||||||
|
/etc/entropy.
|
||||||
|
|
||||||
Most components of the openssl command line tool try to use the
|
Most components of the openssl command line utility automatically try
|
||||||
file $HOME/.rnd (or $RANDFILE, if this environment variable is set)
|
to seed the random number generator from a file. The name of the
|
||||||
for seeding the PRNG. If this file does not exist or is too short,
|
default seeding file is determined as follows: If environment variable
|
||||||
the "PRNG not seeded" error message may occur.
|
RANDFILE is set, then it names the seeding file. Otherwise if
|
||||||
|
environment variable HOME is set, then the seeding file is $HOME/.rnd.
|
||||||
|
If neither RANDFILE nor HOME is set, versions up to OpenSSL 0.9.6 will
|
||||||
|
use file .rnd in the current directory while OpenSSL 0.9.6a uses no
|
||||||
|
default seeding file at all. OpenSSL 0.9.6b and later will behave
|
||||||
|
similarly to 0.9.6a, but will use a default of "C:\" for HOME on
|
||||||
|
Windows systems if the environment variable has not been set.
|
||||||
|
|
||||||
[Note to OpenSSL 0.9.5 users: The command "openssl rsa" in version
|
If the default seeding file does not exist or is too short, the "PRNG
|
||||||
0.9.5 does not do this and will fail on systems without /dev/urandom
|
not seeded" error message may occur.
|
||||||
when trying to password-encrypt an RSA key! This is a bug in the
|
|
||||||
library; try a later version instead.]
|
The openssl command line utility will write back a new state to the
|
||||||
|
default seeding file (and create this file if necessary) unless
|
||||||
|
there was no sufficient seeding.
|
||||||
|
|
||||||
|
Pointing $RANDFILE to an Entropy Gathering Daemon socket does not work.
|
||||||
|
Use the "-rand" option of the OpenSSL command line tools instead.
|
||||||
|
The $RANDFILE environment variable and $HOME/.rnd are only used by the
|
||||||
|
OpenSSL command line tools. Applications using the OpenSSL library
|
||||||
|
provide their own configuration options to specify the entropy source,
|
||||||
|
please check out the documentation coming the with application.
|
||||||
|
|
||||||
For Solaris 2.6, Tim Nibbe <tnibbe@sprint.net> and others have suggested
|
For Solaris 2.6, Tim Nibbe <tnibbe@sprint.net> and others have suggested
|
||||||
installing the SUNski package from Sun patch 105710-01 (Sparc) which
|
installing the SUNski package from Sun patch 105710-01 (Sparc) which
|
||||||
@@ -140,6 +219,133 @@ versions. However, be warned that /dev/random is usually a blocking
|
|||||||
device, which may have some effects on OpenSSL.
|
device, which may have some effects on OpenSSL.
|
||||||
|
|
||||||
|
|
||||||
|
* Why do I get an "unable to write 'random state'" error message?
|
||||||
|
|
||||||
|
|
||||||
|
Sometimes the openssl command line utility does not abort with
|
||||||
|
a "PRNG not seeded" error message, but complains that it is
|
||||||
|
"unable to write 'random state'". This message refers to the
|
||||||
|
default seeding file (see previous answer). A possible reason
|
||||||
|
is that no default filename is known because neither RANDFILE
|
||||||
|
nor HOME is set. (Versions up to 0.9.6 used file ".rnd" in the
|
||||||
|
current directory in this case, but this has changed with 0.9.6a.)
|
||||||
|
|
||||||
|
|
||||||
|
* How do I create certificates or certificate requests?
|
||||||
|
|
||||||
|
Check out the CA.pl(1) manual page. This provides a simple wrapper round
|
||||||
|
the 'req', 'verify', 'ca' and 'pkcs12' utilities. For finer control check
|
||||||
|
out the manual pages for the individual utilities and the certificate
|
||||||
|
extensions documentation (currently in doc/openssl.txt).
|
||||||
|
|
||||||
|
|
||||||
|
* Why can't I create certificate requests?
|
||||||
|
|
||||||
|
You typically get the error:
|
||||||
|
|
||||||
|
unable to find 'distinguished_name' in config
|
||||||
|
problems making Certificate Request
|
||||||
|
|
||||||
|
This is because it can't find the configuration file. Check out the
|
||||||
|
DIAGNOSTICS section of req(1) for more information.
|
||||||
|
|
||||||
|
|
||||||
|
* Why does <SSL program> fail with a certificate verify error?
|
||||||
|
|
||||||
|
This problem is usually indicated by log messages saying something like
|
||||||
|
"unable to get local issuer certificate" or "self signed certificate".
|
||||||
|
When a certificate is verified its root CA must be "trusted" by OpenSSL
|
||||||
|
this typically means that the CA certificate must be placed in a directory
|
||||||
|
or file and the relevant program configured to read it. The OpenSSL program
|
||||||
|
'verify' behaves in a similar way and issues similar error messages: check
|
||||||
|
the verify(1) program manual page for more information.
|
||||||
|
|
||||||
|
|
||||||
|
* Why can I only use weak ciphers when I connect to a server using OpenSSL?
|
||||||
|
|
||||||
|
This is almost certainly because you are using an old "export grade" browser
|
||||||
|
which only supports weak encryption. Upgrade your browser to support 128 bit
|
||||||
|
ciphers.
|
||||||
|
|
||||||
|
|
||||||
|
* How can I create DSA certificates?
|
||||||
|
|
||||||
|
Check the CA.pl(1) manual page for a DSA certificate example.
|
||||||
|
|
||||||
|
|
||||||
|
* Why can't I make an SSL connection to a server using a DSA certificate?
|
||||||
|
|
||||||
|
Typically you'll see a message saying there are no shared ciphers when
|
||||||
|
the same setup works fine with an RSA certificate. There are two possible
|
||||||
|
causes. The client may not support connections to DSA servers most web
|
||||||
|
browsers (including Netscape and MSIE) only support connections to servers
|
||||||
|
supporting RSA cipher suites. The other cause is that a set of DH parameters
|
||||||
|
has not been supplied to the server. DH parameters can be created with the
|
||||||
|
dhparam(1) command and loaded using the SSL_CTX_set_tmp_dh() for example:
|
||||||
|
check the source to s_server in apps/s_server.c for an example.
|
||||||
|
|
||||||
|
|
||||||
|
* How can I remove the passphrase on a private key?
|
||||||
|
|
||||||
|
Firstly you should be really *really* sure you want to do this. Leaving
|
||||||
|
a private key unencrypted is a major security risk. If you decide that
|
||||||
|
you do have to do this check the EXAMPLES sections of the rsa(1) and
|
||||||
|
dsa(1) manual pages.
|
||||||
|
|
||||||
|
|
||||||
|
* Why can't I use OpenSSL certificates with SSL client authentication?
|
||||||
|
|
||||||
|
What will typically happen is that when a server requests authentication
|
||||||
|
it will either not include your certificate or tell you that you have
|
||||||
|
no client certificates (Netscape) or present you with an empty list box
|
||||||
|
(MSIE). The reason for this is that when a server requests a client
|
||||||
|
certificate it includes a list of CAs names which it will accept. Browsers
|
||||||
|
will only let you select certificates from the list on the grounds that
|
||||||
|
there is little point presenting a certificate which the server will
|
||||||
|
reject.
|
||||||
|
|
||||||
|
The solution is to add the relevant CA certificate to your servers "trusted
|
||||||
|
CA list". How you do this depends on the server software in uses. You can
|
||||||
|
print out the servers list of acceptable CAs using the OpenSSL s_client tool:
|
||||||
|
|
||||||
|
openssl s_client -connect www.some.host:443 -prexit
|
||||||
|
|
||||||
|
If your server only requests certificates on certain URLs then you may need
|
||||||
|
to manually issue an HTTP GET command to get the list when s_client connects:
|
||||||
|
|
||||||
|
GET /some/page/needing/a/certificate.html
|
||||||
|
|
||||||
|
If your CA does not appear in the list then this confirms the problem.
|
||||||
|
|
||||||
|
|
||||||
|
* Why does my browser give a warning about a mismatched hostname?
|
||||||
|
|
||||||
|
Browsers expect the server's hostname to match the value in the commonName
|
||||||
|
(CN) field of the certificate. If it does not then you get a warning.
|
||||||
|
|
||||||
|
|
||||||
|
* How do I install a CA certificate into a browser?
|
||||||
|
|
||||||
|
The usual way is to send the DER encoded certificate to the browser as
|
||||||
|
MIME type application/x-x509-ca-cert, for example by clicking on an appropriate
|
||||||
|
link. On MSIE certain extensions such as .der or .cacert may also work, or you
|
||||||
|
can import the certificate using the certificate import wizard.
|
||||||
|
|
||||||
|
You can convert a certificate to DER form using the command:
|
||||||
|
|
||||||
|
openssl x509 -in ca.pem -outform DER -out ca.der
|
||||||
|
|
||||||
|
Occasionally someone suggests using a command such as:
|
||||||
|
|
||||||
|
openssl pkcs12 -export -out cacert.p12 -in cacert.pem -inkey cakey.pem
|
||||||
|
|
||||||
|
DO NOT DO THIS! This command will give away your CAs private key and
|
||||||
|
reduces its security to zero: allowing anyone to forge certificates in
|
||||||
|
whatever name they choose.
|
||||||
|
|
||||||
|
|
||||||
|
[BUILD] =======================================================================
|
||||||
|
|
||||||
* Why does the linker complain about undefined symbols?
|
* Why does the linker complain about undefined symbols?
|
||||||
|
|
||||||
Maybe the compilation was interrupted, and make doesn't notice that
|
Maybe the compilation was interrupted, and make doesn't notice that
|
||||||
@@ -164,25 +370,140 @@ If none of these helps, you may want to try using the current snapshot.
|
|||||||
If the problem persists, please submit a bug report.
|
If the problem persists, please submit a bug report.
|
||||||
|
|
||||||
|
|
||||||
* Where can I get a compiled version of OpenSSL?
|
* Why does the OpenSSL test fail with "bc: command not found"?
|
||||||
|
|
||||||
Some applications that use OpenSSL are distributed in binary form.
|
You didn't install "bc", the Unix calculator. If you want to run the
|
||||||
When using such an application, you don't need to install OpenSSL
|
tests, get GNU bc from ftp://ftp.gnu.org or from your OS distributor.
|
||||||
yourself; the application will include the required parts (e.g. DLLs).
|
|
||||||
|
|
||||||
If you want to install OpenSSL on a Windows system and you don't have
|
|
||||||
a C compiler, read the "Mingw32" section of INSTALL.W32 for information
|
|
||||||
on how to obtain and install the free GNU C compiler.
|
|
||||||
|
|
||||||
A number of Linux and *BSD distributions include OpenSSL.
|
* Why does the OpenSSL test fail with "bc: 1 no implemented"?
|
||||||
|
|
||||||
|
On some SCO installations or versions, bc has a bug that gets triggered
|
||||||
|
when you run the test suite (using "make test"). The message returned is
|
||||||
|
"bc: 1 not implemented".
|
||||||
|
|
||||||
|
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?
|
||||||
|
|
||||||
|
On some Alpha installations running Tru64 Unix and Compaq C, the compilation
|
||||||
|
of crypto/sha/sha_dgst.c fails with the message 'Fatal: Insufficient virtual
|
||||||
|
memory to continue compilation.' As far as the tests have shown, this may be
|
||||||
|
a compiler bug. What happens is that it eats up a lot of resident memory
|
||||||
|
to build something, probably a table. The problem is clearly in the
|
||||||
|
optimization code, because if one eliminates optimization completely (-O0),
|
||||||
|
the compilation goes through (and the compiler consumes about 2MB of resident
|
||||||
|
memory instead of 240MB or whatever one's limit is currently).
|
||||||
|
|
||||||
|
There are three options to solve this problem:
|
||||||
|
|
||||||
|
1. set your current data segment size soft limit higher. Experience shows
|
||||||
|
that about 241000 kbytes seems to be enough on an AlphaServer DS10. You do
|
||||||
|
this with the command 'ulimit -Sd nnnnnn', where 'nnnnnn' is the number of
|
||||||
|
kbytes to set the limit to.
|
||||||
|
|
||||||
|
2. If you have a hard limit that is lower than what you need and you can't
|
||||||
|
get it changed, you can compile all of OpenSSL with -O0 as optimization
|
||||||
|
level. This is however not a very nice thing to do for those who expect to
|
||||||
|
get the best result from OpenSSL. A bit more complicated solution is the
|
||||||
|
following:
|
||||||
|
|
||||||
|
----- snip:start -----
|
||||||
|
make DIRS=crypto SDIRS=sha "`grep '^CFLAG=' Makefile.ssl | \
|
||||||
|
sed -e 's/ -O[0-9] / -O0 /'`"
|
||||||
|
rm `ls crypto/*.o crypto/sha/*.o | grep -v 'sha_dgst\.o'`
|
||||||
|
make
|
||||||
|
----- snip:end -----
|
||||||
|
|
||||||
|
This will only compile sha_dgst.c with -O0, the rest with the optimization
|
||||||
|
level chosen by the configuration process. When the above is done, do the
|
||||||
|
test and installation and you're set.
|
||||||
|
|
||||||
|
|
||||||
|
* Why does the OpenSSL compilation fail with "ar: command not found"?
|
||||||
|
|
||||||
|
Getting this message is quite usual on Solaris 2, because Sun has hidden
|
||||||
|
away 'ar' and other development commands in directories that aren't in
|
||||||
|
$PATH by default. One of those directories is '/usr/ccs/bin'. The
|
||||||
|
quickest way to fix this is to do the following (it assumes you use sh
|
||||||
|
or any sh-compatible shell):
|
||||||
|
|
||||||
|
----- snip:start -----
|
||||||
|
PATH=${PATH}:/usr/ccs/bin; export PATH
|
||||||
|
----- snip:end -----
|
||||||
|
|
||||||
|
and then redo the compilation. What you should really do is make sure
|
||||||
|
'/usr/ccs/bin' is permanently in your $PATH, for example through your
|
||||||
|
'.profile' (again, assuming you use a sh-compatible shell).
|
||||||
|
|
||||||
|
|
||||||
|
* Why does the OpenSSL compilation fail on Win32 with VC++?
|
||||||
|
|
||||||
|
Sometimes, you may get reports from VC++ command line (cl) that it
|
||||||
|
can't find standard include files like stdio.h and other weirdnesses.
|
||||||
|
One possible cause is that the environment isn't correctly set up.
|
||||||
|
To solve that problem, one should run VCVARS32.BAT which is found in
|
||||||
|
the 'bin' subdirectory of the VC++ installation directory (somewhere
|
||||||
|
under 'Program Files'). This needs to be done prior to running NMAKE,
|
||||||
|
and the changes are only valid for the current DOS session.
|
||||||
|
|
||||||
|
|
||||||
|
[PROG] ========================================================================
|
||||||
|
|
||||||
|
* Is OpenSSL thread-safe?
|
||||||
|
|
||||||
|
Yes (with limitations: an SSL connection may not concurrently be used
|
||||||
|
by multiple threads). On Windows and many Unix systems, OpenSSL
|
||||||
|
automatically uses the multi-threaded versions of the standard
|
||||||
|
libraries. If your platform is not one of these, consult the INSTALL
|
||||||
|
file.
|
||||||
|
|
||||||
|
Multi-threaded applications must provide two callback functions to
|
||||||
|
OpenSSL. This is described in the threads(3) manpage.
|
||||||
|
|
||||||
|
|
||||||
* I've compiled a program under Windows and it crashes: why?
|
* I've compiled a program under Windows and it crashes: why?
|
||||||
|
|
||||||
This is usually because you've missed the comment in INSTALL.W32. You
|
This is usually because you've missed the comment in INSTALL.W32.
|
||||||
must link with the multithreaded DLL version of the VC++ runtime library
|
Your application must link against the same version of the Win32
|
||||||
otherwise the conflict will cause a program to crash: typically on the
|
C-Runtime against which your openssl libraries were linked. The
|
||||||
first BIO related read or write operation.
|
default version for OpenSSL is /MD - "Multithreaded DLL".
|
||||||
|
|
||||||
|
If you are using Microsoft Visual C++'s IDE (Visual Studio), in
|
||||||
|
many cases, your new project most likely defaulted to "Debug
|
||||||
|
Singlethreaded" - /ML. This is NOT interchangeable with /MD and your
|
||||||
|
program will crash, typically on the first BIO related read or write
|
||||||
|
operation.
|
||||||
|
|
||||||
|
For each of the six possible link stage configurations within Win32,
|
||||||
|
your application must link against the same by which OpenSSL was
|
||||||
|
built. If you are using MS Visual C++ (Studio) this can be changed
|
||||||
|
by:
|
||||||
|
|
||||||
|
1. Select Settings... from the Project Menu.
|
||||||
|
2. Select the C/C++ Tab.
|
||||||
|
3. Select "Code Generation from the "Category" drop down list box
|
||||||
|
4. Select the Appropriate library (see table below) from the "Use
|
||||||
|
run-time library" drop down list box. Perform this step for both
|
||||||
|
your debug and release versions of your application (look at the
|
||||||
|
top left of the settings panel to change between the two)
|
||||||
|
|
||||||
|
Single Threaded /ML - MS VC++ often defaults to
|
||||||
|
this for the release
|
||||||
|
version of a new project.
|
||||||
|
Debug Single Threaded /MLd - MS VC++ often defaults to
|
||||||
|
this for the debug version
|
||||||
|
of a new project.
|
||||||
|
Multithreaded /MT
|
||||||
|
Debug Multithreaded /MTd
|
||||||
|
Multithreaded DLL /MD - OpenSSL defaults to this.
|
||||||
|
Debug Multithreaded DLL /MDd
|
||||||
|
|
||||||
|
Note that debug and release libraries are NOT interchangeable. If you
|
||||||
|
built OpenSSL with /MD your application must use /MD and cannot use /MDd.
|
||||||
|
|
||||||
|
|
||||||
* How do I read or write a DER encoded buffer using the ASN1 functions?
|
* How do I read or write a DER encoded buffer using the ASN1 functions?
|
||||||
@@ -261,200 +582,39 @@ is forgetting to load OpenSSL's table of algorithms with
|
|||||||
OpenSSL_add_all_algorithms(). See the manual page for more information.
|
OpenSSL_add_all_algorithms(). See the manual page for more information.
|
||||||
|
|
||||||
|
|
||||||
* How do I create certificates or certificate requests?
|
|
||||||
|
|
||||||
Check out the CA.pl(1) manual page. This provides a simple wrapper round
|
|
||||||
the 'req', 'verify', 'ca' and 'pkcs12' utilities. For finer control check
|
|
||||||
out the manual pages for the individual utilities and the certificate
|
|
||||||
extensions documentation (currently in doc/openssl.txt).
|
|
||||||
|
|
||||||
|
|
||||||
* Why can't I create certificate requests?
|
|
||||||
|
|
||||||
You typically get the error:
|
|
||||||
|
|
||||||
unable to find 'distinguished_name' in config
|
|
||||||
problems making Certificate Request
|
|
||||||
|
|
||||||
This is because it can't find the configuration file. Check out the
|
|
||||||
DIAGNOSTICS section of req(1) for more information.
|
|
||||||
|
|
||||||
|
|
||||||
* Why does <SSL program> fail with a certificate verify error?
|
|
||||||
|
|
||||||
This problem is usually indicated by log messages saying something like
|
|
||||||
"unable to get local issuer certificate" or "self signed certificate".
|
|
||||||
When a certificate is verified its root CA must be "trusted" by OpenSSL
|
|
||||||
this typically means that the CA certificate must be placed in a directory
|
|
||||||
or file and the relevant program configured to read it. The OpenSSL program
|
|
||||||
'verify' behaves in a similar way and issues similar error messages: check
|
|
||||||
the verify(1) program manual page for more information.
|
|
||||||
|
|
||||||
|
|
||||||
* Why can I only use weak ciphers when I connect to a server using OpenSSL?
|
|
||||||
|
|
||||||
This is almost certainly because you are using an old "export grade" browser
|
|
||||||
which only supports weak encryption. Upgrade your browser to support 128 bit
|
|
||||||
ciphers.
|
|
||||||
|
|
||||||
|
|
||||||
* How can I create DSA certificates?
|
|
||||||
|
|
||||||
Check the CA.pl(1) manual page for a DSA certificate example.
|
|
||||||
|
|
||||||
|
|
||||||
* Why can't I make an SSL connection to a server using a DSA certificate?
|
|
||||||
|
|
||||||
Typically you'll see a message saying there are no shared ciphers when
|
|
||||||
the same setup works fine with an RSA certificate. There are two possible
|
|
||||||
causes. The client may not support connections to DSA servers most web
|
|
||||||
browsers (including Netscape and MSIE) only support connections to servers
|
|
||||||
supporting RSA cipher suites. The other cause is that a set of DH parameters
|
|
||||||
has not been supplied to the server. DH parameters can be created with the
|
|
||||||
dhparam(1) command and loaded using the SSL_CTX_set_tmp_dh() for example:
|
|
||||||
check the source to s_server in apps/s_server.c for an example.
|
|
||||||
|
|
||||||
|
|
||||||
* How can I remove the passphrase on a private key?
|
|
||||||
|
|
||||||
Firstly you should be really *really* sure you want to do this. Leaving
|
|
||||||
a private key unencrypted is a major security risk. If you decide that
|
|
||||||
you do have to do this check the EXAMPLES sections of the rsa(1) and
|
|
||||||
dsa(1) manual pages.
|
|
||||||
|
|
||||||
|
|
||||||
* Why can't the OpenSSH configure script detect OpenSSL?
|
* Why can't the OpenSSH configure script detect OpenSSL?
|
||||||
|
|
||||||
There is a problem with OpenSSH 1.2.2p1, in that the configure script
|
Several reasons for problems with the automatic detection exist.
|
||||||
can't find the installed OpenSSL libraries. The problem is actually
|
OpenSSH requires at least version 0.9.5a of the OpenSSL libraries.
|
||||||
a small glitch that is easily solved with the following patch to be
|
Sometimes the distribution has installed an older version in the system
|
||||||
applied to the OpenSSH distribution:
|
locations that is detected instead of a new one installed. The OpenSSL
|
||||||
|
library might have been compiled for another CPU or another mode (32/64 bits).
|
||||||
|
Permissions might be wrong.
|
||||||
|
|
||||||
----- snip:start -----
|
The general answer is to check the config.log file generated when running
|
||||||
--- openssh-1.2.2p1/configure.in.orig Thu Mar 23 18:56:58 2000
|
the OpenSSH configure script. It should contain the detailed information
|
||||||
+++ openssh-1.2.2p1/configure.in Thu Mar 23 18:55:05 2000
|
on why the OpenSSL library was not detected or considered incompatible.
|
||||||
@@ -152,10 +152,10 @@
|
|
||||||
AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
|
* Can I use OpenSSL's SSL library with non-blocking I/O?
|
||||||
for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
|
|
||||||
if test ! -z "$ssldir" ; then
|
Yes; make sure to read the SSL_get_error(3) manual page!
|
||||||
- LIBS="$saved_LIBS -L$ssldir"
|
|
||||||
+ LIBS="$saved_LIBS -L$ssldir/lib"
|
A pitfall to avoid: Don't assume that SSL_read() will just read from
|
||||||
CFLAGS="$CFLAGS -I$ssldir/include"
|
the underlying transport or that SSL_write() will just write to it --
|
||||||
if test "x$need_dash_r" = "x1" ; then
|
it is also possible that SSL_write() cannot do any useful work until
|
||||||
- LIBS="$LIBS -R$ssldir"
|
there is data to read, or that SSL_read() cannot do anything until it
|
||||||
+ LIBS="$LIBS -R$ssldir/lib"
|
is possible to send data. One reason for this is that the peer may
|
||||||
fi
|
request a new TLS/SSL handshake at any time during the protocol,
|
||||||
fi
|
requiring a bi-directional message exchange; both SSL_read() and
|
||||||
LIBS="$LIBS -lcrypto"
|
SSL_write() will try to continue any pending handshake.
|
||||||
--- openssh-1.2.2p1/configure.orig Thu Mar 23 18:55:02 2000
|
|
||||||
+++ openssh-1.2.2p1/configure Thu Mar 23 18:57:08 2000
|
|
||||||
@@ -1890,10 +1890,10 @@
|
|
||||||
echo "configure:1891: checking for OpenSSL/SSLeay directory" >&5
|
|
||||||
for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
|
|
||||||
if test ! -z "$ssldir" ; then
|
|
||||||
- LIBS="$saved_LIBS -L$ssldir"
|
|
||||||
+ LIBS="$saved_LIBS -L$ssldir/lib"
|
|
||||||
CFLAGS="$CFLAGS -I$ssldir/include"
|
|
||||||
if test "x$need_dash_r" = "x1" ; then
|
|
||||||
- LIBS="$LIBS -R$ssldir"
|
|
||||||
+ LIBS="$LIBS -R$ssldir/lib"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
LIBS="$LIBS -lcrypto"
|
|
||||||
----- snip:end -----
|
|
||||||
|
|
||||||
|
|
||||||
* Why does the OpenSSL test fail with "bc: command not found"?
|
* Why doesn't my server application receive a client certificate?
|
||||||
|
|
||||||
You didn't install "bc", the Unix calculator. If you want to run the
|
Due to the TLS protocol definition, a client will only send a certificate,
|
||||||
tests, get GNU bc from ftp://ftp.gnu.org or from your OS distributor.
|
if explicitly asked by the server. Use the SSL_VERIFY_PEER flag of the
|
||||||
|
SSL_CTX_set_verify() function to enable the use of client certificates.
|
||||||
|
|
||||||
|
|
||||||
* Why does the OpenSSL test fail with "bc: 1 no implemented"?
|
===============================================================================
|
||||||
|
|
||||||
On some SCO installations or versions, bc has a bug that gets triggered when
|
|
||||||
you run the test suite (using "make test"). The message returned is "bc:
|
|
||||||
1 not implemented". The best way to deal with this is to find another
|
|
||||||
implementation of bc and compile/install it. For example, GNU bc (see
|
|
||||||
http://www.gnu.org/software/software.html for download instructions) can
|
|
||||||
be safely used.
|
|
||||||
|
|
||||||
|
|
||||||
* Why does the OpenSSL compilation fail on Alpha True64 Unix?
|
|
||||||
|
|
||||||
On some Alpha installations running True64 Unix and Compaq C, the compilation
|
|
||||||
of crypto/sha/sha_dgst.c fails with the message 'Fatal: Insufficient virtual
|
|
||||||
memory to continue compilation.' As far as the tests have shown, this may be
|
|
||||||
a compiler bug. What happens is that it eats up a lot of resident memory
|
|
||||||
to build something, probably a table. The problem is clearly in the
|
|
||||||
optimization code, because if one eliminates optimization completely (-O0),
|
|
||||||
the compilation goes through (and the compiler consumes about 2MB of resident
|
|
||||||
memory instead of 240MB or whatever one's limit is currently).
|
|
||||||
|
|
||||||
There are three options to solve this problem:
|
|
||||||
|
|
||||||
1. set your current data segment size soft limit higher. Experience shows
|
|
||||||
that about 241000 kbytes seems to be enough on an AlphaServer DS10. You do
|
|
||||||
this with the command 'ulimit -Sd nnnnnn', where 'nnnnnn' is the number of
|
|
||||||
kbytes to set the limit to.
|
|
||||||
|
|
||||||
2. If you have a hard limit that is lower than what you need and you can't
|
|
||||||
get it changed, you can compile all of OpenSSL with -O0 as optimization
|
|
||||||
level. This is however not a very nice thing to do for those who expect to
|
|
||||||
get the best result from OpenSSL. A bit more complicated solution is the
|
|
||||||
following:
|
|
||||||
|
|
||||||
----- snip:start -----
|
|
||||||
make DIRS=crypto SDIRS=sha "`grep '^CFLAG=' Makefile.ssl | \
|
|
||||||
sed -e 's/ -O[0-9] / -O0 /'`"
|
|
||||||
rm `ls crypto/*.o crypto/sha/*.o | grep -v 'sha_dgst\.o'`
|
|
||||||
make
|
|
||||||
----- snip:end -----
|
|
||||||
|
|
||||||
This will only compile sha_dgst.c with -O0, the rest with the optimization
|
|
||||||
level chosen by the configuration process. When the above is done, do the
|
|
||||||
test and installation and you're set.
|
|
||||||
|
|
||||||
|
|
||||||
* Why does the OpenSSL compilation fail with "ar: command not found"?
|
|
||||||
|
|
||||||
Getting this message is quite usual on Solaris 2, because Sun has hidden
|
|
||||||
away 'ar' and other development commands in directories that aren't in
|
|
||||||
$PATH by default. One of those directories is '/usr/ccs/bin'. The
|
|
||||||
quickest way to fix this is to do the following (it assumes you use sh
|
|
||||||
or any sh-compatible shell):
|
|
||||||
|
|
||||||
----- snip:start -----
|
|
||||||
PATH=${PATH}:/usr/ccs/bin; export PATH
|
|
||||||
----- snip:end -----
|
|
||||||
|
|
||||||
and then redo the compilation. What you should really do is make sure
|
|
||||||
'/usr/ccs/bin' is permanently in your $PATH, for example through your
|
|
||||||
'.profile' (again, assuming you use a sh-compatible shell).
|
|
||||||
|
|
||||||
|
|
||||||
* Why does the OpenSSL compilation fail on Win32 with VC++?
|
|
||||||
|
|
||||||
Sometimes, you may get reports from VC++ command line (cl) that it
|
|
||||||
can't find standard include files like stdio.h and other weirdnesses.
|
|
||||||
One possible cause is that the environment isn't correctly set up.
|
|
||||||
To solve that problem, one should run VCVARS32.BAT which is found in
|
|
||||||
the 'bin' subdirectory of the VC++ installation directory (somewhere
|
|
||||||
under 'Program Files'). This needs to be done prior to running NMAKE,
|
|
||||||
and the changes are only valid for the current DOS session.
|
|
||||||
|
|
||||||
|
|
||||||
* Why aren't tools like 'autoconf' and 'libtool' used?
|
|
||||||
|
|
||||||
autoconf is a nice tool, but is unfortunately very Unix-centric.
|
|
||||||
Although one can come up with solution to have ports keep in track,
|
|
||||||
there's also some work needed for that, and can be quite painful at
|
|
||||||
times. If there was a 'autoconf'-like tool that generated perl
|
|
||||||
scripts or something similarly general, it would probably be used
|
|
||||||
in OpenSSL much earlier.
|
|
||||||
|
|
||||||
libtool has repeatadly been reported by some members of the OpenSSL
|
|
||||||
development and others to be a pain to use. So far, those in the
|
|
||||||
development team who have said anything about this have expressed
|
|
||||||
a wish to avoid libtool for that reason.
|
|
||||||
|
|
||||||
|
|||||||
13
INSTALL
13
INSTALL
@@ -7,8 +7,11 @@
|
|||||||
|
|
||||||
To install OpenSSL, you will need:
|
To install OpenSSL, you will need:
|
||||||
|
|
||||||
|
* make
|
||||||
* Perl 5
|
* Perl 5
|
||||||
* an ANSI C compiler
|
* an ANSI C compiler
|
||||||
|
* a development environment in form of development libraries and C
|
||||||
|
header files
|
||||||
* a supported Unix operating system
|
* a supported Unix operating system
|
||||||
|
|
||||||
Quick Start
|
Quick Start
|
||||||
@@ -43,9 +46,6 @@
|
|||||||
--openssldir=DIR Directory for OpenSSL files. If no prefix is specified,
|
--openssldir=DIR Directory for OpenSSL files. If no prefix is specified,
|
||||||
the library files and binaries are also installed there.
|
the library files and binaries are also installed there.
|
||||||
|
|
||||||
rsaref Build with RSADSI's RSAREF toolkit (this assumes that
|
|
||||||
librsaref.a is in the library search path).
|
|
||||||
|
|
||||||
no-threads Don't try to build with support for multi-threaded
|
no-threads Don't try to build with support for multi-threaded
|
||||||
applications.
|
applications.
|
||||||
|
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
directory, and the binary will be in the "apps" directory.
|
directory, and the binary will be in the "apps" directory.
|
||||||
|
|
||||||
If "make" fails, look at the output. There may be reasons for
|
If "make" fails, look at the output. There may be reasons for
|
||||||
the failure that isn't a problem in OpenSSL itself (like missing
|
the failure that aren't problems in OpenSSL itself (like missing
|
||||||
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 forwarded to a public mailing list). Include the
|
message will be forwarded to a public mailing list). Include the
|
||||||
@@ -269,6 +269,11 @@
|
|||||||
Note on shared libraries
|
Note on shared libraries
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
Shared library is currently an experimental feature. The only reason to
|
||||||
|
have them would be to conserve memory on systems where several program
|
||||||
|
are using OpenSSL. Binary backward compatibility can't be guaranteed
|
||||||
|
before OpenSSL version 1.0.
|
||||||
|
|
||||||
For some systems, the OpenSSL Configure script knows what is needed to
|
For some systems, the OpenSSL Configure script knows what is needed to
|
||||||
build shared libraries for libcrypto and libssl. On these systems,
|
build shared libraries for libcrypto and libssl. On these systems,
|
||||||
the shared libraries are currently not created by default, but giving
|
the shared libraries are currently not created by default, but giving
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
OpenSSL - Port To The Macintosh
|
OpenSSL - Port To The Macintosh OS 9 or Earlier
|
||||||
===============================
|
===============================================
|
||||||
|
|
||||||
Thanks to Roy Wood <roy@centricsystems.ca> initial support for MacOS (pre
|
Thanks to Roy Wood <roy@centricsystems.ca> initial support for Mac OS (pre
|
||||||
X) is now provided. "Initial" means that unlike other platforms where you
|
X) is now provided. "Initial" means that unlike other platforms where you
|
||||||
get an SDK and a "swiss army" openssl application, on Macintosh you only
|
get an SDK and a "swiss army" openssl application, on Macintosh you only
|
||||||
get one sample application which fetches a page over HTTPS(*) and dumps it
|
get one sample application which fetches a page over HTTPS(*) and dumps it
|
||||||
@@ -42,7 +42,7 @@ Installation procedure:
|
|||||||
BSD sockets and some other POSIX APIs. The GUSI distribution is
|
BSD sockets and some other POSIX APIs. The GUSI distribution is
|
||||||
expected to be found in the same directory as openssl source tree,
|
expected to be found in the same directory as openssl source tree,
|
||||||
i.e. in the parent directory to the one where this very file,
|
i.e. in the parent directory to the one where this very file,
|
||||||
namely INSTALL.MacOS. For more informations about GUSI, see
|
namely INSTALL.MacOS. For more information about GUSI, see
|
||||||
http://www.iis.ee.ethz.ch/~neeri/macintosh/gusi-qa.html
|
http://www.iis.ee.ethz.ch/~neeri/macintosh/gusi-qa.html
|
||||||
|
|
||||||
Finally some essential comments from our generous contributor:-)
|
Finally some essential comments from our generous contributor:-)
|
||||||
|
|||||||
10
INSTALL.VMS
10
INSTALL.VMS
@@ -8,6 +8,7 @@ Intro:
|
|||||||
|
|
||||||
This file is divided in the following parts:
|
This file is divided in the following parts:
|
||||||
|
|
||||||
|
Requirements - Mandatory reading.
|
||||||
Checking the distribution - Mandatory reading.
|
Checking the distribution - Mandatory reading.
|
||||||
Compilation - Mandatory reading.
|
Compilation - Mandatory reading.
|
||||||
Logical names - Mandatory reading.
|
Logical names - Mandatory reading.
|
||||||
@@ -19,6 +20,15 @@ This file is divided in the following parts:
|
|||||||
TODO - Things that are to come.
|
TODO - Things that are to come.
|
||||||
|
|
||||||
|
|
||||||
|
Requirements:
|
||||||
|
=============
|
||||||
|
|
||||||
|
To build and install OpenSSL, you will need:
|
||||||
|
|
||||||
|
* DEC C or some other ANSI C compiler. VAX C is *not* supported.
|
||||||
|
[Note: OpenSSL has only been tested with DEC C. Compiling with
|
||||||
|
a different ANSI C compiler may require some work]
|
||||||
|
|
||||||
Checking the distribution:
|
Checking the distribution:
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
|
|||||||
50
INSTALL.W32
50
INSTALL.W32
@@ -2,16 +2,19 @@
|
|||||||
INSTALLATION ON THE WIN32 PLATFORM
|
INSTALLATION ON THE WIN32 PLATFORM
|
||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
Heres a few comments about building OpenSSL in Windows environments. Most of
|
Heres a few comments about building OpenSSL in Windows environments. Most
|
||||||
this is tested on Win32 but it may also work in Win 3.1 with some
|
of this is tested on Win32 but it may also work in Win 3.1 with some
|
||||||
modification.
|
modification.
|
||||||
|
|
||||||
You need Perl for Win32 (available from http://www.activestate.com/ActivePerl)
|
You need Perl for Win32. Unless you will build on Cygwin, you will need
|
||||||
|
ActiveState Perl, available from http://www.activestate.com/ActivePerl.
|
||||||
|
For Cygwin users, there's more info in the Cygwin section.
|
||||||
|
|
||||||
and one of the following C compilers:
|
and one of the following C compilers:
|
||||||
|
|
||||||
* Visual C++
|
* Visual C++
|
||||||
* Borland C
|
* Borland C
|
||||||
* GNU C (Mingw32 or Cygwin32)
|
* GNU C (Mingw32 or Cygwin)
|
||||||
|
|
||||||
If you want to compile in the assembly language routines with Visual C++ then
|
If you want to compile in the assembly language routines with Visual C++ then
|
||||||
you will need an assembler. This is worth doing because it will result in
|
you will need an assembler. This is worth doing because it will result in
|
||||||
@@ -78,7 +81,7 @@
|
|||||||
|
|
||||||
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 mk1mk.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.
|
||||||
|
|
||||||
The default Win32 environment is to leave out any Windows NT specific
|
The default Win32 environment is to leave out any Windows NT specific
|
||||||
@@ -134,28 +137,30 @@
|
|||||||
> cd out
|
> cd out
|
||||||
> ..\ms\test
|
> ..\ms\test
|
||||||
|
|
||||||
GNU C (CygWin32)
|
GNU C (Cygwin)
|
||||||
---------------
|
--------------
|
||||||
|
|
||||||
CygWin32 provides a bash shell and GNU tools environment running on
|
Cygwin provides a bash shell and GNU tools environment running on
|
||||||
NT 4.0, Windows 9x and Windows 2000. Consequently, a make of OpenSSL
|
NT 4.0, Windows 9x and Windows 2000. Consequently, a make of OpenSSL
|
||||||
with CygWin is closer to a GNU bash environment such as Linux rather
|
with Cygwin is closer to a GNU bash environment such as Linux rather
|
||||||
than other W32 makes that are based on a single makefile approach.
|
than other W32 makes that are based on a single makefile approach.
|
||||||
CygWin32 implements Posix/Unix calls through cygwin1.dll, and is
|
Cygwin implements Posix/Unix calls through cygwin1.dll, and is
|
||||||
contrasted to Mingw32 which links dynamically to msvcrt.dll or
|
contrasted to Mingw32 which links dynamically to msvcrt.dll or
|
||||||
crtdll.dll.
|
crtdll.dll.
|
||||||
|
|
||||||
To build OpenSSL using CygWin32:
|
To build OpenSSL using Cygwin:
|
||||||
|
|
||||||
* Install CygWin32 (see http://sourceware.cygnus.com/cygwin)
|
* Install Cygwin (see http://sourceware.cygnus.com/cygwin)
|
||||||
|
|
||||||
* Install Perl and ensure it is in the path
|
* Install Perl and ensure it is in the path (recent Cygwin perl
|
||||||
|
(version 5.6.1-2 of the latter has been reported to work) or
|
||||||
|
ActivePerl)
|
||||||
|
|
||||||
* Run the CygWin bash shell
|
* Run the Cygwin bash shell
|
||||||
|
|
||||||
* $ tar zxvf openssl-x.x.x.tar.gz
|
* $ tar zxvf openssl-x.x.x.tar.gz
|
||||||
$ cd openssl-x.x.x
|
$ cd openssl-x.x.x
|
||||||
$ ./Configure no-threads CygWin32
|
$ ./config
|
||||||
[...]
|
[...]
|
||||||
$ make
|
$ make
|
||||||
[...]
|
[...]
|
||||||
@@ -164,27 +169,28 @@
|
|||||||
|
|
||||||
This will create a default install in /usr/local/ssl.
|
This will create a default install in /usr/local/ssl.
|
||||||
|
|
||||||
CygWin32 Notes:
|
Cygwin Notes:
|
||||||
|
|
||||||
"make test" and normal file operations may fail in directories
|
"make test" and normal file operations may fail in directories
|
||||||
mounted as text (i.e. mount -t c:\somewhere /home) due to CygWin
|
mounted as text (i.e. mount -t c:\somewhere /home) due to Cygwin
|
||||||
stripping of carriage returns. To avoid this ensure that a binary
|
stripping of carriage returns. To avoid this ensure that a binary
|
||||||
mount is used, e.g. mount -b c:\somewhere /home.
|
mount is used, e.g. mount -b c:\somewhere /home.
|
||||||
|
|
||||||
As of version 1.1.1 CygWin32 is relatively unstable in its handling
|
As of version 1.1.1 Cygwin is relatively unstable in its handling
|
||||||
of cr/lf issues. These make procedures succeeded with versions 1.1 and
|
of cr/lf issues. These make procedures succeeded with versions 1.1 and
|
||||||
the snapshot 20000524 (Slow!).
|
the snapshot 20000524 (Slow!).
|
||||||
|
|
||||||
"bc" is not provided in the CygWin32 distribution. This causes a
|
"bc" is not provided in the Cygwin distribution. This causes a
|
||||||
non-fatal error in "make test" but is otherwise harmless. If
|
non-fatal error in "make test" but is otherwise harmless. If
|
||||||
desired, GNU bc can be built with CygWin32 without change.
|
desired, GNU bc can be built with Cygwin without change.
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
There's currently no real installation procedure for Win32. There are,
|
If you used the Cygwin procedure above, you have already installed and
|
||||||
however, some suggestions:
|
can skip this section. For all other procedures, there's currently no real
|
||||||
|
installation procedure for Win32. There are, however, some suggestions:
|
||||||
|
|
||||||
- do nothing. The include files are found in the inc32/ subdirectory,
|
- do nothing. The include files are found in the inc32/ subdirectory,
|
||||||
all binaries are found in out32dll/ or out32/ depending if you built
|
all binaries are found in out32dll/ or out32/ depending if you built
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -12,7 +12,7 @@
|
|||||||
---------------
|
---------------
|
||||||
|
|
||||||
/* ====================================================================
|
/* ====================================================================
|
||||||
* Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved.
|
* Copyright (c) 1998-2002 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
|
||||||
|
|||||||
294
Makefile.org
294
Makefile.org
@@ -57,8 +57,9 @@ CC= gcc
|
|||||||
#CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
|
#CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
|
||||||
CFLAG= -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
|
CFLAG= -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
|
||||||
DEPFLAG=
|
DEPFLAG=
|
||||||
PEX_LIBS= -L. -L.. -L../.. -L../../..
|
PEX_LIBS=
|
||||||
EX_LIBS=
|
EX_LIBS=
|
||||||
|
EXE_EXT=
|
||||||
AR=ar r
|
AR=ar r
|
||||||
RANLIB= ranlib
|
RANLIB= ranlib
|
||||||
PERL= perl
|
PERL= perl
|
||||||
@@ -161,9 +162,9 @@ SHLIBDIRS= crypto ssl
|
|||||||
SDIRS= \
|
SDIRS= \
|
||||||
md2 md4 md5 sha mdc2 hmac ripemd \
|
md2 md4 md5 sha mdc2 hmac ripemd \
|
||||||
des rc2 rc4 rc5 idea bf cast \
|
des rc2 rc4 rc5 idea bf cast \
|
||||||
bn rsa dsa dh dso engine rijndael \
|
bn rsa dsa dh dso \
|
||||||
buffer bio stack lhash rand err objects \
|
buffer bio stack lhash rand err objects \
|
||||||
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp
|
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp
|
||||||
|
|
||||||
MAKEFILE= Makefile.ssl
|
MAKEFILE= Makefile.ssl
|
||||||
MAKE= make -f Makefile.ssl
|
MAKE= make -f Makefile.ssl
|
||||||
@@ -182,6 +183,7 @@ SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
|
|||||||
SHARED_SSL=libssl$(SHLIB_EXT)
|
SHARED_SSL=libssl$(SHLIB_EXT)
|
||||||
SHARED_LIBS=
|
SHARED_LIBS=
|
||||||
SHARED_LIBS_LINK_EXTS=
|
SHARED_LIBS_LINK_EXTS=
|
||||||
|
SHARED_LDFLAGS=
|
||||||
|
|
||||||
GENERAL= Makefile
|
GENERAL= Makefile
|
||||||
BASENAME= openssl
|
BASENAME= openssl
|
||||||
@@ -201,7 +203,7 @@ sub_all:
|
|||||||
do \
|
do \
|
||||||
if [ -d "$$i" ]; then \
|
if [ -d "$$i" ]; then \
|
||||||
(cd $$i && echo "making all in $$i..." && \
|
(cd $$i && echo "making all in $$i..." && \
|
||||||
$(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}' all ) || exit 1; \
|
$(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}' EXE_EXT='${EXE_EXT}' all ) || exit 1; \
|
||||||
else \
|
else \
|
||||||
$(MAKE) $$i; \
|
$(MAKE) $$i; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -220,7 +222,7 @@ libcrypto$(SHLIB_EXT): libcrypto.a
|
|||||||
fi
|
fi
|
||||||
libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a
|
libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a
|
||||||
@if [ "$(SHLIB_TARGET)" != "" ]; then \
|
@if [ "$(SHLIB_TARGET)" != "" ]; then \
|
||||||
$(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-L. -lcrypto' build-shared; \
|
$(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \
|
||||||
else \
|
else \
|
||||||
echo "There's no support for shared libraries on this platform" >&2; \
|
echo "There's no support for shared libraries on this platform" >&2; \
|
||||||
fi
|
fi
|
||||||
@@ -234,63 +236,187 @@ clean-shared:
|
|||||||
done; \
|
done; \
|
||||||
fi; \
|
fi; \
|
||||||
( set -x; rm -f lib$$i$(SHLIB_EXT) ); \
|
( set -x; rm -f lib$$i$(SHLIB_EXT) ); \
|
||||||
done
|
if [ "$(PLATFORM)" = "Cygwin" ]; then \
|
||||||
|
( set -x; rm -f cyg$$i$(SHLIB_EXT) lib$$i$(SHLIB_EXT).a ); \
|
||||||
link-shared:
|
|
||||||
@for i in $(SHLIBDIRS); do \
|
|
||||||
prev=lib$$i$(SHLIB_EXT); \
|
|
||||||
if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
|
|
||||||
tmp="$(SHARED_LIBS_LINK_EXTS)"; \
|
|
||||||
for j in $${tmp:-x}; do \
|
|
||||||
( set -x; ln -s -f $$prev lib$$i$$j ); \
|
|
||||||
prev=lib$$i$$j; \
|
|
||||||
done; \
|
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
link-shared:
|
||||||
|
@if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
|
||||||
|
tmp="$(SHARED_LIBS_LINK_EXTS)"; \
|
||||||
|
for i in $(SHLIBDIRS); do \
|
||||||
|
prev=lib$$i$(SHLIB_EXT); \
|
||||||
|
for j in $${tmp:-x}; do \
|
||||||
|
( set -x; ln -f -s $$prev lib$$i$$j ); \
|
||||||
|
prev=lib$$i$$j; \
|
||||||
|
done; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
build-shared: clean-shared do_$(SHLIB_TARGET) link-shared
|
build-shared: clean-shared do_$(SHLIB_TARGET) link-shared
|
||||||
|
|
||||||
do_bsd-gcc-shared: linux-shared
|
do_bsd-gcc-shared: do_gnu-shared
|
||||||
do_linux-shared:
|
do_linux-shared: do_gnu-shared
|
||||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
do_gnu-shared:
|
||||||
( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
-Wl,-S,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
( set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
|
-shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-Wl,-Bsymbolic \
|
||||||
-Wl,--whole-archive lib$$i.a \
|
-Wl,--whole-archive lib$$i.a \
|
||||||
-Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \
|
-Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
libs="$$libs -L. -l$$i"; \
|
libs="$$libs -l$$i"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \
|
||||||
|
collect2=`gcc -print-prog-name=collect2 2>&1` && \
|
||||||
|
[ -n "$$collect2" ] && \
|
||||||
|
my_ld=`$$collect2 --help 2>&1 | grep Usage: | sed 's/^Usage: *\([^ ][^ ]*\).*/\1/'` && \
|
||||||
|
[ -n "$$my_ld" ] && \
|
||||||
|
$$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1
|
||||||
|
|
||||||
|
# For Darwin AKA Mac OS/X (dyld)
|
||||||
|
do_darwin-shared:
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x ; ${CC} --verbose -dynamiclib -o lib$$i${SHLIB_EXT} \
|
||||||
|
lib$$i.a $$libs -all_load -current_version ${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-compatibility_version ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | cut -d. -f1` \
|
||||||
|
-install_name ${INSTALLTOP}/lib/lib$$i${SHLIB_EXT} ) || exit 1; \
|
||||||
|
libs="$$libs -l`basename $$i${SHLIB_EXT} .dylib`"; \
|
||||||
|
echo "" ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
do_cygwin-shared:
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; ${CC} -shared -o cyg$$i.dll \
|
||||||
|
-Wl,-Bsymbolic \
|
||||||
|
-Wl,--whole-archive lib$$i.a \
|
||||||
|
-Wl,--out-implib,lib$$i.dll.a \
|
||||||
|
-Wl,--no-whole-archive $$libs ) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
# This assumes that GNU utilities are *not* used
|
# This assumes that GNU utilities are *not* used
|
||||||
|
do_alpha-osf1-shared:
|
||||||
|
if ${DETECT_GNU_LD}; then \
|
||||||
|
$(MAKE) do_gnu-shared; \
|
||||||
|
else \
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
|
-shared -o lib$$i.so \
|
||||||
|
-set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
|
||||||
|
-all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This assumes that GNU utilities are *not* used
|
||||||
|
# The difference between alpha-osf1-shared and tru64-shared is the `-msym'
|
||||||
|
# option passed to the linker.
|
||||||
do_tru64-shared:
|
do_tru64-shared:
|
||||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
if ${DETECT_GNU_LD}; then \
|
||||||
( set -x; ${CC} -shared -no_archive -o lib$$i.so \
|
$(MAKE) do_gnu-shared; \
|
||||||
-set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
|
else \
|
||||||
-all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
libs="$$libs -L. -l$$i"; \
|
( set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
done
|
-shared -msym -o lib$$i.so \
|
||||||
|
-set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
|
||||||
|
-all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This assumes that GNU utilities are *not* used
|
||||||
|
# The difference between tru64-shared and tru64-shared-rpath is the
|
||||||
|
# -rpath ${INSTALLTOP}/lib passed to the linker.
|
||||||
|
do_tru64-shared-rpath:
|
||||||
|
if ${DETECT_GNU_LD}; then \
|
||||||
|
$(MAKE) do_gnu-shared; \
|
||||||
|
else \
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
|
-shared -msym -o lib$$i.so \
|
||||||
|
-rpath ${INSTALLTOP}/lib \
|
||||||
|
-set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
|
||||||
|
-all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# This assumes that GNU utilities are *not* used
|
# This assumes that GNU utilities are *not* used
|
||||||
do_solaris-shared:
|
do_solaris-shared:
|
||||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
if ${DETECT_GNU_LD}; then \
|
||||||
( set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
$(MAKE) do_gnu-shared; \
|
||||||
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
else \
|
||||||
-z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
libs="$$libs -L. -l$$i"; \
|
( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
|
||||||
done
|
set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
|
-G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OpenServer 5 native compilers used
|
||||||
|
do_svr3-shared:
|
||||||
|
if ${DETECT_GNU_LD}; then \
|
||||||
|
$(MAKE) do_gnu-shared; \
|
||||||
|
else \
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
|
||||||
|
find . -name "*.o" -print > allobjs ; \
|
||||||
|
OBJS= ; export OBJS ; \
|
||||||
|
for obj in `ar t lib$$i.a` ; do \
|
||||||
|
OBJS="$${OBJS} `grep $$obj allobjs`" ; \
|
||||||
|
done ; \
|
||||||
|
set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
$${OBJS} $$libs ${EX_LIBS} ) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
# UnixWare 7 and OpenUNIX 8 native compilers used
|
||||||
|
do_svr5-shared:
|
||||||
|
if ${DETECT_GNU_LD}; then \
|
||||||
|
$(MAKE) do_gnu-shared; \
|
||||||
|
else \
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
|
||||||
|
find . -name "*.o" -print > allobjs ; \
|
||||||
|
OBJS= ; export OBJS ; \
|
||||||
|
for obj in `ar t lib$$i.a` ; do \
|
||||||
|
OBJS="$${OBJS} `grep $$obj allobjs`" ; \
|
||||||
|
done ; \
|
||||||
|
set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
|
-G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
$${OBJS} $$libs ${EX_LIBS} ) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
# This assumes that GNU utilities are *not* used
|
# This assumes that GNU utilities are *not* used
|
||||||
do_irix-shared:
|
do_irix-shared:
|
||||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
if ${DETECT_GNU_LD}; then \
|
||||||
( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
$(MAKE) do_gnu-shared; \
|
||||||
-Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
else \
|
||||||
-all lib$$i.a $$libs ${EX_LIBS} -lc) || exit 1; \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
libs="$$libs -L. -l$$i"; \
|
( set -x; ${CC} ${SHARED_LDFLAGS} \
|
||||||
done
|
-shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
|
-all lib$$i.a $$libs ${EX_LIBS} -lc) || exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
# This assumes that GNU utilities are *not* used
|
# This assumes that GNU utilities are *not* used
|
||||||
do_hpux-shared:
|
do_hpux-shared:
|
||||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
( set -x; /usr/ccs/bin/ld +vnocompatwarnings \
|
( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \
|
||||||
|
+vnocompatwarnings \
|
||||||
-b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
-b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
+h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
+h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
-Fl lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
-Fl lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
@@ -299,13 +425,57 @@ do_hpux-shared:
|
|||||||
|
|
||||||
# This assumes that GNU utilities are *not* used
|
# This assumes that GNU utilities are *not* used
|
||||||
do_hpux64-shared:
|
do_hpux64-shared:
|
||||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
( set -x; /usr/ccs/bin/ld -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \
|
||||||
|
-b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
+h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
+h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
+forceload lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
+forceload lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
libs="$$libs -L. -l$$i"; \
|
libs="$$libs -L. -l$$i"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# The following method is said to work on all platforms. Tests will
|
||||||
|
# determine if that's how it's gong to be used.
|
||||||
|
# This assumes that for all but GNU systems, GNU utilities are *not* used.
|
||||||
|
# ALLSYMSFLAGS would be:
|
||||||
|
# GNU systems: --whole-archive
|
||||||
|
# Tru64 Unix: -all
|
||||||
|
# Solaris: -z allextract
|
||||||
|
# Irix: -all
|
||||||
|
# HP/UX-32bit: -Fl
|
||||||
|
# HP/UX-64bit: +forceload
|
||||||
|
# AIX: -bnogc
|
||||||
|
# SHAREDFLAGS would be:
|
||||||
|
# GNU systems: -shared -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
||||||
|
# Tru64 Unix: -shared \
|
||||||
|
# -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}"
|
||||||
|
# Solaris: -G -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
||||||
|
# Irix: -shared -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
||||||
|
# HP/UX-32bit: +vnocompatwarnings -b -z +s \
|
||||||
|
# +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
||||||
|
# HP/UX-64bit: -b -z +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
||||||
|
# AIX: -G -bE:lib$$i.exp -bM:SRE
|
||||||
|
# SHAREDCMD would be:
|
||||||
|
# GNU systems: $(CC)
|
||||||
|
# Tru64 Unix: $(CC)
|
||||||
|
# Solaris: $(CC)
|
||||||
|
# Irix: $(CC)
|
||||||
|
# HP/UX-32bit: /usr/ccs/bin/ld
|
||||||
|
# HP/UX-64bit: /usr/ccs/bin/ld
|
||||||
|
# AIX: $(CC)
|
||||||
|
ALLSYMSFLAG=-bnogc
|
||||||
|
SHAREDFLAGS=${SHARED_LDFLAGS} -G -bE:lib$$i.exp -bM:SRE
|
||||||
|
SHAREDCMD=$(CC)
|
||||||
|
do_aix-shared:
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; \
|
||||||
|
ld -r -o $$i.o $(ALLSYMSFLAG) lib$$i.a && \
|
||||||
|
( nm -Pg lib$$i.o | grep ' [BD] ' | cut -f1 -d' ' > lib$$i.exp; \
|
||||||
|
$(SHAREDCMD) $(SHAREDFLAG) -o lib$$i.so lib$$i.o \
|
||||||
|
$$libs ${EX_LIBS} ) ) \
|
||||||
|
|| exit 1; \
|
||||||
|
libs="$$libs -l$$i"; \
|
||||||
|
done
|
||||||
|
|
||||||
Makefile.ssl: Makefile.org
|
Makefile.ssl: Makefile.org
|
||||||
@echo "Makefile.ssl is older than Makefile.org."
|
@echo "Makefile.ssl is older than Makefile.org."
|
||||||
@echo "Reconfigure the source tree (via './config' or 'perl Configure'), please."
|
@echo "Reconfigure the source tree (via './config' or 'perl Configure'), please."
|
||||||
@@ -375,7 +545,7 @@ test: tests
|
|||||||
|
|
||||||
tests: rehash
|
tests: rehash
|
||||||
@(cd test && echo "testing..." && \
|
@(cd test && echo "testing..." && \
|
||||||
$(MAKE) CC='${CC}' CFLAG='${CFLAG}' 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}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' tests );
|
$(MAKE) CC='${CC}' CFLAG='${CFLAG}' 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}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PERL='${PERL}' EXE_EXT='${EXE_EXT}' tests );
|
||||||
@apps/openssl version -a
|
@apps/openssl version -a
|
||||||
|
|
||||||
report:
|
report:
|
||||||
@@ -409,25 +579,25 @@ tags:
|
|||||||
done;
|
done;
|
||||||
|
|
||||||
errors:
|
errors:
|
||||||
perl util/mkerr.pl -recurse -write
|
$(PERL) util/mkerr.pl -recurse -write
|
||||||
|
|
||||||
stacks:
|
stacks:
|
||||||
perl util/mkstack.pl -write
|
$(PERL) util/mkstack.pl -write
|
||||||
|
|
||||||
util/libeay.num::
|
util/libeay.num::
|
||||||
perl util/mkdef.pl crypto update
|
$(PERL) util/mkdef.pl crypto update
|
||||||
|
|
||||||
util/ssleay.num::
|
util/ssleay.num::
|
||||||
perl util/mkdef.pl ssl update
|
$(PERL) util/mkdef.pl ssl update
|
||||||
|
|
||||||
crypto/objects/obj_dat.h: crypto/objects/obj_mac.h crypto/objects/obj_dat.pl
|
crypto/objects/obj_dat.h: crypto/objects/obj_mac.h crypto/objects/obj_dat.pl
|
||||||
perl crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/objects/obj_dat.h
|
$(PERL) crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/objects/obj_dat.h
|
||||||
crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt
|
crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt
|
||||||
perl crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h
|
$(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h
|
||||||
|
|
||||||
TABLE: Configure
|
TABLE: Configure
|
||||||
(echo 'Output of `Configure TABLE'"':"; \
|
(echo 'Output of `Configure TABLE'"':"; \
|
||||||
perl Configure TABLE) > TABLE
|
$(PERL) Configure TABLE) > TABLE
|
||||||
|
|
||||||
update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE
|
update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE
|
||||||
|
|
||||||
@@ -466,7 +636,7 @@ install: all install_docs
|
|||||||
do \
|
do \
|
||||||
if [ -d "$$i" ]; then \
|
if [ -d "$$i" ]; then \
|
||||||
(cd $$i; echo "installing $$i..."; \
|
(cd $$i; echo "installing $$i..."; \
|
||||||
$(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' RANLIB='${RANLIB}' install ); \
|
$(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' RANLIB='${RANLIB}' EXE_EXT='${EXE_EXT}' install ); \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
@for i in $(LIBS) ;\
|
@for i in $(LIBS) ;\
|
||||||
@@ -482,10 +652,18 @@ install: all install_docs
|
|||||||
tmp="$(SHARED_LIBS)"; \
|
tmp="$(SHARED_LIBS)"; \
|
||||||
for i in $${tmp:-x}; \
|
for i in $${tmp:-x}; \
|
||||||
do \
|
do \
|
||||||
if [ -f "$$i" ]; then \
|
if [ -f "$$i" -o -f "$$i.a" ]; then \
|
||||||
( echo installing $$i; \
|
( echo installing $$i; \
|
||||||
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
if [ "$(PLATFORM)" != "Cygwin" ]; then \
|
||||||
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
|
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
||||||
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
|
||||||
|
else \
|
||||||
|
c=`echo $$i | sed 's/^lib/cyg/'`; \
|
||||||
|
cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \
|
||||||
|
chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \
|
||||||
|
cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \
|
||||||
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \
|
||||||
|
fi ); \
|
||||||
fi \
|
fi \
|
||||||
done; \
|
done; \
|
||||||
( here="`pwd`"; \
|
( here="`pwd`"; \
|
||||||
@@ -501,7 +679,7 @@ install_docs:
|
|||||||
$(INSTALL_PREFIX)$(MANDIR)/man7
|
$(INSTALL_PREFIX)$(MANDIR)/man7
|
||||||
@for i in doc/apps/*.pod; do \
|
@for i in doc/apps/*.pod; do \
|
||||||
fn=`basename $$i .pod`; \
|
fn=`basename $$i .pod`; \
|
||||||
sec=`[ "$$fn" = "config" ] && echo 5 || echo 1`; \
|
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 `dirname $$i`; \
|
(cd `dirname $$i`; \
|
||||||
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
||||||
@@ -510,7 +688,7 @@ install_docs:
|
|||||||
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`; \
|
||||||
sec=`[ "$$fn" = "des_modes" ] && echo 7 || echo 3`; \
|
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 `dirname $$i`; \
|
(cd `dirname $$i`; \
|
||||||
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
||||||
|
|||||||
60
NEWS
60
NEWS
@@ -5,6 +5,66 @@
|
|||||||
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.
|
||||||
|
|
||||||
|
Changes between OpenSSL 0.9.6c and OpenSSL 0.9.6d:
|
||||||
|
|
||||||
|
o Various SSL/TLS library bugfixes.
|
||||||
|
o Fix DH parameter generation for 'non-standard' generators.
|
||||||
|
|
||||||
|
Changes between OpenSSL 0.9.6b and OpenSSL 0.9.6c:
|
||||||
|
|
||||||
|
o Various SSL/TLS library bugfixes.
|
||||||
|
o BIGNUM library fixes.
|
||||||
|
o RSA OAEP and random number generation fixes.
|
||||||
|
o Object identifiers corrected and added.
|
||||||
|
o Add assembler BN routines for IA64.
|
||||||
|
o Add support for OS/390 Unix, UnixWare with gcc, OpenUNIX 8,
|
||||||
|
MIPS Linux; shared library support for Irix, HP-UX.
|
||||||
|
o Add crypto accelerator support for AEP, Baltimore SureWare,
|
||||||
|
Broadcom and Cryptographic Appliance's keyserver
|
||||||
|
[in 0.9.6c-engine release].
|
||||||
|
|
||||||
|
Changes between OpenSSL 0.9.6a and OpenSSL 0.9.6b:
|
||||||
|
|
||||||
|
o Security fix: PRNG improvements.
|
||||||
|
o Security fix: RSA OAEP check.
|
||||||
|
o Security fix: Reinsert and fix countermeasure to Bleichbacher's
|
||||||
|
attack.
|
||||||
|
o MIPS bug fix in BIGNUM.
|
||||||
|
o Bug fix in "openssl enc".
|
||||||
|
o Bug fix in X.509 printing routine.
|
||||||
|
o Bug fix in DSA verification routine and DSA S/MIME verification.
|
||||||
|
o Bug fix to make PRNG thread-safe.
|
||||||
|
o Bug fix in RAND_file_name().
|
||||||
|
o Bug fix in compatibility mode trust settings.
|
||||||
|
o Bug fix in blowfish EVP.
|
||||||
|
o Increase default size for BIO buffering filter.
|
||||||
|
o Compatibility fixes in some scripts.
|
||||||
|
|
||||||
|
Major changes between OpenSSL 0.9.6 and OpenSSL 0.9.6a:
|
||||||
|
|
||||||
|
o Security fix: change behavior of OpenSSL to avoid using
|
||||||
|
environment variables when running as root.
|
||||||
|
o Security fix: check the result of RSA-CRT to reduce the
|
||||||
|
possibility of deducing the private key from an incorrectly
|
||||||
|
calculated signature.
|
||||||
|
o Security fix: prevent Bleichenbacher's DSA attack.
|
||||||
|
o Security fix: Zero the premaster secret after deriving the
|
||||||
|
master secret in DH ciphersuites.
|
||||||
|
o Reimplement SSL_peek(), which had various problems.
|
||||||
|
o Compatibility fix: the function des_encrypt() renamed to
|
||||||
|
des_encrypt1() to avoid clashes with some Unixen libc.
|
||||||
|
o Bug fixes for Win32, HP/UX and Irix.
|
||||||
|
o Bug fixes in BIGNUM, SSL, PKCS#7, PKCS#12, X.509, CONF and
|
||||||
|
memory checking routines.
|
||||||
|
o Bug fixes for RSA operations in threaded enviroments.
|
||||||
|
o Bug fixes in misc. openssl applications.
|
||||||
|
o Remove a few potential memory leaks.
|
||||||
|
o Add tighter checks of BIGNUM routines.
|
||||||
|
o Shared library support has been reworked for generality.
|
||||||
|
o More documentation.
|
||||||
|
o New function BN_rand_range().
|
||||||
|
o Add "-rand" option to openssl s_client and s_server.
|
||||||
|
|
||||||
Major changes between OpenSSL 0.9.5a and OpenSSL 0.9.6:
|
Major changes between OpenSSL 0.9.5a and OpenSSL 0.9.6:
|
||||||
|
|
||||||
o Some documentation for BIO and SSL libraries.
|
o Some documentation for BIO and SSL libraries.
|
||||||
|
|||||||
16
README
16
README
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
OpenSSL 0.9.7-dev 24 Sep 2000
|
OpenSSL 0.9.6d-beta1 17 Apr 2002
|
||||||
|
|
||||||
Copyright (c) 1998-2000 The OpenSSL Project
|
Copyright (c) 1998-2002 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.
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
X.509v3 certificates
|
X.509v3 certificates
|
||||||
X509 encoding/decoding into/from binary ASN1 and a PEM
|
X509 encoding/decoding into/from binary ASN1 and a PEM
|
||||||
based ascii-binary encoding which supports encryption with a
|
based ASCII-binary encoding which supports encryption with a
|
||||||
private key. Program to generate RSA and DSA certificate
|
private key. Program to generate RSA and DSA certificate
|
||||||
requests and to generate RSA and DSA certificates.
|
requests and to generate RSA and DSA certificates.
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
locations around the world. _YOU_ are responsible for ensuring that your use
|
locations around the world. _YOU_ are responsible for ensuring that your use
|
||||||
of any algorithms is legal by checking if there are any patents in your
|
of any algorithms is legal by checking if there are any patents in your
|
||||||
country. The file contains some of the patents that we know about or are
|
country. The file contains some of the patents that we know about or are
|
||||||
rumoured to exist. This is not a definitive list.
|
rumored to exist. This is not a definitive list.
|
||||||
|
|
||||||
RSA Security holds software patents on the RC5 algorithm. If you
|
RSA Security holds software patents on the RC5 algorithm. If you
|
||||||
intend to use this cipher, you must contact RSA Security for
|
intend to use this cipher, you must contact RSA Security for
|
||||||
@@ -107,8 +107,8 @@
|
|||||||
only be used with RSA Security's permission.
|
only be used with RSA Security's permission.
|
||||||
|
|
||||||
The IDEA algorithm is patented by Ascom in Austria, France, Germany, Italy,
|
The IDEA algorithm is patented by Ascom in Austria, France, Germany, Italy,
|
||||||
Japan, Netherlands, Spain, Sweden, Switzerland, UK and the USA. They should
|
Japan, the Netherlands, Spain, Sweden, Switzerland, UK and the USA. They
|
||||||
be contacted if that algorithm is to be used, their web page is
|
should be contacted if that algorithm is to be used; their web page is
|
||||||
http://www.ascom.ch/.
|
http://www.ascom.ch/.
|
||||||
|
|
||||||
INSTALLATION
|
INSTALLATION
|
||||||
@@ -119,8 +119,8 @@
|
|||||||
INSTALL.VMS.
|
INSTALL.VMS.
|
||||||
|
|
||||||
Read the documentation in the doc/ directory. It is quite rough, but it
|
Read the documentation in the doc/ directory. It is quite rough, but it
|
||||||
lists the functions, you will probably have to look at the code to work out
|
lists the functions; you will probably have to look at the code to work out
|
||||||
how to used them. Look at the example programs.
|
how to use them. Look at the example programs.
|
||||||
|
|
||||||
SUPPORT
|
SUPPORT
|
||||||
-------
|
-------
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
With OpenSSL 0.9.6, a new component has been added to support external
|
With OpenSSL 0.9.6, a new component has been added to support external
|
||||||
crypto devices, for example accelerator cards. The component is called
|
crypto devices, for example accelerator cards. The component is called
|
||||||
ENGINE, and has still a pretty experimental status and almost no
|
ENGINE, and has still a pretty experimental status and almost no
|
||||||
documentation. It's designed to be faily easily extensible by the
|
documentation. It's designed to be fairly easily extensible by the
|
||||||
calling programs.
|
calling programs.
|
||||||
|
|
||||||
There's currently built-in support for the following crypto devices:
|
There's currently built-in support for the following crypto devices:
|
||||||
@@ -25,11 +25,30 @@
|
|||||||
What already exists is fairly stable as far as it has been tested, but
|
What already exists is fairly stable as far as it has been tested, but
|
||||||
the test base has been a bit small most of the time.
|
the test base has been a bit small most of the time.
|
||||||
|
|
||||||
|
Because of this experimental status and what's lacking, the ENGINE
|
||||||
|
component is not yet part of the default OpenSSL distribution. However,
|
||||||
|
we have made a separate kit for those who want to try this out, to be
|
||||||
|
found in the same places as the default OpenSSL distribution, but with
|
||||||
|
"-engine-" being part of the kit file name. For example, version 0.9.6
|
||||||
|
is distributed in the following two files:
|
||||||
|
|
||||||
|
openssl-0.9.6.tar.gz
|
||||||
|
openssl-engine-0.9.6.tar.gz
|
||||||
|
|
||||||
|
NOTES
|
||||||
|
=====
|
||||||
|
|
||||||
|
openssl-engine-0.9.6.tar.gz does not depend on openssl-0.9.6.tar, you do
|
||||||
|
not need to download both.
|
||||||
|
|
||||||
|
openssl-engine-0.9.6.tar.gz is usable even if you don't have an external
|
||||||
|
crypto device. The internal OpenSSL functions are contained in the
|
||||||
|
engine "openssl", and will be used by default.
|
||||||
|
|
||||||
No external crypto device is chosen unless you say so. You have actively
|
No external crypto device is chosen unless you say so. You have actively
|
||||||
tell the openssl utility commands to use it through a new command line
|
tell the openssl utility commands to use it through a new command line
|
||||||
switch called "-engine". And if you want to use the ENGINE library to
|
switch called "-engine". And if you want to use the ENGINE library to
|
||||||
do something similar, you must also explicitely choose an external crypto
|
do something similar, you must also explicitly choose an external crypto
|
||||||
device, or the built-in crypto routines will be used, just as in the
|
device, or the built-in crypto routines will be used, just as in the
|
||||||
default OpenSSL distribution.
|
default OpenSSL distribution.
|
||||||
|
|
||||||
@@ -37,7 +56,7 @@
|
|||||||
PROBLEMS
|
PROBLEMS
|
||||||
========
|
========
|
||||||
|
|
||||||
It seems like the ENGINE part doesn't work too well with Cryptoswift on
|
It seems like the ENGINE part doesn't work too well with CryptoSwift on
|
||||||
Win32. A quick test done right before the release showed that trying
|
Win32. A quick test done right before the release showed that trying
|
||||||
"openssl speed -engine cswift" generated errors. If the DSO gets enabled,
|
"openssl speed -engine cswift" generated errors. If the DSO gets enabled,
|
||||||
an attempt is made to write at memory address 0x00000002.
|
an attempt is made to write at memory address 0x00000002.
|
||||||
|
|||||||
37
STATUS
37
STATUS
@@ -1,10 +1,14 @@
|
|||||||
|
|
||||||
OpenSSL STATUS Last modified at
|
OpenSSL STATUS Last modified at
|
||||||
______________ $Date: 2000/10/26 21:07:27 $
|
______________ $Date: 2002/04/17 12:28:37 $
|
||||||
|
|
||||||
DEVELOPMENT STATE
|
DEVELOPMENT STATE
|
||||||
|
|
||||||
o OpenSSL 0.9.7: Under development...
|
o OpenSSL 0.9.7: Under development...
|
||||||
|
o OpenSSL 0.9.6d: Feature freeze, beta1 April 17th, 2002
|
||||||
|
o OpenSSL 0.9.6c: Released on December 21st, 2001
|
||||||
|
o OpenSSL 0.9.6b: Released on July 9th, 2001
|
||||||
|
o OpenSSL 0.9.6a: Released on April 5th, 2001
|
||||||
o OpenSSL 0.9.6: Released on September 24th, 2000
|
o OpenSSL 0.9.6: Released on September 24th, 2000
|
||||||
o OpenSSL 0.9.5a: Released on April 1st, 2000
|
o OpenSSL 0.9.5a: Released on April 1st, 2000
|
||||||
o OpenSSL 0.9.5: Released on February 28th, 2000
|
o OpenSSL 0.9.5: Released on February 28th, 2000
|
||||||
@@ -18,30 +22,37 @@
|
|||||||
|
|
||||||
AVAILABLE PATCHES
|
AVAILABLE PATCHES
|
||||||
|
|
||||||
o CA.pl patch (Damien Miller)
|
o
|
||||||
|
|
||||||
IN PROGRESS
|
IN PROGRESS
|
||||||
|
|
||||||
o Steve is currently working on (in no particular order):
|
o Steve is currently working on (in no particular order):
|
||||||
ASN1 code redesign, butchery, replacement.
|
ASN1 code redesign, butchery, replacement.
|
||||||
|
OCSP
|
||||||
EVP cipher enhancement.
|
EVP cipher enhancement.
|
||||||
/* Proper (or at least usable) certificate chain verification. */
|
Enhanced certificate chain verification.
|
||||||
Private key, certificate and CRL API and implementation.
|
Private key, certificate and CRL API and implementation.
|
||||||
Developing and bugfixing PKCS#7 (S/MIME code).
|
Developing and bugfixing PKCS#7 (S/MIME code).
|
||||||
Various X509 issues: character sets, certificate request extensions.
|
Various X509 issues: character sets, certificate request extensions.
|
||||||
o Geoff and Richard are currently working on:
|
o Geoff and Richard are currently working on:
|
||||||
ENGINE (the new code that gives hardware support among others).
|
ENGINE (the new code that gives hardware support among others).
|
||||||
o Richard is currently working on:
|
o Richard is currently working on:
|
||||||
|
UI (User Interface)
|
||||||
UTIL (a new set of library functions to support some higher level
|
UTIL (a new set of library functions to support some higher level
|
||||||
functionality that is currently missing).
|
functionality that is currently missing).
|
||||||
Dynamic thread-lock support.
|
|
||||||
Shared library support for VMS.
|
Shared library support for VMS.
|
||||||
|
Kerberos 5 authentication
|
||||||
|
Constification
|
||||||
|
OCSP
|
||||||
|
|
||||||
NEEDS PATCH
|
NEEDS PATCH
|
||||||
|
|
||||||
o non-blocking socket on AIX
|
o apps/ca.c: "Sign the certificate?" - "n" creates empty certificate file
|
||||||
o $(PERL) in */Makefile.ssl
|
|
||||||
o "Sign the certificate?" - "n" creates empty certificate file
|
o Whenever strncpy is used, make sure the resulting string is NULL-terminated
|
||||||
|
or an error is reported
|
||||||
|
|
||||||
|
o "OpenSSL STATUS" is never up-to-date.
|
||||||
|
|
||||||
OPEN ISSUES
|
OPEN ISSUES
|
||||||
|
|
||||||
@@ -87,4 +98,14 @@
|
|||||||
|
|
||||||
WISHES
|
WISHES
|
||||||
|
|
||||||
o
|
o SRP in TLS.
|
||||||
|
[wished by:
|
||||||
|
Dj <derek@yo.net>, Tom Wu <tom@arcot.com>,
|
||||||
|
Tom Holroyd <tomh@po.crl.go.jp>]
|
||||||
|
|
||||||
|
See http://search.ietf.org/internet-drafts/draft-ietf-tls-srp-00.txt
|
||||||
|
as well as http://www-cs-students.stanford.edu/~tjw/srp/.
|
||||||
|
|
||||||
|
Tom Holroyd tells us there is a SRP patch for OpenSSH at
|
||||||
|
http://members.tripod.com/professor_tom/archives/, that could
|
||||||
|
be useful.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -142,21 +142,18 @@ int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn)
|
|||||||
}
|
}
|
||||||
if (file == NULL || !RAND_load_file(file, -1))
|
if (file == NULL || !RAND_load_file(file, -1))
|
||||||
{
|
{
|
||||||
if (RAND_status() == 0)
|
if (RAND_status() == 0 && !dont_warn)
|
||||||
{
|
{
|
||||||
if (!dont_warn)
|
BIO_printf(bio_e,"unable to load 'random state'\n");
|
||||||
|
BIO_printf(bio_e,"This means that the random number generator has not been seeded\n");
|
||||||
|
BIO_printf(bio_e,"with much random data.\n");
|
||||||
|
if (consider_randfile) /* explanation does not apply when a file is explicitly named */
|
||||||
{
|
{
|
||||||
BIO_printf(bio_e,"unable to load 'random state'\n");
|
BIO_printf(bio_e,"Consider setting the RANDFILE environment variable to point at a file that\n");
|
||||||
BIO_printf(bio_e,"This means that the random number generator has not been seeded\n");
|
BIO_printf(bio_e,"'random' data can be kept in (the file will be overwritten).\n");
|
||||||
BIO_printf(bio_e,"with much random data.\n");
|
|
||||||
if (consider_randfile) /* explanation does not apply when a file is explicitly named */
|
|
||||||
{
|
|
||||||
BIO_printf(bio_e,"Consider setting the RANDFILE environment variable to point at a file that\n");
|
|
||||||
BIO_printf(bio_e,"'random' data can be kept in (the file will be overwritten).\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
seeded = 1;
|
seeded = 1;
|
||||||
return 1;
|
return 1;
|
||||||
@@ -180,8 +177,10 @@ long app_RAND_load_files(char *name)
|
|||||||
if (*n == '\0') break;
|
if (*n == '\0') break;
|
||||||
|
|
||||||
egd=RAND_egd(n);
|
egd=RAND_egd(n);
|
||||||
if (egd > 0) tot+=egd;
|
if (egd > 0)
|
||||||
tot+=RAND_load_file(n,-1);
|
tot+=egd;
|
||||||
|
else
|
||||||
|
tot+=RAND_load_file(n,-1);
|
||||||
if (last) break;
|
if (last) break;
|
||||||
}
|
}
|
||||||
if (tot > 512)
|
if (tot > 512)
|
||||||
|
|||||||
79
apps/apps.c
79
apps/apps.c
@@ -74,14 +74,6 @@
|
|||||||
# include "bss_file.c"
|
# include "bss_file.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
char *name;
|
|
||||||
unsigned long flag;
|
|
||||||
unsigned long mask;
|
|
||||||
} NAME_EX_TBL;
|
|
||||||
|
|
||||||
static int set_table_opts(unsigned long *flags, const char *arg, const NAME_EX_TBL *in_tbl);
|
|
||||||
|
|
||||||
int app_init(long mesgwin);
|
int app_init(long mesgwin);
|
||||||
#ifdef undef /* never finished - probably never will be :-) */
|
#ifdef undef /* never finished - probably never will be :-) */
|
||||||
int args_from_file(char *file, int *argc, char **argv[])
|
int args_from_file(char *file, int *argc, char **argv[])
|
||||||
@@ -178,8 +170,6 @@ int str2fmt(char *s)
|
|||||||
|| (strcmp(s,"PKCS12") == 0) || (strcmp(s,"pkcs12") == 0)
|
|| (strcmp(s,"PKCS12") == 0) || (strcmp(s,"pkcs12") == 0)
|
||||||
|| (strcmp(s,"P12") == 0) || (strcmp(s,"p12") == 0))
|
|| (strcmp(s,"P12") == 0) || (strcmp(s,"p12") == 0))
|
||||||
return(FORMAT_PKCS12);
|
return(FORMAT_PKCS12);
|
||||||
else if ((*s == 'E') || (*s == 'e'))
|
|
||||||
return(FORMAT_ENGINE);
|
|
||||||
else
|
else
|
||||||
return(FORMAT_UNDEF);
|
return(FORMAT_UNDEF);
|
||||||
}
|
}
|
||||||
@@ -553,7 +543,7 @@ end:
|
|||||||
return(x);
|
return(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass, ENGINE *e)
|
EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass)
|
||||||
{
|
{
|
||||||
BIO *key=NULL;
|
BIO *key=NULL;
|
||||||
EVP_PKEY *pkey=NULL;
|
EVP_PKEY *pkey=NULL;
|
||||||
@@ -563,14 +553,6 @@ EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass, ENGINE *e)
|
|||||||
BIO_printf(err,"no keyfile specified\n");
|
BIO_printf(err,"no keyfile specified\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (format == FORMAT_ENGINE)
|
|
||||||
{
|
|
||||||
if (!e)
|
|
||||||
BIO_printf(bio_err,"no engine specified\n");
|
|
||||||
else
|
|
||||||
pkey = ENGINE_load_private_key(e, file, pass);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
key=BIO_new(BIO_s_file());
|
key=BIO_new(BIO_s_file());
|
||||||
if (key == NULL)
|
if (key == NULL)
|
||||||
{
|
{
|
||||||
@@ -610,7 +592,7 @@ EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass, ENGINE *e)
|
|||||||
return(pkey);
|
return(pkey);
|
||||||
}
|
}
|
||||||
|
|
||||||
EVP_PKEY *load_pubkey(BIO *err, char *file, int format, ENGINE *e)
|
EVP_PKEY *load_pubkey(BIO *err, char *file, int format)
|
||||||
{
|
{
|
||||||
BIO *key=NULL;
|
BIO *key=NULL;
|
||||||
EVP_PKEY *pkey=NULL;
|
EVP_PKEY *pkey=NULL;
|
||||||
@@ -620,14 +602,6 @@ EVP_PKEY *load_pubkey(BIO *err, char *file, int format, ENGINE *e)
|
|||||||
BIO_printf(err,"no keyfile specified\n");
|
BIO_printf(err,"no keyfile specified\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (format == FORMAT_ENGINE)
|
|
||||||
{
|
|
||||||
if (!e)
|
|
||||||
BIO_printf(bio_err,"no engine specified\n");
|
|
||||||
else
|
|
||||||
pkey = ENGINE_load_public_key(e, file, NULL);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
key=BIO_new(BIO_s_file());
|
key=BIO_new(BIO_s_file());
|
||||||
if (key == NULL)
|
if (key == NULL)
|
||||||
{
|
{
|
||||||
@@ -720,43 +694,16 @@ end:
|
|||||||
return(othercerts);
|
return(othercerts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
#define X509V3_EXT_UNKNOWN_MASK (0xfL << 16)
|
char *name;
|
||||||
/* Return error for unknown extensions */
|
unsigned long flag;
|
||||||
#define X509V3_EXT_DEFAULT 0
|
unsigned long mask;
|
||||||
/* Print error for unknown extensions */
|
} NAME_EX_TBL;
|
||||||
#define X509V3_EXT_ERROR_UNKNOWN (1L << 16)
|
|
||||||
/* ASN1 parse unknown extensions */
|
|
||||||
#define X509V3_EXT_PARSE_UNKNOWN (2L << 16)
|
|
||||||
/* BIO_dump unknown extensions */
|
|
||||||
#define X509V3_EXT_DUMP_UNKNOWN (3L << 16)
|
|
||||||
|
|
||||||
int set_cert_ex(unsigned long *flags, const char *arg)
|
|
||||||
{
|
|
||||||
static const NAME_EX_TBL cert_tbl[] = {
|
|
||||||
{ "compatible", X509_FLAG_COMPAT, 0xffffffffl},
|
|
||||||
{ "no_header", X509_FLAG_NO_HEADER, 0},
|
|
||||||
{ "no_version", X509_FLAG_NO_VERSION, 0},
|
|
||||||
{ "no_serial", X509_FLAG_NO_SERIAL, 0},
|
|
||||||
{ "no_signame", X509_FLAG_NO_SIGNAME, 0},
|
|
||||||
{ "no_validity", X509_FLAG_NO_VALIDITY, 0},
|
|
||||||
{ "no_subject", X509_FLAG_NO_SUBJECT, 0},
|
|
||||||
{ "no_pubkey", X509_FLAG_NO_PUBKEY, 0},
|
|
||||||
{ "no_extensions", X509_FLAG_NO_EXTENSIONS, 0},
|
|
||||||
{ "no_sigdump", X509_FLAG_NO_SIGDUMP, 0},
|
|
||||||
{ "no_aux", X509_FLAG_NO_AUX, 0},
|
|
||||||
{ "ext_default", X509V3_EXT_DEFAULT, X509V3_EXT_UNKNOWN_MASK},
|
|
||||||
{ "ext_error", X509V3_EXT_ERROR_UNKNOWN, X509V3_EXT_UNKNOWN_MASK},
|
|
||||||
{ "ext_parse", X509V3_EXT_PARSE_UNKNOWN, X509V3_EXT_UNKNOWN_MASK},
|
|
||||||
{ "ext_dump", X509V3_EXT_DUMP_UNKNOWN, X509V3_EXT_UNKNOWN_MASK},
|
|
||||||
{ NULL, 0, 0}
|
|
||||||
};
|
|
||||||
return set_table_opts(flags, arg, cert_tbl);
|
|
||||||
}
|
|
||||||
|
|
||||||
int set_name_ex(unsigned long *flags, const char *arg)
|
int set_name_ex(unsigned long *flags, const char *arg)
|
||||||
{
|
{
|
||||||
static const NAME_EX_TBL ex_tbl[] = {
|
char c;
|
||||||
|
const NAME_EX_TBL *ptbl, ex_tbl[] = {
|
||||||
{ "esc_2253", ASN1_STRFLGS_ESC_2253, 0},
|
{ "esc_2253", ASN1_STRFLGS_ESC_2253, 0},
|
||||||
{ "esc_ctrl", ASN1_STRFLGS_ESC_CTRL, 0},
|
{ "esc_ctrl", ASN1_STRFLGS_ESC_CTRL, 0},
|
||||||
{ "esc_msb", ASN1_STRFLGS_ESC_MSB, 0},
|
{ "esc_msb", ASN1_STRFLGS_ESC_MSB, 0},
|
||||||
@@ -784,13 +731,7 @@ int set_name_ex(unsigned long *flags, const char *arg)
|
|||||||
{ "multiline", XN_FLAG_MULTILINE, 0xffffffffL},
|
{ "multiline", XN_FLAG_MULTILINE, 0xffffffffL},
|
||||||
{ NULL, 0, 0}
|
{ NULL, 0, 0}
|
||||||
};
|
};
|
||||||
return set_table_opts(flags, arg, ex_tbl);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int set_table_opts(unsigned long *flags, const char *arg, const NAME_EX_TBL *in_tbl)
|
|
||||||
{
|
|
||||||
char c;
|
|
||||||
const NAME_EX_TBL *ptbl;
|
|
||||||
c = arg[0];
|
c = arg[0];
|
||||||
|
|
||||||
if(c == '-') {
|
if(c == '-') {
|
||||||
@@ -801,7 +742,7 @@ static int set_table_opts(unsigned long *flags, const char *arg, const NAME_EX_T
|
|||||||
arg++;
|
arg++;
|
||||||
} else c = 1;
|
} else c = 1;
|
||||||
|
|
||||||
for(ptbl = in_tbl; ptbl->name; ptbl++) {
|
for(ptbl = ex_tbl; ptbl->name; ptbl++) {
|
||||||
if(!strcmp(arg, ptbl->name)) {
|
if(!strcmp(arg, ptbl->name)) {
|
||||||
*flags &= ~ptbl->mask;
|
*flags &= ~ptbl->mask;
|
||||||
if(c) *flags |= ptbl->flag;
|
if(c) *flags |= ptbl->flag;
|
||||||
|
|||||||
15
apps/apps.h
15
apps/apps.h
@@ -67,7 +67,6 @@
|
|||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/lhash.h>
|
#include <openssl/lhash.h>
|
||||||
#include <openssl/conf.h>
|
#include <openssl/conf.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn);
|
int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn);
|
||||||
int app_RAND_write_file(const char *file, BIO *bio_e);
|
int app_RAND_write_file(const char *file, BIO *bio_e);
|
||||||
@@ -122,16 +121,14 @@ extern BIO *bio_err;
|
|||||||
# ifdef _O_BINARY
|
# ifdef _O_BINARY
|
||||||
# define apps_startup() \
|
# define apps_startup() \
|
||||||
_fmode=_O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
_fmode=_O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
||||||
SSLeay_add_all_algorithms(); ENGINE_load_builtin_engines()
|
SSLeay_add_all_algorithms()
|
||||||
# else
|
# else
|
||||||
# define apps_startup() \
|
# define apps_startup() \
|
||||||
_fmode=O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
_fmode=O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
||||||
SSLeay_add_all_algorithms(); ENGINE_load_builtin_engines()
|
SSLeay_add_all_algorithms()
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# define apps_startup() \
|
# define apps_startup() do_pipe_sig(); SSLeay_add_all_algorithms();
|
||||||
do_pipe_sig(); SSLeay_add_all_algorithms(); \
|
|
||||||
ENGINE_load_builtin_engines()
|
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -150,13 +147,12 @@ int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]);
|
|||||||
int dump_cert_text(BIO *out, X509 *x);
|
int dump_cert_text(BIO *out, X509 *x);
|
||||||
void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags);
|
void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags);
|
||||||
#endif
|
#endif
|
||||||
int set_cert_ex(unsigned long *flags, const char *arg);
|
|
||||||
int set_name_ex(unsigned long *flags, const char *arg);
|
int set_name_ex(unsigned long *flags, const char *arg);
|
||||||
int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2);
|
int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2);
|
||||||
int add_oid_section(BIO *err, LHASH *conf);
|
int add_oid_section(BIO *err, LHASH *conf);
|
||||||
X509 *load_cert(BIO *err, char *file, int format);
|
X509 *load_cert(BIO *err, char *file, int format);
|
||||||
EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass, ENGINE *e);
|
EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass);
|
||||||
EVP_PKEY *load_pubkey(BIO *err, char *file, int format, ENGINE *e);
|
EVP_PKEY *load_pubkey(BIO *err, char *file, int format);
|
||||||
STACK_OF(X509) *load_certs(BIO *err, char *file, int format);
|
STACK_OF(X509) *load_certs(BIO *err, char *file, int format);
|
||||||
|
|
||||||
#define FORMAT_UNDEF 0
|
#define FORMAT_UNDEF 0
|
||||||
@@ -166,7 +162,6 @@ STACK_OF(X509) *load_certs(BIO *err, char *file, int format);
|
|||||||
#define FORMAT_NETSCAPE 4
|
#define FORMAT_NETSCAPE 4
|
||||||
#define FORMAT_PKCS12 5
|
#define FORMAT_PKCS12 5
|
||||||
#define FORMAT_SMIME 6
|
#define FORMAT_SMIME 6
|
||||||
#define FORMAT_ENGINE 7
|
|
||||||
|
|
||||||
#define NETSCAPE_CERT_HDR "certificate"
|
#define NETSCAPE_CERT_HDR "certificate"
|
||||||
|
|
||||||
|
|||||||
73
apps/ca.c
73
apps/ca.c
@@ -74,7 +74,6 @@
|
|||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#ifndef W_OK
|
#ifndef W_OK
|
||||||
# ifdef VMS
|
# ifdef VMS
|
||||||
@@ -83,7 +82,7 @@
|
|||||||
# else
|
# else
|
||||||
# include <unixlib.h>
|
# include <unixlib.h>
|
||||||
# endif
|
# endif
|
||||||
# else
|
# elif !defined(VXWORKS)
|
||||||
# include <sys/file.h>
|
# include <sys/file.h>
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
@@ -153,8 +152,7 @@ static char *ca_usage[]={
|
|||||||
" -days arg - number of days to certify the certificate for\n",
|
" -days arg - number of days to certify the certificate for\n",
|
||||||
" -md arg - md to use, one of md2, md5, sha or sha1\n",
|
" -md arg - md to use, one of md2, md5, sha or sha1\n",
|
||||||
" -policy arg - The CA 'policy' to support\n",
|
" -policy arg - The CA 'policy' to support\n",
|
||||||
" -keyfile arg - private key file\n",
|
" -keyfile arg - PEM private key file\n",
|
||||||
" -keyform arg - private key file format (PEM or ENGINE)\n",
|
|
||||||
" -key arg - key to decode the private key if it is encrypted\n",
|
" -key arg - key to decode the private key if it is encrypted\n",
|
||||||
" -cert file - The CA certificate\n",
|
" -cert file - The CA certificate\n",
|
||||||
" -in file - The input PEM encoded certificate request(s)\n",
|
" -in file - The input PEM encoded certificate request(s)\n",
|
||||||
@@ -169,7 +167,6 @@ static char *ca_usage[]={
|
|||||||
" -revoke file - Revoke a certificate (given in file)\n",
|
" -revoke file - Revoke a certificate (given in file)\n",
|
||||||
" -extensions .. - Extension section (override value in config file)\n",
|
" -extensions .. - Extension section (override value in config file)\n",
|
||||||
" -crlexts .. - CRL extension section (override value in config file)\n",
|
" -crlexts .. - CRL extension section (override value in config file)\n",
|
||||||
" -engine e - use engine e, possibly a hardware device.\n",
|
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -219,7 +216,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
char *key=NULL,*passargin=NULL;
|
char *key=NULL,*passargin=NULL;
|
||||||
int total=0;
|
int total=0;
|
||||||
int total_done=0;
|
int total_done=0;
|
||||||
@@ -237,7 +233,6 @@ int MAIN(int argc, char **argv)
|
|||||||
char *policy=NULL;
|
char *policy=NULL;
|
||||||
char *keyfile=NULL;
|
char *keyfile=NULL;
|
||||||
char *certfile=NULL;
|
char *certfile=NULL;
|
||||||
int keyform=FORMAT_PEM;
|
|
||||||
char *infile=NULL;
|
char *infile=NULL;
|
||||||
char *spkac_file=NULL;
|
char *spkac_file=NULL;
|
||||||
char *ss_cert_file=NULL;
|
char *ss_cert_file=NULL;
|
||||||
@@ -273,7 +268,6 @@ int MAIN(int argc, char **argv)
|
|||||||
#define BSIZE 256
|
#define BSIZE 256
|
||||||
MS_STATIC char buf[3][BSIZE];
|
MS_STATIC char buf[3][BSIZE];
|
||||||
char *randfile=NULL;
|
char *randfile=NULL;
|
||||||
char *engine = NULL;
|
|
||||||
|
|
||||||
#ifdef EFENCE
|
#ifdef EFENCE
|
||||||
EF_PROTECT_FREE=1;
|
EF_PROTECT_FREE=1;
|
||||||
@@ -339,11 +333,6 @@ EF_ALIGNMENT=0;
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
keyfile= *(++argv);
|
keyfile= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-keyform") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
keyform=str2fmt(*(++argv));
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-passin") == 0)
|
else if (strcmp(*argv,"-passin") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
@@ -430,11 +419,6 @@ EF_ALIGNMENT=0;
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
crl_ext= *(++argv);
|
crl_ext= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bad:
|
bad:
|
||||||
@@ -455,24 +439,6 @@ bad:
|
|||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************/
|
/*****************************************************************/
|
||||||
if (configfile == NULL) configfile = getenv("OPENSSL_CONF");
|
if (configfile == NULL) configfile = getenv("OPENSSL_CONF");
|
||||||
if (configfile == NULL) configfile = getenv("SSLEAY_CONF");
|
if (configfile == NULL) configfile = getenv("SSLEAY_CONF");
|
||||||
@@ -570,31 +536,14 @@ bad:
|
|||||||
BIO_printf(bio_err,"Error getting password\n");
|
BIO_printf(bio_err,"Error getting password\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
if (keyform == FORMAT_ENGINE)
|
if (BIO_read_filename(in,keyfile) <= 0)
|
||||||
{
|
{
|
||||||
if (!e)
|
perror(keyfile);
|
||||||
{
|
BIO_printf(bio_err,"trying to load CA private key\n");
|
||||||
BIO_printf(bio_err,"no engine specified\n");
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
pkey = ENGINE_load_private_key(e, keyfile, key);
|
|
||||||
}
|
|
||||||
else if (keyform == FORMAT_PEM)
|
|
||||||
{
|
|
||||||
if (BIO_read_filename(in,keyfile) <= 0)
|
|
||||||
{
|
|
||||||
perror(keyfile);
|
|
||||||
BIO_printf(bio_err,"trying to load CA private key\n");
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,key);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"bad input format specified for key file\n");
|
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
if(key) memset(key,0,strlen(key));
|
pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,key);
|
||||||
|
if(key) memset(key,0,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");
|
||||||
@@ -1271,7 +1220,11 @@ bad:
|
|||||||
X509_free(revcert);
|
X509_free(revcert);
|
||||||
|
|
||||||
strncpy(buf[0],dbfile,BSIZE-4);
|
strncpy(buf[0],dbfile,BSIZE-4);
|
||||||
|
#ifndef VMS
|
||||||
strcat(buf[0],".new");
|
strcat(buf[0],".new");
|
||||||
|
#else
|
||||||
|
strcat(buf[0],"-new");
|
||||||
|
#endif
|
||||||
if (BIO_write_filename(out,buf[0]) <= 0)
|
if (BIO_write_filename(out,buf[0]) <= 0)
|
||||||
{
|
{
|
||||||
perror(dbfile);
|
perror(dbfile);
|
||||||
@@ -1281,7 +1234,11 @@ bad:
|
|||||||
j=TXT_DB_write(out,db);
|
j=TXT_DB_write(out,db);
|
||||||
if (j <= 0) goto err;
|
if (j <= 0) goto err;
|
||||||
strncpy(buf[1],dbfile,BSIZE-4);
|
strncpy(buf[1],dbfile,BSIZE-4);
|
||||||
|
#ifndef VMS
|
||||||
strcat(buf[1],".old");
|
strcat(buf[1],".old");
|
||||||
|
#else
|
||||||
|
strcat(buf[1],"-old");
|
||||||
|
#endif
|
||||||
if (rename(dbfile,buf[1]) < 0)
|
if (rename(dbfile,buf[1]) < 0)
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"unable to rename %s to %s\n", dbfile, buf[1]);
|
BIO_printf(bio_err,"unable to rename %s to %s\n", dbfile, buf[1]);
|
||||||
|
|||||||
89
apps/dgst.c
89
apps/dgst.c
@@ -66,7 +66,6 @@
|
|||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef BUFSIZE
|
#undef BUFSIZE
|
||||||
#define BUFSIZE 1024*8
|
#define BUFSIZE 1024*8
|
||||||
@@ -81,7 +80,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
unsigned char *buf=NULL;
|
unsigned char *buf=NULL;
|
||||||
int i,err=0;
|
int i,err=0;
|
||||||
const EVP_MD *md=NULL,*m;
|
const EVP_MD *md=NULL,*m;
|
||||||
@@ -89,18 +87,16 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO *bmd=NULL;
|
BIO *bmd=NULL;
|
||||||
BIO *out = NULL;
|
BIO *out = NULL;
|
||||||
const char *name;
|
const char *name;
|
||||||
#define PROG_NAME_SIZE 16
|
#define PROG_NAME_SIZE 39
|
||||||
char pname[PROG_NAME_SIZE];
|
char pname[PROG_NAME_SIZE+1];
|
||||||
int separator=0;
|
int separator=0;
|
||||||
int debug=0;
|
int debug=0;
|
||||||
int keyform=FORMAT_PEM;
|
|
||||||
const char *outfile = NULL, *keyfile = NULL;
|
const char *outfile = NULL, *keyfile = NULL;
|
||||||
const char *sigfile = NULL, *randfile = NULL;
|
const char *sigfile = NULL, *randfile = NULL;
|
||||||
int out_bin = -1, want_pub = 0, do_verify = 0;
|
int out_bin = -1, want_pub = 0, do_verify = 0;
|
||||||
EVP_PKEY *sigkey = NULL;
|
EVP_PKEY *sigkey = NULL;
|
||||||
unsigned char *sigbuf = NULL;
|
unsigned char *sigbuf = NULL;
|
||||||
int siglen = 0;
|
int siglen = 0;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -158,16 +154,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) break;
|
if (--argc < 1) break;
|
||||||
sigfile=*(++argv);
|
sigfile=*(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-keyform") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) break;
|
|
||||||
keyform=str2fmt(*(++argv));
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) break;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-hex") == 0)
|
else if (strcmp(*argv,"-hex") == 0)
|
||||||
out_bin = 0;
|
out_bin = 0;
|
||||||
else if (strcmp(*argv,"-binary") == 0)
|
else if (strcmp(*argv,"-binary") == 0)
|
||||||
@@ -202,10 +188,8 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO_printf(bio_err,"-sign file sign digest using private key in file\n");
|
BIO_printf(bio_err,"-sign file sign digest using private key in file\n");
|
||||||
BIO_printf(bio_err,"-verify file verify a signature using public key in file\n");
|
BIO_printf(bio_err,"-verify file verify a signature using public key in file\n");
|
||||||
BIO_printf(bio_err,"-prverify file verify a signature using private key in file\n");
|
BIO_printf(bio_err,"-prverify file verify a signature using private key in file\n");
|
||||||
BIO_printf(bio_err,"-keyform arg key file format (PEM or ENGINE)\n");
|
|
||||||
BIO_printf(bio_err,"-signature file signature to verify\n");
|
BIO_printf(bio_err,"-signature file signature to verify\n");
|
||||||
BIO_printf(bio_err,"-binary output in binary form\n");
|
BIO_printf(bio_err,"-binary output in binary form\n");
|
||||||
BIO_printf(bio_err,"-engine e use engine e, possibly a hardware device.\n");
|
|
||||||
|
|
||||||
BIO_printf(bio_err,"-%3s to use the %s message digest algorithm (default)\n",
|
BIO_printf(bio_err,"-%3s to use the %s message digest algorithm (default)\n",
|
||||||
LN_md5,LN_md5);
|
LN_md5,LN_md5);
|
||||||
@@ -225,24 +209,6 @@ int MAIN(int argc, char **argv)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
in=BIO_new(BIO_s_file());
|
in=BIO_new(BIO_s_file());
|
||||||
bmd=BIO_new(BIO_f_md());
|
bmd=BIO_new(BIO_f_md());
|
||||||
if (debug)
|
if (debug)
|
||||||
@@ -287,47 +253,20 @@ int MAIN(int argc, char **argv)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(keyfile)
|
if(keyfile) {
|
||||||
{
|
BIO *keybio;
|
||||||
if (keyform == FORMAT_PEM)
|
keybio = BIO_new_file(keyfile, "r");
|
||||||
{
|
if(!keybio) {
|
||||||
BIO *keybio;
|
BIO_printf(bio_err, "Error opening key file %s\n",
|
||||||
keybio = BIO_new_file(keyfile, "r");
|
keyfile);
|
||||||
if(!keybio)
|
ERR_print_errors(bio_err);
|
||||||
{
|
|
||||||
BIO_printf(bio_err,
|
|
||||||
"Error opening key file %s\n",
|
|
||||||
keyfile);
|
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(want_pub)
|
|
||||||
sigkey = PEM_read_bio_PUBKEY(keybio,
|
|
||||||
NULL, NULL, NULL);
|
|
||||||
else
|
|
||||||
sigkey = PEM_read_bio_PrivateKey(keybio,
|
|
||||||
NULL, NULL, NULL);
|
|
||||||
BIO_free(keybio);
|
|
||||||
}
|
|
||||||
else if (keyform == FORMAT_ENGINE)
|
|
||||||
{
|
|
||||||
if (!e)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"no engine specified\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if (want_pub)
|
|
||||||
sigkey = ENGINE_load_public_key(e, keyfile, NULL);
|
|
||||||
else
|
|
||||||
sigkey = ENGINE_load_private_key(e, keyfile, NULL);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,
|
|
||||||
"bad input format specified for key file\n");
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(want_pub)
|
||||||
|
sigkey = PEM_read_bio_PUBKEY(keybio, NULL, NULL, NULL);
|
||||||
|
else sigkey = PEM_read_bio_PrivateKey(keybio, NULL, NULL, NULL);
|
||||||
|
BIO_free(keybio);
|
||||||
if(!sigkey) {
|
if(!sigkey) {
|
||||||
BIO_printf(bio_err, "Error reading key file %s\n",
|
BIO_printf(bio_err, "Error reading key file %s\n",
|
||||||
keyfile);
|
keyfile);
|
||||||
|
|||||||
29
apps/dh.c
29
apps/dh.c
@@ -69,7 +69,6 @@
|
|||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG dh_main
|
#define PROG dh_main
|
||||||
@@ -88,12 +87,11 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
DH *dh=NULL;
|
DH *dh=NULL;
|
||||||
int i,badops=0,text=0;
|
int i,badops=0,text=0;
|
||||||
BIO *in=NULL,*out=NULL;
|
BIO *in=NULL,*out=NULL;
|
||||||
int informat,outformat,check=0,noout=0,C=0,ret=1;
|
int informat,outformat,check=0,noout=0,C=0,ret=1;
|
||||||
char *infile,*outfile,*prog,*engine;
|
char *infile,*outfile,*prog;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -101,7 +99,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if ((bio_err=BIO_new(BIO_s_file())) != NULL)
|
if ((bio_err=BIO_new(BIO_s_file())) != NULL)
|
||||||
BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
|
BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
|
||||||
|
|
||||||
engine=NULL;
|
|
||||||
infile=NULL;
|
infile=NULL;
|
||||||
outfile=NULL;
|
outfile=NULL;
|
||||||
informat=FORMAT_PEM;
|
informat=FORMAT_PEM;
|
||||||
@@ -132,11 +129,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
outfile= *(++argv);
|
outfile= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-check") == 0)
|
else if (strcmp(*argv,"-check") == 0)
|
||||||
check=1;
|
check=1;
|
||||||
else if (strcmp(*argv,"-text") == 0)
|
else if (strcmp(*argv,"-text") == 0)
|
||||||
@@ -168,30 +160,11 @@ bad:
|
|||||||
BIO_printf(bio_err," -text print a text form of the DH parameters\n");
|
BIO_printf(bio_err," -text print a text form of the DH parameters\n");
|
||||||
BIO_printf(bio_err," -C Output C code\n");
|
BIO_printf(bio_err," -C Output C code\n");
|
||||||
BIO_printf(bio_err," -noout no output\n");
|
BIO_printf(bio_err," -noout no output\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
in=BIO_new(BIO_s_file());
|
in=BIO_new(BIO_s_file());
|
||||||
out=BIO_new(BIO_s_file());
|
out=BIO_new(BIO_s_file());
|
||||||
if ((in == NULL) || (out == NULL))
|
if ((in == NULL) || (out == NULL))
|
||||||
|
|||||||
@@ -121,7 +121,6 @@
|
|||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
@@ -149,7 +148,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
DH *dh=NULL;
|
DH *dh=NULL;
|
||||||
int i,badops=0,text=0;
|
int i,badops=0,text=0;
|
||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
@@ -158,7 +156,7 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO *in=NULL,*out=NULL;
|
BIO *in=NULL,*out=NULL;
|
||||||
int informat,outformat,check=0,noout=0,C=0,ret=1;
|
int informat,outformat,check=0,noout=0,C=0,ret=1;
|
||||||
char *infile,*outfile,*prog;
|
char *infile,*outfile,*prog;
|
||||||
char *inrand=NULL,*engine=NULL;
|
char *inrand=NULL;
|
||||||
int num = 0, g = 0;
|
int num = 0, g = 0;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
@@ -197,11 +195,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
outfile= *(++argv);
|
outfile= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-check") == 0)
|
else if (strcmp(*argv,"-check") == 0)
|
||||||
check=1;
|
check=1;
|
||||||
else if (strcmp(*argv,"-text") == 0)
|
else if (strcmp(*argv,"-text") == 0)
|
||||||
@@ -247,7 +240,6 @@ bad:
|
|||||||
BIO_printf(bio_err," -2 generate parameters using 2 as the generator value\n");
|
BIO_printf(bio_err," -2 generate parameters using 2 as the generator value\n");
|
||||||
BIO_printf(bio_err," -5 generate parameters using 5 as the generator value\n");
|
BIO_printf(bio_err," -5 generate parameters using 5 as the generator value\n");
|
||||||
BIO_printf(bio_err," numbits number of bits in to generate (default 512)\n");
|
BIO_printf(bio_err," numbits number of bits in to generate (default 512)\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
BIO_printf(bio_err," - load the file (or the files in the directory) into\n");
|
BIO_printf(bio_err," - load the file (or the files in the directory) into\n");
|
||||||
BIO_printf(bio_err," the random number generator\n");
|
BIO_printf(bio_err," the random number generator\n");
|
||||||
@@ -257,24 +249,6 @@ bad:
|
|||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g && !num)
|
if (g && !num)
|
||||||
num = DEFBITS;
|
num = DEFBITS;
|
||||||
|
|
||||||
|
|||||||
29
apps/dsa.c
29
apps/dsa.c
@@ -68,7 +68,6 @@
|
|||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG dsa_main
|
#define PROG dsa_main
|
||||||
@@ -88,7 +87,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int ret=1;
|
int ret=1;
|
||||||
DSA *dsa=NULL;
|
DSA *dsa=NULL;
|
||||||
int i,badops=0;
|
int i,badops=0;
|
||||||
@@ -96,7 +94,7 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO *in=NULL,*out=NULL;
|
BIO *in=NULL,*out=NULL;
|
||||||
int informat,outformat,text=0,noout=0;
|
int informat,outformat,text=0,noout=0;
|
||||||
int pubin = 0, pubout = 0;
|
int pubin = 0, pubout = 0;
|
||||||
char *infile,*outfile,*prog,*engine;
|
char *infile,*outfile,*prog;
|
||||||
char *passargin = NULL, *passargout = NULL;
|
char *passargin = NULL, *passargout = NULL;
|
||||||
char *passin = NULL, *passout = NULL;
|
char *passin = NULL, *passout = NULL;
|
||||||
int modulus=0;
|
int modulus=0;
|
||||||
@@ -107,7 +105,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if ((bio_err=BIO_new(BIO_s_file())) != NULL)
|
if ((bio_err=BIO_new(BIO_s_file())) != NULL)
|
||||||
BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
|
BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
|
||||||
|
|
||||||
engine=NULL;
|
|
||||||
infile=NULL;
|
infile=NULL;
|
||||||
outfile=NULL;
|
outfile=NULL;
|
||||||
informat=FORMAT_PEM;
|
informat=FORMAT_PEM;
|
||||||
@@ -148,11 +145,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
passargout= *(++argv);
|
passargout= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-noout") == 0)
|
else if (strcmp(*argv,"-noout") == 0)
|
||||||
noout=1;
|
noout=1;
|
||||||
else if (strcmp(*argv,"-text") == 0)
|
else if (strcmp(*argv,"-text") == 0)
|
||||||
@@ -184,7 +176,6 @@ bad:
|
|||||||
BIO_printf(bio_err," -passin arg input file pass phrase source\n");
|
BIO_printf(bio_err," -passin arg input file pass phrase source\n");
|
||||||
BIO_printf(bio_err," -out arg output file\n");
|
BIO_printf(bio_err," -out arg output file\n");
|
||||||
BIO_printf(bio_err," -passout arg output file pass phrase source\n");
|
BIO_printf(bio_err," -passout arg output file pass phrase source\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err," -des encrypt PEM output with cbc des\n");
|
BIO_printf(bio_err," -des encrypt PEM output with cbc des\n");
|
||||||
BIO_printf(bio_err," -des3 encrypt PEM output with ede cbc des using 168 bit key\n");
|
BIO_printf(bio_err," -des3 encrypt PEM output with ede cbc des using 168 bit key\n");
|
||||||
#ifndef NO_IDEA
|
#ifndef NO_IDEA
|
||||||
@@ -198,24 +189,6 @@ bad:
|
|||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
|
if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
|
||||||
BIO_printf(bio_err, "Error getting passwords\n");
|
BIO_printf(bio_err, "Error getting passwords\n");
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
@@ -69,7 +69,6 @@
|
|||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG dsaparam_main
|
#define PROG dsaparam_main
|
||||||
@@ -91,7 +90,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
DSA *dsa=NULL;
|
DSA *dsa=NULL;
|
||||||
int i,badops=0,text=0;
|
int i,badops=0,text=0;
|
||||||
BIO *in=NULL,*out=NULL;
|
BIO *in=NULL,*out=NULL;
|
||||||
@@ -99,7 +97,6 @@ int MAIN(int argc, char **argv)
|
|||||||
char *infile,*outfile,*prog,*inrand=NULL;
|
char *infile,*outfile,*prog,*inrand=NULL;
|
||||||
int numbits= -1,num,genkey=0;
|
int numbits= -1,num,genkey=0;
|
||||||
int need_rand=0;
|
int need_rand=0;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -137,11 +134,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
outfile= *(++argv);
|
outfile= *(++argv);
|
||||||
}
|
}
|
||||||
else if(strcmp(*argv, "-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine = *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-text") == 0)
|
else if (strcmp(*argv,"-text") == 0)
|
||||||
text=1;
|
text=1;
|
||||||
else if (strcmp(*argv,"-C") == 0)
|
else if (strcmp(*argv,"-C") == 0)
|
||||||
@@ -188,7 +180,6 @@ bad:
|
|||||||
BIO_printf(bio_err," -C Output C code\n");
|
BIO_printf(bio_err," -C Output C code\n");
|
||||||
BIO_printf(bio_err," -noout no output\n");
|
BIO_printf(bio_err," -noout no output\n");
|
||||||
BIO_printf(bio_err," -rand files to use for random number input\n");
|
BIO_printf(bio_err," -rand files to use for random number input\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err," number number of bits to use for generating private key\n");
|
BIO_printf(bio_err," number number of bits to use for generating private key\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
@@ -232,24 +223,6 @@ bad:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (need_rand)
|
if (need_rand)
|
||||||
{
|
{
|
||||||
app_RAND_load_file(NULL, bio_err, (inrand != NULL));
|
app_RAND_load_file(NULL, bio_err, (inrand != NULL));
|
||||||
@@ -338,7 +311,7 @@ bad:
|
|||||||
printf("\tdsa->g=BN_bin2bn(dsa%d_g,sizeof(dsa%d_g),NULL);\n",
|
printf("\tdsa->g=BN_bin2bn(dsa%d_g,sizeof(dsa%d_g),NULL);\n",
|
||||||
bits_p,bits_p);
|
bits_p,bits_p);
|
||||||
printf("\tif ((dsa->p == NULL) || (dsa->q == NULL) || (dsa->g == NULL))\n");
|
printf("\tif ((dsa->p == NULL) || (dsa->q == NULL) || (dsa->g == NULL))\n");
|
||||||
printf("\t\treturn(NULL);\n");
|
printf("\t\t{ DSA_free(dsa); return(NULL); }\n");
|
||||||
printf("\treturn(dsa);\n\t}\n");
|
printf("\treturn(dsa);\n\t}\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
44
apps/enc.c
44
apps/enc.c
@@ -70,7 +70,6 @@
|
|||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
#endif
|
#endif
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
int set_hex(char *in,unsigned char *out,int size);
|
int set_hex(char *in,unsigned char *out,int size);
|
||||||
#undef SIZE
|
#undef SIZE
|
||||||
@@ -85,7 +84,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
static const char magic[]="Salted__";
|
static const char magic[]="Salted__";
|
||||||
char mbuf[8]; /* should be 1 smaller than magic */
|
char mbuf[8]; /* should be 1 smaller than magic */
|
||||||
char *strbuf=NULL;
|
char *strbuf=NULL;
|
||||||
@@ -101,9 +99,8 @@ int MAIN(int argc, char **argv)
|
|||||||
const EVP_CIPHER *cipher=NULL,*c;
|
const EVP_CIPHER *cipher=NULL,*c;
|
||||||
char *inf=NULL,*outf=NULL;
|
char *inf=NULL,*outf=NULL;
|
||||||
BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL;
|
BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL;
|
||||||
#define PROG_NAME_SIZE 16
|
#define PROG_NAME_SIZE 39
|
||||||
char pname[PROG_NAME_SIZE];
|
char pname[PROG_NAME_SIZE+1];
|
||||||
char *engine = NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -144,11 +141,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
passarg= *(++argv);
|
passarg= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-d") == 0)
|
else if (strcmp(*argv,"-d") == 0)
|
||||||
enc=0;
|
enc=0;
|
||||||
else if (strcmp(*argv,"-p") == 0)
|
else if (strcmp(*argv,"-p") == 0)
|
||||||
@@ -249,7 +241,6 @@ bad:
|
|||||||
BIO_printf(bio_err,"%-14s key/iv in hex is the next argument\n","-K/-iv");
|
BIO_printf(bio_err,"%-14s key/iv in hex is the next argument\n","-K/-iv");
|
||||||
BIO_printf(bio_err,"%-14s print the iv/key (then exit if -P)\n","-[pP]");
|
BIO_printf(bio_err,"%-14s print the iv/key (then exit if -P)\n","-[pP]");
|
||||||
BIO_printf(bio_err,"%-14s buffer size\n","-bufsize <n>");
|
BIO_printf(bio_err,"%-14s buffer size\n","-bufsize <n>");
|
||||||
BIO_printf(bio_err,"%-14s use engine e, possibly a hardware device.\n","-engine e");
|
|
||||||
|
|
||||||
BIO_printf(bio_err,"Cipher Types\n");
|
BIO_printf(bio_err,"Cipher Types\n");
|
||||||
BIO_printf(bio_err,"des : 56 bit key DES encryption\n");
|
BIO_printf(bio_err,"des : 56 bit key DES encryption\n");
|
||||||
@@ -317,35 +308,12 @@ bad:
|
|||||||
LN_rc5_cfb64, LN_rc5_ofb64);
|
LN_rc5_cfb64, LN_rc5_ofb64);
|
||||||
BIO_printf(bio_err," -%-4s (%s)\n","rc5", LN_rc5_cbc);
|
BIO_printf(bio_err," -%-4s (%s)\n","rc5", LN_rc5_cbc);
|
||||||
#endif
|
#endif
|
||||||
#ifndef NO_RIJNDAEL
|
|
||||||
BIO_printf(bio_err," -%-12s -%-12s -%-12s -%-12s\n",
|
|
||||||
LN_rijndael_ecb_k128_b128,"","","","");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bufsize != NULL)
|
if (bufsize != NULL)
|
||||||
{
|
{
|
||||||
unsigned long n;
|
unsigned long n;
|
||||||
@@ -547,6 +515,14 @@ bad:
|
|||||||
BIO_printf(bio_err,"invalid hex iv value\n");
|
BIO_printf(bio_err,"invalid hex iv value\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
if ((hiv == NULL) && (str == NULL))
|
||||||
|
{
|
||||||
|
/* No IV was explicitly set and no IV was generated
|
||||||
|
* during EVP_BytesToKey. Hence the IV is undefined,
|
||||||
|
* making correct decryption impossible. */
|
||||||
|
BIO_printf(bio_err, "iv undefined\n");
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
if ((hkey != NULL) && !set_hex(hkey,key,24))
|
if ((hkey != NULL) && !set_hex(hkey,key,24))
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"invalid hex key value\n");
|
BIO_printf(bio_err,"invalid hex key value\n");
|
||||||
|
|||||||
243
apps/engine.c
243
apps/engine.c
@@ -1,243 +0,0 @@
|
|||||||
/* apps/engine.c -*- mode: C; c-file-style: "eay" -*- */
|
|
||||||
/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL
|
|
||||||
* project 2000.
|
|
||||||
*/
|
|
||||||
/* ====================================================================
|
|
||||||
* Copyright (c) 2000 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
|
|
||||||
* licensing@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).
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#ifdef NO_STDIO
|
|
||||||
#define APPS_WIN16
|
|
||||||
#endif
|
|
||||||
#include "apps.h"
|
|
||||||
#include <openssl/err.h>
|
|
||||||
#include <openssl/engine.h>
|
|
||||||
#include <openssl/ssl.h>
|
|
||||||
|
|
||||||
#undef PROG
|
|
||||||
#define PROG engine_main
|
|
||||||
|
|
||||||
static char *engine_usage[]={
|
|
||||||
"usage: engine opts [engine ...]\n",
|
|
||||||
" -v - verbose mode, a textual listing of the engines in OpenSSL\n",
|
|
||||||
" -c - for each engine, also list the capabilities\n",
|
|
||||||
" -t - for each engine, check that they are really available\n",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
static void identity(void *ptr)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int append_buf(char **buf, char *s, int *size, int step)
|
|
||||||
{
|
|
||||||
int l = strlen(s);
|
|
||||||
|
|
||||||
if (*buf == NULL)
|
|
||||||
{
|
|
||||||
*size = step;
|
|
||||||
*buf = OPENSSL_malloc(*size);
|
|
||||||
if (*buf == NULL)
|
|
||||||
return 0;
|
|
||||||
**buf = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (**buf != '\0')
|
|
||||||
l += 2; /* ", " */
|
|
||||||
|
|
||||||
if (strlen(*buf) + strlen(s) >= *size)
|
|
||||||
{
|
|
||||||
*size += step;
|
|
||||||
*buf = OPENSSL_realloc(*buf, *size);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (*buf == NULL)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (**buf != '\0')
|
|
||||||
strcat(*buf, ", ");
|
|
||||||
strcat(*buf, s);
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int MAIN(int, char **);
|
|
||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
|
||||||
{
|
|
||||||
int ret=1,i;
|
|
||||||
char **pp;
|
|
||||||
int verbose=0, list_cap=0, test_avail=0;
|
|
||||||
ENGINE *e;
|
|
||||||
STACK *engines = sk_new_null();
|
|
||||||
int badops=0;
|
|
||||||
BIO *bio_out=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
|
||||||
SSL_load_error_strings();
|
|
||||||
|
|
||||||
if (bio_err == NULL)
|
|
||||||
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
|
|
||||||
bio_out=BIO_new_fp(stdout,BIO_NOCLOSE);
|
|
||||||
#ifdef VMS
|
|
||||||
{
|
|
||||||
BIO *tmpbio = BIO_new(BIO_f_linebuffer());
|
|
||||||
bio_out = BIO_push(tmpbio, bio_out);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
argc--;
|
|
||||||
argv++;
|
|
||||||
while (argc >= 1)
|
|
||||||
{
|
|
||||||
if (strcmp(*argv,"-v") == 0)
|
|
||||||
verbose=1;
|
|
||||||
else if (strcmp(*argv,"-c") == 0)
|
|
||||||
list_cap=1;
|
|
||||||
else if (strcmp(*argv,"-t") == 0)
|
|
||||||
test_avail=1;
|
|
||||||
else if ((strncmp(*argv,"-h",2) == 0) ||
|
|
||||||
(strcmp(*argv,"-?") == 0))
|
|
||||||
{
|
|
||||||
badops=1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
sk_push(engines,*argv);
|
|
||||||
}
|
|
||||||
argc--;
|
|
||||||
argv++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (badops)
|
|
||||||
{
|
|
||||||
for (pp=engine_usage; (*pp != NULL); pp++)
|
|
||||||
BIO_printf(bio_err,"%s",*pp);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sk_num(engines) == 0)
|
|
||||||
{
|
|
||||||
for(e = ENGINE_get_first(); e != NULL; e = ENGINE_get_next(e))
|
|
||||||
{
|
|
||||||
sk_push(engines,(char *)ENGINE_get_id(e));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i=0; i<sk_num(engines); i++)
|
|
||||||
{
|
|
||||||
const char *id = sk_value(engines,i);
|
|
||||||
if ((e = ENGINE_by_id(id)) != NULL)
|
|
||||||
{
|
|
||||||
const char *name = ENGINE_get_name(e);
|
|
||||||
BIO_printf(bio_out, "%s (%s)", name, id);
|
|
||||||
if (list_cap || test_avail)
|
|
||||||
BIO_printf(bio_out, ":");
|
|
||||||
if (test_avail)
|
|
||||||
{
|
|
||||||
if (ENGINE_init(e))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_out, " available");
|
|
||||||
ENGINE_finish(e);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
BIO_printf(bio_out, " unavailable");
|
|
||||||
ERR_clear_error();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (list_cap)
|
|
||||||
{
|
|
||||||
int cap_size = 256;
|
|
||||||
char *cap_buf = NULL;
|
|
||||||
|
|
||||||
if (ENGINE_get_RSA(e) != NULL
|
|
||||||
&& !append_buf(&cap_buf, "RSA",
|
|
||||||
&cap_size, 256))
|
|
||||||
goto end;
|
|
||||||
if (ENGINE_get_DSA(e) != NULL
|
|
||||||
&& !append_buf(&cap_buf, "DSA",
|
|
||||||
&cap_size, 256))
|
|
||||||
goto end;
|
|
||||||
if (ENGINE_get_DH(e) != NULL
|
|
||||||
&& !append_buf(&cap_buf, "DH",
|
|
||||||
&cap_size, 256))
|
|
||||||
goto end;
|
|
||||||
if (ENGINE_get_RAND(e) != NULL
|
|
||||||
&& !append_buf(&cap_buf, "RAND",
|
|
||||||
&cap_size, 256))
|
|
||||||
goto end;
|
|
||||||
|
|
||||||
if (*cap_buf != '\0')
|
|
||||||
BIO_printf(bio_out, " [%s]", cap_buf);
|
|
||||||
|
|
||||||
OPENSSL_free(cap_buf);
|
|
||||||
}
|
|
||||||
BIO_printf(bio_out, "\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
}
|
|
||||||
|
|
||||||
ret=0;
|
|
||||||
end:
|
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
sk_pop_free(engines, identity);
|
|
||||||
if (bio_out != NULL) BIO_free_all(bio_out);
|
|
||||||
EXIT(ret);
|
|
||||||
}
|
|
||||||
33
apps/gendh.c
33
apps/gendh.c
@@ -70,7 +70,6 @@
|
|||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#define DEFBITS 512
|
#define DEFBITS 512
|
||||||
#undef PROG
|
#undef PROG
|
||||||
@@ -82,13 +81,11 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
DH *dh=NULL;
|
DH *dh=NULL;
|
||||||
int ret=1,num=DEFBITS;
|
int ret=1,num=DEFBITS;
|
||||||
int g=2;
|
int g=2;
|
||||||
char *outfile=NULL;
|
char *outfile=NULL;
|
||||||
char *inrand=NULL;
|
char *inrand=NULL;
|
||||||
char *engine=NULL;
|
|
||||||
BIO *out=NULL;
|
BIO *out=NULL;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
@@ -113,11 +110,6 @@ int MAIN(int argc, char **argv)
|
|||||||
g=3; */
|
g=3; */
|
||||||
else if (strcmp(*argv,"-5") == 0)
|
else if (strcmp(*argv,"-5") == 0)
|
||||||
g=5;
|
g=5;
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-rand") == 0)
|
else if (strcmp(*argv,"-rand") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
@@ -133,34 +125,15 @@ int MAIN(int argc, char **argv)
|
|||||||
bad:
|
bad:
|
||||||
BIO_printf(bio_err,"usage: gendh [args] [numbits]\n");
|
BIO_printf(bio_err,"usage: gendh [args] [numbits]\n");
|
||||||
BIO_printf(bio_err," -out file - output the key to 'file\n");
|
BIO_printf(bio_err," -out file - output the key to 'file\n");
|
||||||
BIO_printf(bio_err," -2 - use 2 as the generator value\n");
|
BIO_printf(bio_err," -2 use 2 as the generator value\n");
|
||||||
/* BIO_printf(bio_err," -3 - use 3 as the generator value\n"); */
|
/* BIO_printf(bio_err," -3 use 3 as the generator value\n"); */
|
||||||
BIO_printf(bio_err," -5 - use 5 as the generator value\n");
|
BIO_printf(bio_err," -5 use 5 as the generator value\n");
|
||||||
BIO_printf(bio_err," -engine e - use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
BIO_printf(bio_err," - load the file (or the files in the directory) into\n");
|
BIO_printf(bio_err," - load the file (or the files in the directory) into\n");
|
||||||
BIO_printf(bio_err," the random number generator\n");
|
BIO_printf(bio_err," the random number generator\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
out=BIO_new(BIO_s_file());
|
out=BIO_new(BIO_s_file());
|
||||||
if (out == NULL)
|
if (out == NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,7 +68,6 @@
|
|||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#define DEFBITS 512
|
#define DEFBITS 512
|
||||||
#undef PROG
|
#undef PROG
|
||||||
@@ -78,7 +77,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
DSA *dsa=NULL;
|
DSA *dsa=NULL;
|
||||||
int ret=1;
|
int ret=1;
|
||||||
char *outfile=NULL;
|
char *outfile=NULL;
|
||||||
@@ -86,7 +84,6 @@ int MAIN(int argc, char **argv)
|
|||||||
char *passargout = NULL, *passout = NULL;
|
char *passargout = NULL, *passout = NULL;
|
||||||
BIO *out=NULL,*in=NULL;
|
BIO *out=NULL,*in=NULL;
|
||||||
EVP_CIPHER *enc=NULL;
|
EVP_CIPHER *enc=NULL;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -109,11 +106,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
passargout= *(++argv);
|
passargout= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-rand") == 0)
|
else if (strcmp(*argv,"-rand") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
@@ -153,7 +145,6 @@ bad:
|
|||||||
#ifndef NO_IDEA
|
#ifndef NO_IDEA
|
||||||
BIO_printf(bio_err," -idea - encrypt the generated key with IDEA in cbc mode\n");
|
BIO_printf(bio_err," -idea - encrypt the generated key with IDEA in cbc mode\n");
|
||||||
#endif
|
#endif
|
||||||
BIO_printf(bio_err," -engine e - use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
BIO_printf(bio_err," - load the file (or the files in the directory) into\n");
|
BIO_printf(bio_err," - load the file (or the files in the directory) into\n");
|
||||||
BIO_printf(bio_err," the random number generator\n");
|
BIO_printf(bio_err," the random number generator\n");
|
||||||
@@ -162,24 +153,6 @@ bad:
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!app_passwd(bio_err, NULL, passargout, NULL, &passout)) {
|
if(!app_passwd(bio_err, NULL, passargout, NULL, &passout)) {
|
||||||
BIO_printf(bio_err, "Error getting password\n");
|
BIO_printf(bio_err, "Error getting password\n");
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
@@ -69,7 +69,6 @@
|
|||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#define DEFBITS 512
|
#define DEFBITS 512
|
||||||
#undef PROG
|
#undef PROG
|
||||||
@@ -81,7 +80,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int ret=1;
|
int ret=1;
|
||||||
RSA *rsa=NULL;
|
RSA *rsa=NULL;
|
||||||
int i,num=DEFBITS;
|
int i,num=DEFBITS;
|
||||||
@@ -90,7 +88,6 @@ int MAIN(int argc, char **argv)
|
|||||||
unsigned long f4=RSA_F4;
|
unsigned long f4=RSA_F4;
|
||||||
char *outfile=NULL;
|
char *outfile=NULL;
|
||||||
char *passargout = NULL, *passout = NULL;
|
char *passargout = NULL, *passout = NULL;
|
||||||
char *engine=NULL;
|
|
||||||
char *inrand=NULL;
|
char *inrand=NULL;
|
||||||
BIO *out=NULL;
|
BIO *out=NULL;
|
||||||
|
|
||||||
@@ -119,11 +116,6 @@ int MAIN(int argc, char **argv)
|
|||||||
f4=3;
|
f4=3;
|
||||||
else if (strcmp(*argv,"-F4") == 0 || strcmp(*argv,"-f4") == 0)
|
else if (strcmp(*argv,"-F4") == 0 || strcmp(*argv,"-f4") == 0)
|
||||||
f4=RSA_F4;
|
f4=RSA_F4;
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-rand") == 0)
|
else if (strcmp(*argv,"-rand") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
@@ -162,7 +154,6 @@ bad:
|
|||||||
BIO_printf(bio_err," -passout arg output file pass phrase source\n");
|
BIO_printf(bio_err," -passout arg output file pass phrase source\n");
|
||||||
BIO_printf(bio_err," -f4 use F4 (0x10001) for the E value\n");
|
BIO_printf(bio_err," -f4 use F4 (0x10001) for the E value\n");
|
||||||
BIO_printf(bio_err," -3 use 3 for the E value\n");
|
BIO_printf(bio_err," -3 use 3 for the E value\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
BIO_printf(bio_err," load the file (or the files in the directory) into\n");
|
BIO_printf(bio_err," load the file (or the files in the directory) into\n");
|
||||||
BIO_printf(bio_err," the random number generator\n");
|
BIO_printf(bio_err," the random number generator\n");
|
||||||
@@ -176,24 +167,6 @@ bad:
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (outfile == NULL)
|
if (outfile == NULL)
|
||||||
{
|
{
|
||||||
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
||||||
@@ -213,8 +186,7 @@ bad:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!app_RAND_load_file(NULL, bio_err, 1) && inrand == NULL
|
if (!app_RAND_load_file(NULL, bio_err, 1) && inrand == NULL)
|
||||||
&& !RAND_status())
|
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"warning, not much extra random data, consider using the -rand option\n");
|
BIO_printf(bio_err,"warning, not much extra random data, consider using the -rand option\n");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1133,6 +1133,7 @@ $!
|
|||||||
$! Save directory information
|
$! Save directory information
|
||||||
$!
|
$!
|
||||||
$ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;"
|
$ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;"
|
||||||
|
$ __HERE = F$EDIT(__HERE,"UPCASE")
|
||||||
$ __TOP = __HERE - "APPS]"
|
$ __TOP = __HERE - "APPS]"
|
||||||
$ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
|
$ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
|
||||||
$!
|
$!
|
||||||
|
|||||||
@@ -88,8 +88,8 @@ BIO *bio_err=NULL;
|
|||||||
int main(int Argc, char *Argv[])
|
int main(int Argc, char *Argv[])
|
||||||
{
|
{
|
||||||
ARGS arg;
|
ARGS arg;
|
||||||
#define PROG_NAME_SIZE 16
|
#define PROG_NAME_SIZE 39
|
||||||
char pname[PROG_NAME_SIZE];
|
char pname[PROG_NAME_SIZE+1];
|
||||||
FUNCTION f,*fp;
|
FUNCTION f,*fp;
|
||||||
MS_STATIC char *prompt,buf[1024],config_name[256];
|
MS_STATIC char *prompt,buf[1024],config_name[256];
|
||||||
int n,i,ret=0;
|
int n,i,ret=0;
|
||||||
@@ -112,7 +112,6 @@ int main(int Argc, char *Argv[])
|
|||||||
BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
|
BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
|
||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
ENGINE_load_builtin_engines();
|
|
||||||
|
|
||||||
/* Lets load up our environment a little */
|
/* Lets load up our environment a little */
|
||||||
p=getenv("OPENSSL_CONF");
|
p=getenv("OPENSSL_CONF");
|
||||||
|
|||||||
@@ -272,6 +272,7 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
while (!done);
|
while (!done);
|
||||||
}
|
}
|
||||||
|
ret = 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
@@ -315,7 +316,7 @@ static char *md5crypt(const char *passwd, const char *magic, const char *salt)
|
|||||||
strncat(out_buf, "$", 1);
|
strncat(out_buf, "$", 1);
|
||||||
strncat(out_buf, salt, 8);
|
strncat(out_buf, salt, 8);
|
||||||
assert(strlen(out_buf) <= 6 + 8); /* "$apr1$..salt.." */
|
assert(strlen(out_buf) <= 6 + 8); /* "$apr1$..salt.." */
|
||||||
salt_out = out_buf + 6;
|
salt_out = out_buf + 2 + strlen(magic);
|
||||||
salt_len = strlen(salt_out);
|
salt_len = strlen(salt_out);
|
||||||
assert(salt_len <= 8);
|
assert(salt_len <= 8);
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,6 @@
|
|||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/pkcs12.h>
|
#include <openssl/pkcs12.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#define PROG pkcs12_main
|
#define PROG pkcs12_main
|
||||||
|
|
||||||
@@ -93,7 +92,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
char *infile=NULL, *outfile=NULL, *keyname = NULL;
|
char *infile=NULL, *outfile=NULL, *keyname = NULL;
|
||||||
char *certfile=NULL;
|
char *certfile=NULL;
|
||||||
BIO *in=NULL, *out = NULL, *inkey = NULL, *certsin = NULL;
|
BIO *in=NULL, *out = NULL, *inkey = NULL, *certsin = NULL;
|
||||||
@@ -120,7 +118,6 @@ int MAIN(int argc, char **argv)
|
|||||||
char *passin = NULL, *passout = NULL;
|
char *passin = NULL, *passout = NULL;
|
||||||
char *inrand = NULL;
|
char *inrand = NULL;
|
||||||
char *CApath = NULL, *CAfile = NULL;
|
char *CApath = NULL, *CAfile = NULL;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -239,11 +236,6 @@ int MAIN(int argc, char **argv)
|
|||||||
args++;
|
args++;
|
||||||
CAfile = *args;
|
CAfile = *args;
|
||||||
} else badarg = 1;
|
} else badarg = 1;
|
||||||
} else if (!strcmp(*args,"-engine")) {
|
|
||||||
if (args[1]) {
|
|
||||||
args++;
|
|
||||||
engine = *args;
|
|
||||||
} else badarg = 1;
|
|
||||||
} else badarg = 1;
|
} else badarg = 1;
|
||||||
|
|
||||||
} else badarg = 1;
|
} else badarg = 1;
|
||||||
@@ -287,27 +279,12 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO_printf (bio_err, "-password p set import/export password source\n");
|
BIO_printf (bio_err, "-password p set import/export password source\n");
|
||||||
BIO_printf (bio_err, "-passin p input file pass phrase source\n");
|
BIO_printf (bio_err, "-passin p input file pass phrase source\n");
|
||||||
BIO_printf (bio_err, "-passout p output file pass phrase source\n");
|
BIO_printf (bio_err, "-passout p output file pass phrase source\n");
|
||||||
BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
|
BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
|
||||||
BIO_printf(bio_err, " the random number generator\n");
|
BIO_printf(bio_err, " the random number generator\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL) {
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL) {
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n", engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(passarg) {
|
if(passarg) {
|
||||||
if(export_cert) passargout = passarg;
|
if(export_cert) passargout = passarg;
|
||||||
else passargin = passarg;
|
else passargin = passarg;
|
||||||
|
|||||||
27
apps/pkcs7.c
27
apps/pkcs7.c
@@ -67,7 +67,6 @@
|
|||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pkcs7.h>
|
#include <openssl/pkcs7.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG pkcs7_main
|
#define PROG pkcs7_main
|
||||||
@@ -83,7 +82,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
PKCS7 *p7=NULL;
|
PKCS7 *p7=NULL;
|
||||||
int i,badops=0;
|
int i,badops=0;
|
||||||
BIO *in=NULL,*out=NULL;
|
BIO *in=NULL,*out=NULL;
|
||||||
@@ -91,7 +89,6 @@ int MAIN(int argc, char **argv)
|
|||||||
char *infile,*outfile,*prog;
|
char *infile,*outfile,*prog;
|
||||||
int print_certs=0,text=0,noout=0;
|
int print_certs=0,text=0,noout=0;
|
||||||
int ret=0;
|
int ret=0;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -135,11 +132,6 @@ int MAIN(int argc, char **argv)
|
|||||||
text=1;
|
text=1;
|
||||||
else if (strcmp(*argv,"-print_certs") == 0)
|
else if (strcmp(*argv,"-print_certs") == 0)
|
||||||
print_certs=1;
|
print_certs=1;
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
||||||
@@ -162,30 +154,11 @@ bad:
|
|||||||
BIO_printf(bio_err," -print_certs print any certs or crl in the input\n");
|
BIO_printf(bio_err," -print_certs print any certs or crl in the input\n");
|
||||||
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");
|
|
||||||
EXIT(1);
|
EXIT(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
in=BIO_new(BIO_s_file());
|
in=BIO_new(BIO_s_file());
|
||||||
out=BIO_new(BIO_s_file());
|
out=BIO_new(BIO_s_file());
|
||||||
if ((in == NULL) || (out == NULL))
|
if ((in == NULL) || (out == NULL))
|
||||||
|
|||||||
30
apps/pkcs8.c
30
apps/pkcs8.c
@@ -62,7 +62,6 @@
|
|||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/pkcs12.h>
|
#include <openssl/pkcs12.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#include "apps.h"
|
#include "apps.h"
|
||||||
#define PROG pkcs8_main
|
#define PROG pkcs8_main
|
||||||
@@ -71,7 +70,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
char **args, *infile = NULL, *outfile = NULL;
|
char **args, *infile = NULL, *outfile = NULL;
|
||||||
char *passargin = NULL, *passargout = NULL;
|
char *passargin = NULL, *passargout = NULL;
|
||||||
BIO *in = NULL, *out = NULL;
|
BIO *in = NULL, *out = NULL;
|
||||||
@@ -87,13 +85,9 @@ int MAIN(int argc, char **argv)
|
|||||||
EVP_PKEY *pkey;
|
EVP_PKEY *pkey;
|
||||||
char pass[50], *passin = NULL, *passout = NULL, *p8pass = NULL;
|
char pass[50], *passin = NULL, *passout = NULL, *p8pass = NULL;
|
||||||
int badarg = 0;
|
int badarg = 0;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
if (bio_err == NULL) bio_err = BIO_new_fp (stderr, BIO_NOCLOSE);
|
if (bio_err == NULL) bio_err = BIO_new_fp (stderr, BIO_NOCLOSE);
|
||||||
|
|
||||||
informat=FORMAT_PEM;
|
informat=FORMAT_PEM;
|
||||||
outformat=FORMAT_PEM;
|
outformat=FORMAT_PEM;
|
||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
OpenSSL_add_all_algorithms();
|
OpenSSL_add_all_algorithms();
|
||||||
args = argv + 1;
|
args = argv + 1;
|
||||||
@@ -144,11 +138,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (!args[1]) goto bad;
|
if (!args[1]) goto bad;
|
||||||
passargout= *(++args);
|
passargout= *(++args);
|
||||||
}
|
}
|
||||||
else if (strcmp(*args,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (!args[1]) goto bad;
|
|
||||||
engine= *(++args);
|
|
||||||
}
|
|
||||||
else if (!strcmp (*args, "-in")) {
|
else if (!strcmp (*args, "-in")) {
|
||||||
if (args[1]) {
|
if (args[1]) {
|
||||||
args++;
|
args++;
|
||||||
@@ -181,28 +170,9 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO_printf(bio_err, "-nocrypt use or expect unencrypted private key\n");
|
BIO_printf(bio_err, "-nocrypt use or expect unencrypted private key\n");
|
||||||
BIO_printf(bio_err, "-v2 alg use PKCS#5 v2.0 and cipher \"alg\"\n");
|
BIO_printf(bio_err, "-v2 alg use PKCS#5 v2.0 and cipher \"alg\"\n");
|
||||||
BIO_printf(bio_err, "-v1 obj use PKCS#5 v1.5 and cipher \"alg\"\n");
|
BIO_printf(bio_err, "-v1 obj use PKCS#5 v1.5 and cipher \"alg\"\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
return (1);
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
return (1);
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
|
if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
|
||||||
BIO_printf(bio_err, "Error getting passwords\n");
|
BIO_printf(bio_err, "Error getting passwords\n");
|
||||||
return (1);
|
return (1);
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ extern int pkcs8_main(int argc,char *argv[]);
|
|||||||
extern int spkac_main(int argc,char *argv[]);
|
extern int spkac_main(int argc,char *argv[]);
|
||||||
extern int smime_main(int argc,char *argv[]);
|
extern int smime_main(int argc,char *argv[]);
|
||||||
extern int rand_main(int argc,char *argv[]);
|
extern int rand_main(int argc,char *argv[]);
|
||||||
extern int engine_main(int argc,char *argv[]);
|
|
||||||
|
|
||||||
#define FUNC_TYPE_GENERAL 1
|
#define FUNC_TYPE_GENERAL 1
|
||||||
#define FUNC_TYPE_MD 2
|
#define FUNC_TYPE_MD 2
|
||||||
@@ -110,7 +109,6 @@ FUNCTION functions[] = {
|
|||||||
{FUNC_TYPE_GENERAL,"spkac",spkac_main},
|
{FUNC_TYPE_GENERAL,"spkac",spkac_main},
|
||||||
{FUNC_TYPE_GENERAL,"smime",smime_main},
|
{FUNC_TYPE_GENERAL,"smime",smime_main},
|
||||||
{FUNC_TYPE_GENERAL,"rand",rand_main},
|
{FUNC_TYPE_GENERAL,"rand",rand_main},
|
||||||
{FUNC_TYPE_GENERAL,"engine",engine_main},
|
|
||||||
{FUNC_TYPE_MD,"md2",dgst_main},
|
{FUNC_TYPE_MD,"md2",dgst_main},
|
||||||
{FUNC_TYPE_MD,"md4",dgst_main},
|
{FUNC_TYPE_MD,"md4",dgst_main},
|
||||||
{FUNC_TYPE_MD,"md5",dgst_main},
|
{FUNC_TYPE_MD,"md5",dgst_main},
|
||||||
|
|||||||
35
apps/rand.c
35
apps/rand.c
@@ -9,7 +9,6 @@
|
|||||||
#include <openssl/bio.h>
|
#include <openssl/bio.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG rand_main
|
#define PROG rand_main
|
||||||
@@ -24,7 +23,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int i, r, ret = 1;
|
int i, r, ret = 1;
|
||||||
int badopt;
|
int badopt;
|
||||||
char *outfile = NULL;
|
char *outfile = NULL;
|
||||||
@@ -32,7 +30,6 @@ int MAIN(int argc, char **argv)
|
|||||||
int base64 = 0;
|
int base64 = 0;
|
||||||
BIO *out = NULL;
|
BIO *out = NULL;
|
||||||
int num = -1;
|
int num = -1;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -51,13 +48,6 @@ int MAIN(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
badopt = 1;
|
badopt = 1;
|
||||||
}
|
}
|
||||||
if (strcmp(argv[i], "-engine") == 0)
|
|
||||||
{
|
|
||||||
if ((argv[i+1] != NULL) && (engine == NULL))
|
|
||||||
engine = argv[++i];
|
|
||||||
else
|
|
||||||
badopt = 1;
|
|
||||||
}
|
|
||||||
else if (strcmp(argv[i], "-rand") == 0)
|
else if (strcmp(argv[i], "-rand") == 0)
|
||||||
{
|
{
|
||||||
if ((argv[i+1] != NULL) && (inrand == NULL))
|
if ((argv[i+1] != NULL) && (inrand == NULL))
|
||||||
@@ -94,31 +84,12 @@ int MAIN(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
BIO_printf(bio_err, "Usage: rand [options] num\n");
|
BIO_printf(bio_err, "Usage: rand [options] num\n");
|
||||||
BIO_printf(bio_err, "where options are\n");
|
BIO_printf(bio_err, "where options are\n");
|
||||||
BIO_printf(bio_err, "-out file - write to file\n");
|
BIO_printf(bio_err, "-out file - write to file\n");
|
||||||
BIO_printf(bio_err," -engine e - use engine e, possibly a hardware device.\n");
|
BIO_printf(bio_err, "-rand file%cfile%c... - seed PRNG from files\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
BIO_printf(bio_err, "-rand file%cfile%c... - seed PRNG from files\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err, "-base64 - encode output\n");
|
||||||
BIO_printf(bio_err, "-base64 - encode output\n");
|
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
app_RAND_load_file(NULL, bio_err, (inrand != NULL));
|
app_RAND_load_file(NULL, bio_err, (inrand != NULL));
|
||||||
if (inrand != NULL)
|
if (inrand != NULL)
|
||||||
BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
|
BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
|
||||||
|
|||||||
117
apps/req.c
117
apps/req.c
@@ -73,7 +73,6 @@
|
|||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#define SECTION "req"
|
#define SECTION "req"
|
||||||
|
|
||||||
@@ -102,7 +101,7 @@
|
|||||||
* -nodes - no des encryption
|
* -nodes - no des encryption
|
||||||
* -config file - Load configuration file.
|
* -config file - Load configuration file.
|
||||||
* -key file - make a request using key in file (or use it for verification).
|
* -key file - make a request using key in file (or use it for verification).
|
||||||
* -keyform arg - key file format.
|
* -keyform - key file format.
|
||||||
* -rand file(s) - load the file(s) into the PRNG.
|
* -rand file(s) - load the file(s) into the PRNG.
|
||||||
* -newkey - make a key and a request.
|
* -newkey - make a key and a request.
|
||||||
* -modulus - print RSA modulus.
|
* -modulus - print RSA modulus.
|
||||||
@@ -141,11 +140,9 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
DSA *dsa_params=NULL;
|
DSA *dsa_params=NULL;
|
||||||
#endif
|
#endif
|
||||||
unsigned long nmflag = 0;
|
|
||||||
int ex=1,x509=0,days=30;
|
int ex=1,x509=0,days=30;
|
||||||
X509 *x509ss=NULL;
|
X509 *x509ss=NULL;
|
||||||
X509_REQ *req=NULL;
|
X509_REQ *req=NULL;
|
||||||
@@ -153,9 +150,8 @@ int MAIN(int argc, char **argv)
|
|||||||
int i,badops=0,newreq=0,newkey= -1,pkey_type=0;
|
int i,badops=0,newreq=0,newkey= -1,pkey_type=0;
|
||||||
BIO *in=NULL,*out=NULL;
|
BIO *in=NULL,*out=NULL;
|
||||||
int informat,outformat,verify=0,noout=0,text=0,keyform=FORMAT_PEM;
|
int informat,outformat,verify=0,noout=0,text=0,keyform=FORMAT_PEM;
|
||||||
int nodes=0,kludge=0,newhdr=0,subject=0;
|
int nodes=0,kludge=0,newhdr=0;
|
||||||
char *infile,*outfile,*prog,*keyfile=NULL,*template=NULL,*keyout=NULL;
|
char *infile,*outfile,*prog,*keyfile=NULL,*template=NULL,*keyout=NULL;
|
||||||
char *engine=NULL;
|
|
||||||
char *extensions = NULL;
|
char *extensions = NULL;
|
||||||
char *req_exts = NULL;
|
char *req_exts = NULL;
|
||||||
EVP_CIPHER *cipher=NULL;
|
EVP_CIPHER *cipher=NULL;
|
||||||
@@ -199,11 +195,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
outformat=str2fmt(*(++argv));
|
outformat=str2fmt(*(++argv));
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-key") == 0)
|
else if (strcmp(*argv,"-key") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
@@ -292,7 +283,7 @@ int MAIN(int argc, char **argv)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
dtmp=X509_get_pubkey(xtmp);
|
if ((dtmp=X509_get_pubkey(xtmp)) == NULL) goto end;
|
||||||
if (dtmp->type == EVP_PKEY_DSA)
|
if (dtmp->type == EVP_PKEY_DSA)
|
||||||
dsa_params=DSAparams_dup(dtmp->pkey.dsa);
|
dsa_params=DSAparams_dup(dtmp->pkey.dsa);
|
||||||
EVP_PKEY_free(dtmp);
|
EVP_PKEY_free(dtmp);
|
||||||
@@ -331,13 +322,6 @@ int MAIN(int argc, char **argv)
|
|||||||
nodes=1;
|
nodes=1;
|
||||||
else if (strcmp(*argv,"-noout") == 0)
|
else if (strcmp(*argv,"-noout") == 0)
|
||||||
noout=1;
|
noout=1;
|
||||||
else if (strcmp(*argv,"-nameopt") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
if (!set_name_ex(&nmflag, *(++argv))) goto bad;
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-subject") == 0)
|
|
||||||
subject=1;
|
|
||||||
else if (strcmp(*argv,"-text") == 0)
|
else if (strcmp(*argv,"-text") == 0)
|
||||||
text=1;
|
text=1;
|
||||||
else if (strcmp(*argv,"-x509") == 0)
|
else if (strcmp(*argv,"-x509") == 0)
|
||||||
@@ -391,7 +375,6 @@ bad:
|
|||||||
BIO_printf(bio_err," -verify verify signature on REQ\n");
|
BIO_printf(bio_err," -verify verify signature on REQ\n");
|
||||||
BIO_printf(bio_err," -modulus RSA modulus\n");
|
BIO_printf(bio_err," -modulus RSA modulus\n");
|
||||||
BIO_printf(bio_err," -nodes don't encrypt the output key\n");
|
BIO_printf(bio_err," -nodes don't encrypt the output key\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
BIO_printf(bio_err," -key file use the private key contained in file\n");
|
BIO_printf(bio_err," -key file use the private key contained in file\n");
|
||||||
BIO_printf(bio_err," -keyform arg key file format\n");
|
BIO_printf(bio_err," -keyform arg key file format\n");
|
||||||
BIO_printf(bio_err," -keyout arg file to send the key to\n");
|
BIO_printf(bio_err," -keyout arg file to send the key to\n");
|
||||||
@@ -400,8 +383,7 @@ bad:
|
|||||||
BIO_printf(bio_err," the random number generator\n");
|
BIO_printf(bio_err," the random number generator\n");
|
||||||
BIO_printf(bio_err," -newkey rsa:bits generate a new RSA key of 'bits' in size\n");
|
BIO_printf(bio_err," -newkey rsa:bits generate a new RSA key of 'bits' in size\n");
|
||||||
BIO_printf(bio_err," -newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'\n");
|
BIO_printf(bio_err," -newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'\n");
|
||||||
|
BIO_printf(bio_err," -[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)\n");
|
||||||
BIO_printf(bio_err," -[digest] Digest to sign with (md5, sha1, md2, mdc2)\n");
|
|
||||||
BIO_printf(bio_err," -config file request template file.\n");
|
BIO_printf(bio_err," -config file request template file.\n");
|
||||||
BIO_printf(bio_err," -new new request.\n");
|
BIO_printf(bio_err," -new new request.\n");
|
||||||
BIO_printf(bio_err," -x509 output a x509 structure instead of a cert. req.\n");
|
BIO_printf(bio_err," -x509 output a x509 structure instead of a cert. req.\n");
|
||||||
@@ -539,55 +521,24 @@ bad:
|
|||||||
if ((in == NULL) || (out == NULL))
|
if ((in == NULL) || (out == NULL))
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keyfile != NULL)
|
if (keyfile != NULL)
|
||||||
{
|
{
|
||||||
if (keyform == FORMAT_ENGINE)
|
if (BIO_read_filename(in,keyfile) <= 0)
|
||||||
{
|
{
|
||||||
if (!e)
|
perror(keyfile);
|
||||||
{
|
goto end;
|
||||||
BIO_printf(bio_err,"no engine specified\n");
|
}
|
||||||
goto end;
|
|
||||||
}
|
if (keyform == FORMAT_ASN1)
|
||||||
pkey = ENGINE_load_private_key(e, keyfile, NULL);
|
pkey=d2i_PrivateKey_bio(in,NULL);
|
||||||
|
else if (keyform == FORMAT_PEM)
|
||||||
|
{
|
||||||
|
pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,passin);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (BIO_read_filename(in,keyfile) <= 0)
|
BIO_printf(bio_err,"bad input format specified for X509 request\n");
|
||||||
{
|
goto end;
|
||||||
perror(keyfile);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keyform == FORMAT_ASN1)
|
|
||||||
pkey=d2i_PrivateKey_bio(in,NULL);
|
|
||||||
else if (keyform == FORMAT_PEM)
|
|
||||||
{
|
|
||||||
pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,
|
|
||||||
passin);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"bad input format specified for X509 request\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pkey == NULL)
|
if (pkey == NULL)
|
||||||
@@ -733,16 +684,15 @@ loop:
|
|||||||
|
|
||||||
if (newreq || x509)
|
if (newreq || x509)
|
||||||
{
|
{
|
||||||
#ifndef NO_DSA
|
|
||||||
if (pkey->type == EVP_PKEY_DSA)
|
|
||||||
digest=EVP_dss1();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (pkey == NULL)
|
if (pkey == NULL)
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"you need to specify a private key\n");
|
BIO_printf(bio_err,"you need to specify a private key\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
#ifndef NO_DSA
|
||||||
|
if (pkey->type == EVP_PKEY_DSA)
|
||||||
|
digest=EVP_dss1();
|
||||||
|
#endif
|
||||||
if (req == NULL)
|
if (req == NULL)
|
||||||
{
|
{
|
||||||
req=X509_REQ_new();
|
req=X509_REQ_new();
|
||||||
@@ -768,17 +718,14 @@ loop:
|
|||||||
|
|
||||||
/* Set version to V3 */
|
/* Set version to V3 */
|
||||||
if(!X509_set_version(x509ss, 2)) goto end;
|
if(!X509_set_version(x509ss, 2)) goto end;
|
||||||
ASN1_INTEGER_set(X509_get_serialNumber(x509ss),0L);
|
if (!ASN1_INTEGER_set(X509_get_serialNumber(x509ss),0L)) goto end;
|
||||||
|
|
||||||
X509_set_issuer_name(x509ss,
|
if (!X509_set_issuer_name(x509ss, X509_REQ_get_subject_name(req))) goto end;
|
||||||
X509_REQ_get_subject_name(req));
|
if (!X509_gmtime_adj(X509_get_notBefore(x509ss),0)) goto end;
|
||||||
X509_gmtime_adj(X509_get_notBefore(x509ss),0);
|
if (!X509_gmtime_adj(X509_get_notAfter(x509ss), (long)60*60*24*days)) goto end;
|
||||||
X509_gmtime_adj(X509_get_notAfter(x509ss),
|
if (!X509_set_subject_name(x509ss, X509_REQ_get_subject_name(req))) goto end;
|
||||||
(long)60*60*24*days);
|
|
||||||
X509_set_subject_name(x509ss,
|
|
||||||
X509_REQ_get_subject_name(req));
|
|
||||||
tmppkey = X509_REQ_get_pubkey(req);
|
tmppkey = X509_REQ_get_pubkey(req);
|
||||||
X509_set_pubkey(x509ss,tmppkey);
|
if (!tmppkey || !X509_set_pubkey(x509ss,tmppkey)) goto end;
|
||||||
EVP_PKEY_free(tmppkey);
|
EVP_PKEY_free(tmppkey);
|
||||||
|
|
||||||
/* Set up V3 context struct */
|
/* Set up V3 context struct */
|
||||||
@@ -851,7 +798,7 @@ loop:
|
|||||||
BIO_printf(bio_err,"verify OK\n");
|
BIO_printf(bio_err,"verify OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noout && !text && !modulus && !subject)
|
if (noout && !text && !modulus)
|
||||||
{
|
{
|
||||||
ex=0;
|
ex=0;
|
||||||
goto end;
|
goto end;
|
||||||
@@ -888,14 +835,6 @@ loop:
|
|||||||
X509_REQ_print(out,req);
|
X509_REQ_print(out,req);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(subject)
|
|
||||||
{
|
|
||||||
if(x509)
|
|
||||||
print_name(out, "subject=", X509_get_subject_name(x509ss), nmflag);
|
|
||||||
else
|
|
||||||
print_name(out, "subject=", X509_REQ_get_subject_name(req), nmflag);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (modulus)
|
if (modulus)
|
||||||
{
|
{
|
||||||
EVP_PKEY *pubkey;
|
EVP_PKEY *pubkey;
|
||||||
@@ -1017,7 +956,7 @@ static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, int attribs)
|
|||||||
else i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs);
|
else i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs);
|
||||||
if(!i) goto err;
|
if(!i) goto err;
|
||||||
|
|
||||||
X509_REQ_set_pubkey(req,pkey);
|
if (!X509_REQ_set_pubkey(req,pkey)) goto err;
|
||||||
|
|
||||||
ret=1;
|
ret=1;
|
||||||
err:
|
err:
|
||||||
|
|||||||
41
apps/rsa.c
41
apps/rsa.c
@@ -68,7 +68,6 @@
|
|||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG rsa_main
|
#define PROG rsa_main
|
||||||
@@ -91,7 +90,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int ret=1;
|
int ret=1;
|
||||||
RSA *rsa=NULL;
|
RSA *rsa=NULL;
|
||||||
int i,badops=0, sgckey=0;
|
int i,badops=0, sgckey=0;
|
||||||
@@ -102,7 +100,6 @@ int MAIN(int argc, char **argv)
|
|||||||
char *infile,*outfile,*prog;
|
char *infile,*outfile,*prog;
|
||||||
char *passargin = NULL, *passargout = NULL;
|
char *passargin = NULL, *passargout = NULL;
|
||||||
char *passin = NULL, *passout = NULL;
|
char *passin = NULL, *passout = NULL;
|
||||||
char *engine=NULL;
|
|
||||||
int modulus=0;
|
int modulus=0;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
@@ -151,11 +148,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
passargout= *(++argv);
|
passargout= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-sgckey") == 0)
|
else if (strcmp(*argv,"-sgckey") == 0)
|
||||||
sgckey=1;
|
sgckey=1;
|
||||||
else if (strcmp(*argv,"-pubin") == 0)
|
else if (strcmp(*argv,"-pubin") == 0)
|
||||||
@@ -203,30 +195,11 @@ bad:
|
|||||||
BIO_printf(bio_err," -check verify key consistency\n");
|
BIO_printf(bio_err," -check verify key consistency\n");
|
||||||
BIO_printf(bio_err," -pubin expect a public key in input file\n");
|
BIO_printf(bio_err," -pubin expect a public key in input file\n");
|
||||||
BIO_printf(bio_err," -pubout output a public key\n");
|
BIO_printf(bio_err," -pubout output a public key\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
|
if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
|
||||||
BIO_printf(bio_err, "Error getting passwords\n");
|
BIO_printf(bio_err, "Error getting passwords\n");
|
||||||
goto end;
|
goto end;
|
||||||
@@ -265,7 +238,7 @@ bad:
|
|||||||
else if (informat == FORMAT_NETSCAPE)
|
else if (informat == FORMAT_NETSCAPE)
|
||||||
{
|
{
|
||||||
BUF_MEM *buf=NULL;
|
BUF_MEM *buf=NULL;
|
||||||
const unsigned char *p;
|
unsigned char *p;
|
||||||
int size=0;
|
int size=0;
|
||||||
|
|
||||||
buf=BUF_MEM_new();
|
buf=BUF_MEM_new();
|
||||||
@@ -346,14 +319,14 @@ bad:
|
|||||||
BIO_printf(out,"RSA key ok\n");
|
BIO_printf(out,"RSA key ok\n");
|
||||||
else if (r == 0)
|
else if (r == 0)
|
||||||
{
|
{
|
||||||
long err;
|
long e;
|
||||||
|
|
||||||
while ((err = ERR_peek_error()) != 0 &&
|
while ((e = ERR_peek_error()) != 0 &&
|
||||||
ERR_GET_LIB(err) == ERR_LIB_RSA &&
|
ERR_GET_LIB(e) == ERR_LIB_RSA &&
|
||||||
ERR_GET_FUNC(err) == RSA_F_RSA_CHECK_KEY &&
|
ERR_GET_FUNC(e) == RSA_F_RSA_CHECK_KEY &&
|
||||||
ERR_GET_REASON(err) != ERR_R_MALLOC_FAILURE)
|
ERR_GET_REASON(e) != ERR_R_MALLOC_FAILURE)
|
||||||
{
|
{
|
||||||
BIO_printf(out, "RSA key error: %s\n", ERR_reason_error_string(err));
|
BIO_printf(out, "RSA key error: %s\n", ERR_reason_error_string(e));
|
||||||
ERR_get_error(); /* remove e from error stack */
|
ERR_get_error(); /* remove e from error stack */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#define RSA_SIGN 1
|
#define RSA_SIGN 1
|
||||||
#define RSA_VERIFY 2
|
#define RSA_VERIFY 2
|
||||||
@@ -83,10 +82,8 @@ int MAIN(int argc, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
BIO *in = NULL, *out = NULL;
|
BIO *in = NULL, *out = NULL;
|
||||||
char *infile = NULL, *outfile = NULL;
|
char *infile = NULL, *outfile = NULL;
|
||||||
char *engine = NULL;
|
|
||||||
char *keyfile = NULL;
|
char *keyfile = NULL;
|
||||||
char rsa_mode = RSA_VERIFY, key_type = KEY_PRIVKEY;
|
char rsa_mode = RSA_VERIFY, key_type = KEY_PRIVKEY;
|
||||||
int keyform = FORMAT_PEM;
|
int keyform = FORMAT_PEM;
|
||||||
@@ -120,9 +117,6 @@ int MAIN(int argc, char **argv)
|
|||||||
} else if(!strcmp(*argv, "-inkey")) {
|
} else if(!strcmp(*argv, "-inkey")) {
|
||||||
if (--argc < 1) badarg = 1;
|
if (--argc < 1) badarg = 1;
|
||||||
keyfile = *(++argv);
|
keyfile = *(++argv);
|
||||||
} else if(!strcmp(*argv, "-engine")) {
|
|
||||||
if (--argc < 1) badarg = 1;
|
|
||||||
engine = *(++argv);
|
|
||||||
} else if(!strcmp(*argv, "-pubin")) {
|
} else if(!strcmp(*argv, "-pubin")) {
|
||||||
key_type = KEY_PUBKEY;
|
key_type = KEY_PUBKEY;
|
||||||
} else if(!strcmp(*argv, "-certin")) {
|
} else if(!strcmp(*argv, "-certin")) {
|
||||||
@@ -157,34 +151,16 @@ int MAIN(int argc, char **argv)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* FIXME: seed PRNG only if needed */
|
/* FIXME: seed PRNG only if needed */
|
||||||
app_RAND_load_file(NULL, bio_err, 0);
|
app_RAND_load_file(NULL, bio_err, 0);
|
||||||
|
|
||||||
switch(key_type) {
|
switch(key_type) {
|
||||||
case KEY_PRIVKEY:
|
case KEY_PRIVKEY:
|
||||||
pkey = load_key(bio_err, keyfile, keyform, NULL, e);
|
pkey = load_key(bio_err, keyfile, keyform, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case KEY_PUBKEY:
|
case KEY_PUBKEY:
|
||||||
pkey = load_pubkey(bio_err, keyfile, keyform, e);
|
pkey = load_pubkey(bio_err, keyfile, keyform);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case KEY_CERT:
|
case KEY_CERT:
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ typedef unsigned int u_int;
|
|||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
#include <openssl/rand.h>
|
||||||
#include "s_apps.h"
|
#include "s_apps.h"
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
@@ -153,7 +153,7 @@ static void sc_usage(void)
|
|||||||
BIO_printf(bio_err," -bugs - Switch on all SSL implementation bug workarounds\n");
|
BIO_printf(bio_err," -bugs - Switch on all SSL implementation bug workarounds\n");
|
||||||
BIO_printf(bio_err," -cipher - preferred cipher to use, use the 'openssl ciphers'\n");
|
BIO_printf(bio_err," -cipher - preferred cipher to use, use the 'openssl ciphers'\n");
|
||||||
BIO_printf(bio_err," command to see what is available\n");
|
BIO_printf(bio_err," command to see what is available\n");
|
||||||
BIO_printf(bio_err," -engine id - Initialise and use the specified engine\n");
|
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,8 +181,7 @@ int MAIN(int argc, char **argv)
|
|||||||
int prexit = 0;
|
int prexit = 0;
|
||||||
SSL_METHOD *meth=NULL;
|
SSL_METHOD *meth=NULL;
|
||||||
BIO *sbio;
|
BIO *sbio;
|
||||||
char *engine_id=NULL;
|
char *inrand=NULL;
|
||||||
ENGINE *e=NULL;
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
#endif
|
#endif
|
||||||
@@ -320,10 +319,10 @@ int MAIN(int argc, char **argv)
|
|||||||
else if (strcmp(*argv,"-nbio") == 0)
|
else if (strcmp(*argv,"-nbio") == 0)
|
||||||
{ c_nbio=1; }
|
{ c_nbio=1; }
|
||||||
#endif
|
#endif
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
else if (strcmp(*argv,"-rand") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
engine_id = *(++argv);
|
inrand= *(++argv);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -341,7 +340,14 @@ bad:
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
app_RAND_load_file(NULL, bio_err, 0);
|
if (!app_RAND_load_file(NULL, bio_err, 1) && inrand == NULL
|
||||||
|
&& !RAND_status())
|
||||||
|
{
|
||||||
|
BIO_printf(bio_err,"warning, not much extra random data, consider using the -rand option\n");
|
||||||
|
}
|
||||||
|
if (inrand != NULL)
|
||||||
|
BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
|
||||||
|
app_RAND_load_files(inrand));
|
||||||
|
|
||||||
if (bio_c_out == NULL)
|
if (bio_c_out == NULL)
|
||||||
{
|
{
|
||||||
@@ -358,30 +364,6 @@ bad:
|
|||||||
|
|
||||||
OpenSSL_add_ssl_algorithms();
|
OpenSSL_add_ssl_algorithms();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
|
|
||||||
if (engine_id != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine_id)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine\n");
|
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if (c_debug)
|
|
||||||
{
|
|
||||||
ENGINE_ctrl(e, ENGINE_CTRL_SET_LOGSTREAM,
|
|
||||||
0, bio_err, 0);
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine_id);
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx=SSL_CTX_new(meth);
|
ctx=SSL_CTX_new(meth);
|
||||||
if (ctx == NULL)
|
if (ctx == NULL)
|
||||||
{
|
{
|
||||||
@@ -914,5 +896,7 @@ static void print_stuff(BIO *bio, SSL *s, int full)
|
|||||||
BIO_printf(bio,"---\n");
|
BIO_printf(bio,"---\n");
|
||||||
if (peer != NULL)
|
if (peer != NULL)
|
||||||
X509_free(peer);
|
X509_free(peer);
|
||||||
|
/* flush, or debugging output gets mixed with http response */
|
||||||
|
BIO_flush(bio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ typedef unsigned int u_int;
|
|||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include <openssl/engine.h>
|
#include <openssl/rand.h>
|
||||||
#include "s_apps.h"
|
#include "s_apps.h"
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
@@ -177,7 +177,6 @@ static int s_debug=0;
|
|||||||
static int s_quiet=0;
|
static int s_quiet=0;
|
||||||
|
|
||||||
static int hack=0;
|
static int hack=0;
|
||||||
static char *engine_id=NULL;
|
|
||||||
|
|
||||||
#ifdef MONOLITH
|
#ifdef MONOLITH
|
||||||
static void s_server_init(void)
|
static void s_server_init(void)
|
||||||
@@ -200,7 +199,6 @@ static void s_server_init(void)
|
|||||||
s_debug=0;
|
s_debug=0;
|
||||||
s_quiet=0;
|
s_quiet=0;
|
||||||
hack=0;
|
hack=0;
|
||||||
engine_id=NULL;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -245,7 +243,7 @@ static void sv_usage(void)
|
|||||||
BIO_printf(bio_err," -bugs - Turn on SSL bug compatibility\n");
|
BIO_printf(bio_err," -bugs - Turn on SSL bug compatibility\n");
|
||||||
BIO_printf(bio_err," -www - Respond to a 'GET /' with a status page\n");
|
BIO_printf(bio_err," -www - Respond to a 'GET /' with a status page\n");
|
||||||
BIO_printf(bio_err," -WWW - Respond to a 'GET /<path> HTTP/1.0' with file ./<path>\n");
|
BIO_printf(bio_err," -WWW - Respond to a 'GET /<path> HTTP/1.0' with file ./<path>\n");
|
||||||
BIO_printf(bio_err," -engine id - Initialise and use the specified engine\n");
|
BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int local_argc=0;
|
static int local_argc=0;
|
||||||
@@ -415,7 +413,10 @@ int MAIN(int argc, char *argv[])
|
|||||||
int no_tmp_rsa=0,no_dhe=0,nocert=0;
|
int no_tmp_rsa=0,no_dhe=0,nocert=0;
|
||||||
int state=0;
|
int state=0;
|
||||||
SSL_METHOD *meth=NULL;
|
SSL_METHOD *meth=NULL;
|
||||||
ENGINE *e=NULL;
|
char *inrand=NULL;
|
||||||
|
#ifndef NO_DH
|
||||||
|
DH *dh=NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(NO_SSL2) && !defined(NO_SSL3)
|
#if !defined(NO_SSL2) && !defined(NO_SSL3)
|
||||||
meth=SSLv23_server_method();
|
meth=SSLv23_server_method();
|
||||||
@@ -567,10 +568,10 @@ int MAIN(int argc, char *argv[])
|
|||||||
else if (strcmp(*argv,"-tls1") == 0)
|
else if (strcmp(*argv,"-tls1") == 0)
|
||||||
{ meth=TLSv1_server_method(); }
|
{ meth=TLSv1_server_method(); }
|
||||||
#endif
|
#endif
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
else if (strcmp(*argv,"-rand") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
engine_id= *(++argv);
|
inrand= *(++argv);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -588,7 +589,14 @@ bad:
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
app_RAND_load_file(NULL, bio_err, 0);
|
if (!app_RAND_load_file(NULL, bio_err, 1) && inrand == NULL
|
||||||
|
&& !RAND_status())
|
||||||
|
{
|
||||||
|
BIO_printf(bio_err,"warning, not much extra random data, consider using the -rand option\n");
|
||||||
|
}
|
||||||
|
if (inrand != NULL)
|
||||||
|
BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
|
||||||
|
app_RAND_load_files(inrand));
|
||||||
|
|
||||||
if (bio_s_out == NULL)
|
if (bio_s_out == NULL)
|
||||||
{
|
{
|
||||||
@@ -616,29 +624,6 @@ bad:
|
|||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
OpenSSL_add_ssl_algorithms();
|
OpenSSL_add_ssl_algorithms();
|
||||||
|
|
||||||
if (engine_id != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine_id)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine\n");
|
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if (s_debug)
|
|
||||||
{
|
|
||||||
ENGINE_ctrl(e, ENGINE_CTRL_SET_LOGSTREAM,
|
|
||||||
0, bio_err, 0);
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine_id);
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx=SSL_CTX_new(meth);
|
ctx=SSL_CTX_new(meth);
|
||||||
if (ctx == NULL)
|
if (ctx == NULL)
|
||||||
{
|
{
|
||||||
@@ -679,13 +664,7 @@ bad:
|
|||||||
#ifndef NO_DH
|
#ifndef NO_DH
|
||||||
if (!no_dhe)
|
if (!no_dhe)
|
||||||
{
|
{
|
||||||
DH *dh=NULL;
|
dh=load_dh_param(dhfile ? dhfile : s_cert_file);
|
||||||
|
|
||||||
if (dhfile)
|
|
||||||
dh = load_dh_param(dhfile);
|
|
||||||
else if (s_cert_file)
|
|
||||||
dh = load_dh_param(s_cert_file);
|
|
||||||
|
|
||||||
if (dh != NULL)
|
if (dh != NULL)
|
||||||
{
|
{
|
||||||
BIO_printf(bio_s_out,"Setting temp DH parameters\n");
|
BIO_printf(bio_s_out,"Setting temp DH parameters\n");
|
||||||
@@ -712,7 +691,8 @@ bad:
|
|||||||
|
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
#if 1
|
#if 1
|
||||||
SSL_CTX_set_tmp_rsa_callback(ctx,tmp_rsa_cb);
|
if (!no_tmp_rsa)
|
||||||
|
SSL_CTX_set_tmp_rsa_callback(ctx,tmp_rsa_cb);
|
||||||
#else
|
#else
|
||||||
if (!no_tmp_rsa && SSL_CTX_need_tmp_RSA(ctx))
|
if (!no_tmp_rsa && SSL_CTX_need_tmp_RSA(ctx))
|
||||||
{
|
{
|
||||||
@@ -1372,15 +1352,29 @@ static int www_body(char *hostname, int s, unsigned char *context)
|
|||||||
|
|
||||||
/* skip the '/' */
|
/* skip the '/' */
|
||||||
p= &(buf[5]);
|
p= &(buf[5]);
|
||||||
dot=0;
|
|
||||||
|
dot = 1;
|
||||||
for (e=p; *e != '\0'; e++)
|
for (e=p; *e != '\0'; e++)
|
||||||
{
|
{
|
||||||
if (e[0] == ' ') break;
|
if (e[0] == ' ')
|
||||||
if ( (e[0] == '.') &&
|
break;
|
||||||
(strncmp(&(e[-1]),"/../",4) == 0))
|
|
||||||
dot=1;
|
switch (dot)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
dot = (e[0] == '.') ? 2 : 0;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
dot = (e[0] == '.') ? 3 : 0;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
dot = (e[0] == '/') ? -1 : 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (dot == 0)
|
||||||
|
dot = (e[0] == '/') ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
dot = (dot == 3) || (dot == -1); /* filename contains ".." component */
|
||||||
|
|
||||||
if (*e == '\0')
|
if (*e == '\0')
|
||||||
{
|
{
|
||||||
@@ -1404,9 +1398,11 @@ static int www_body(char *hostname, int s, unsigned char *context)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* append if a directory lookup */
|
/* append if a directory lookup */
|
||||||
if (e[-1] == '/')
|
if (e[-1] == '/')
|
||||||
strcat(p,"index.html");
|
strcat(p,"index.html");
|
||||||
|
#endif
|
||||||
|
|
||||||
/* if a directory, do the index thang */
|
/* if a directory, do the index thang */
|
||||||
if (stat(p,&st_buf) < 0)
|
if (stat(p,&st_buf) < 0)
|
||||||
@@ -1418,7 +1414,13 @@ static int www_body(char *hostname, int s, unsigned char *context)
|
|||||||
}
|
}
|
||||||
if (S_ISDIR(st_buf.st_mode))
|
if (S_ISDIR(st_buf.st_mode))
|
||||||
{
|
{
|
||||||
|
#if 0 /* must check buffer size */
|
||||||
strcat(p,"/index.html");
|
strcat(p,"/index.html");
|
||||||
|
#else
|
||||||
|
BIO_puts(io,text);
|
||||||
|
BIO_printf(io,"'%s' is a directory\r\n",p);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((file=BIO_new_file(p,"r")) == NULL)
|
if ((file=BIO_new_file(p,"r")) == NULL)
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
#include "wintext.h"
|
#include "wintext.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
|
#if !defined(MSDOS) && !defined(VXWORKS) && (!defined(VMS) || defined(__DECC)) || defined (_DARWIN)
|
||||||
#define TIMES
|
#define TIMES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
#undef TIMES
|
#undef TIMES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef TIMES
|
#if !defined(TIMES) && !defined(VXWORKS)
|
||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -139,6 +139,8 @@
|
|||||||
#undef BUFSIZZ
|
#undef BUFSIZZ
|
||||||
#define BUFSIZZ 1024*10
|
#define BUFSIZZ 1024*10
|
||||||
|
|
||||||
|
#undef min
|
||||||
|
#undef max
|
||||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
||||||
|
|
||||||
@@ -368,6 +370,22 @@ static double tm_Time_F(int s)
|
|||||||
ret=((double)(tend.tms_utime-tstart.tms_utime))/HZ;
|
ret=((double)(tend.tms_utime-tstart.tms_utime))/HZ;
|
||||||
return((ret == 0.0)?1e-6:ret);
|
return((ret == 0.0)?1e-6:ret);
|
||||||
}
|
}
|
||||||
|
#elif defined(VXWORKS)
|
||||||
|
{
|
||||||
|
static unsigned long tick_start, tick_end;
|
||||||
|
|
||||||
|
if( s == START )
|
||||||
|
{
|
||||||
|
tick_start = tickGet();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tick_end = tickGet();
|
||||||
|
ret = (double)(tick_end - tick_start) / (double)sysClkRateGet();
|
||||||
|
return((ret == 0.0)?1e-6:ret);
|
||||||
|
}
|
||||||
|
}
|
||||||
#else /* !times() */
|
#else /* !times() */
|
||||||
static struct timeb tstart,tend;
|
static struct timeb tstart,tend;
|
||||||
long i;
|
long i;
|
||||||
|
|||||||
36
apps/smime.c
36
apps/smime.c
@@ -64,7 +64,6 @@
|
|||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG smime_main
|
#define PROG smime_main
|
||||||
@@ -82,7 +81,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int operation = 0;
|
int operation = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char **args;
|
char **args;
|
||||||
@@ -105,9 +103,8 @@ int MAIN(int argc, char **argv)
|
|||||||
char *inrand = NULL;
|
char *inrand = NULL;
|
||||||
int need_rand = 0;
|
int need_rand = 0;
|
||||||
int informat = FORMAT_SMIME, outformat = FORMAT_SMIME;
|
int informat = FORMAT_SMIME, outformat = FORMAT_SMIME;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
args = argv + 1;
|
args = argv + 1;
|
||||||
|
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
while (!badarg && *args && *args[0] == '-') {
|
while (!badarg && *args && *args[0] == '-') {
|
||||||
@@ -156,11 +153,6 @@ int MAIN(int argc, char **argv)
|
|||||||
inrand = *args;
|
inrand = *args;
|
||||||
} else badarg = 1;
|
} else badarg = 1;
|
||||||
need_rand = 1;
|
need_rand = 1;
|
||||||
} else if (!strcmp(*args,"-engine")) {
|
|
||||||
if (args[1]) {
|
|
||||||
args++;
|
|
||||||
engine = *args;
|
|
||||||
} else badarg = 1;
|
|
||||||
} else if (!strcmp(*args,"-passin")) {
|
} else if (!strcmp(*args,"-passin")) {
|
||||||
if (args[1]) {
|
if (args[1]) {
|
||||||
args++;
|
args++;
|
||||||
@@ -298,7 +290,7 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO_printf (bio_err, "-text include or delete text MIME headers\n");
|
BIO_printf (bio_err, "-text include or delete text MIME headers\n");
|
||||||
BIO_printf (bio_err, "-CApath dir trusted certificates directory\n");
|
BIO_printf (bio_err, "-CApath dir trusted certificates directory\n");
|
||||||
BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
|
BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
|
||||||
BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n");
|
BIO_printf (bio_err, "-passin arg input file pass phrase source\n");
|
||||||
BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
||||||
BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
|
BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
|
||||||
BIO_printf(bio_err, " the random number generator\n");
|
BIO_printf(bio_err, " the random number generator\n");
|
||||||
@@ -306,24 +298,6 @@ int MAIN(int argc, char **argv)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!app_passwd(bio_err, passargin, NULL, &passin, NULL)) {
|
if(!app_passwd(bio_err, passargin, NULL, &passin, NULL)) {
|
||||||
BIO_printf(bio_err, "Error getting password\n");
|
BIO_printf(bio_err, "Error getting password\n");
|
||||||
goto end;
|
goto end;
|
||||||
@@ -399,7 +373,7 @@ int MAIN(int argc, char **argv)
|
|||||||
} else keyfile = NULL;
|
} else keyfile = NULL;
|
||||||
|
|
||||||
if(keyfile) {
|
if(keyfile) {
|
||||||
if(!(key = load_key(bio_err,keyfile, FORMAT_PEM, passin, NULL))) {
|
if(!(key = load_key(bio_err,keyfile, FORMAT_PEM, passin))) {
|
||||||
BIO_printf(bio_err, "Can't read recipient certificate file %s\n", keyfile);
|
BIO_printf(bio_err, "Can't read recipient certificate file %s\n", keyfile);
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
goto end;
|
goto end;
|
||||||
@@ -480,9 +454,9 @@ int MAIN(int argc, char **argv)
|
|||||||
} else if(operation == SMIME_VERIFY) {
|
} else if(operation == SMIME_VERIFY) {
|
||||||
STACK_OF(X509) *signers;
|
STACK_OF(X509) *signers;
|
||||||
if(PKCS7_verify(p7, other, store, indata, out, flags)) {
|
if(PKCS7_verify(p7, other, store, indata, out, flags)) {
|
||||||
BIO_printf(bio_err, "Verification Successful\n");
|
BIO_printf(bio_err, "Verification successful\n");
|
||||||
} else {
|
} else {
|
||||||
BIO_printf(bio_err, "Verification Failure\n");
|
BIO_printf(bio_err, "Verification failure\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
signers = PKCS7_get0_signers(p7, other, flags);
|
signers = PKCS7_get0_signers(p7, other, flags);
|
||||||
|
|||||||
78
apps/speed.c
78
apps/speed.c
@@ -81,14 +81,13 @@
|
|||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#if defined(__FreeBSD__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(_DARWIN)
|
||||||
# define USE_TOD
|
# define USE_TOD
|
||||||
#elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
|
#elif !defined(MSDOS) && !defined(VXWORKS) && (!defined(VMS) || defined(__DECC))
|
||||||
# define TIMES
|
# define TIMES
|
||||||
#endif
|
#endif
|
||||||
#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && !defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && !defined(MPE) && !defined(__NetBSD__)
|
#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && !defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && !defined(MPE) && !defined(__NetBSD__) && !defined(_DARWIN) && !defined(VXWORKS)
|
||||||
# define TIMEB
|
# define TIMEB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -116,7 +115,7 @@
|
|||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(TIMES) && !defined(TIMEB) && !defined(USE_TOD)
|
#if !defined(TIMES) && !defined(TIMEB) && !defined(USE_TOD) && !defined(VXWORKS)
|
||||||
#error "It seems neither struct tms nor struct timeb is supported in this platform!"
|
#error "It seems neither struct tms nor struct timeb is supported in this platform!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -225,7 +224,7 @@ static double Time_F(int s, int usertime)
|
|||||||
|
|
||||||
#ifdef USE_TOD
|
#ifdef USE_TOD
|
||||||
if(usertime)
|
if(usertime)
|
||||||
{
|
{
|
||||||
static struct rusage tstart,tend;
|
static struct rusage tstart,tend;
|
||||||
|
|
||||||
if (s == START)
|
if (s == START)
|
||||||
@@ -285,7 +284,23 @@ static double Time_F(int s, int usertime)
|
|||||||
# if defined(TIMES) && defined(TIMEB)
|
# if defined(TIMES) && defined(TIMEB)
|
||||||
else
|
else
|
||||||
# endif
|
# endif
|
||||||
# ifdef TIMEB
|
# ifdef VXWORKS
|
||||||
|
{
|
||||||
|
static unsigned long tick_start, tick_end;
|
||||||
|
|
||||||
|
if( s == START )
|
||||||
|
{
|
||||||
|
tick_start = tickGet();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tick_end = tickGet();
|
||||||
|
ret = (double)(tick_end - tick_start) / (double)sysClkRateGet();
|
||||||
|
return((ret < 0.001)?0.001:ret);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# elif defined(TIMEB)
|
||||||
{
|
{
|
||||||
static struct timeb tstart,tend;
|
static struct timeb tstart,tend;
|
||||||
long i;
|
long i;
|
||||||
@@ -304,6 +319,7 @@ static double Time_F(int s, int usertime)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -311,7 +327,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e;
|
|
||||||
unsigned char *buf=NULL,*buf2=NULL;
|
unsigned char *buf=NULL,*buf2=NULL;
|
||||||
int mret=1;
|
int mret=1;
|
||||||
#define ALGOR_NUM 15
|
#define ALGOR_NUM 15
|
||||||
@@ -320,7 +335,9 @@ int MAIN(int argc, char **argv)
|
|||||||
#define DSA_NUM 3
|
#define DSA_NUM 3
|
||||||
long count,rsa_count;
|
long count,rsa_count;
|
||||||
int i,j,k;
|
int i,j,k;
|
||||||
|
#ifndef NO_RSA
|
||||||
unsigned rsa_num;
|
unsigned rsa_num;
|
||||||
|
#endif
|
||||||
#ifndef NO_MD2
|
#ifndef NO_MD2
|
||||||
unsigned char md2[MD2_DIGEST_LENGTH];
|
unsigned char md2[MD2_DIGEST_LENGTH];
|
||||||
#endif
|
#endif
|
||||||
@@ -472,37 +489,6 @@ int MAIN(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
if ((argc > 0) && (strcmp(*argv,"-elapsed") == 0))
|
if ((argc > 0) && (strcmp(*argv,"-elapsed") == 0))
|
||||||
usertime = 0;
|
usertime = 0;
|
||||||
else
|
|
||||||
if ((argc > 0) && (strcmp(*argv,"-engine") == 0))
|
|
||||||
{
|
|
||||||
argc--;
|
|
||||||
argv++;
|
|
||||||
if(argc == 0)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"no engine given\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if((e = ENGINE_by_id(*argv)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
*argv);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", *argv);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
/* It will be increased again further down. We just
|
|
||||||
don't want speed to confuse an engine with an
|
|
||||||
algorithm, especially when none is given (which
|
|
||||||
means all of them should be run) */
|
|
||||||
j--;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
#ifndef NO_MD2
|
#ifndef NO_MD2
|
||||||
if (strcmp(*argv,"md2") == 0) doit[D_MD2]=1;
|
if (strcmp(*argv,"md2") == 0) doit[D_MD2]=1;
|
||||||
else
|
else
|
||||||
@@ -550,7 +536,7 @@ int MAIN(int argc, char **argv)
|
|||||||
#ifdef RSAref
|
#ifdef RSAref
|
||||||
if (strcmp(*argv,"rsaref") == 0)
|
if (strcmp(*argv,"rsaref") == 0)
|
||||||
{
|
{
|
||||||
RSA_set_default_openssl_method(RSA_PKCS1_RSAref());
|
RSA_set_default_method(RSA_PKCS1_RSAref());
|
||||||
j--;
|
j--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -558,7 +544,7 @@ int MAIN(int argc, char **argv)
|
|||||||
#ifndef RSA_NULL
|
#ifndef RSA_NULL
|
||||||
if (strcmp(*argv,"openssl") == 0)
|
if (strcmp(*argv,"openssl") == 0)
|
||||||
{
|
{
|
||||||
RSA_set_default_openssl_method(RSA_PKCS1_SSLeay());
|
RSA_set_default_method(RSA_PKCS1_SSLeay());
|
||||||
j--;
|
j--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -703,12 +689,11 @@ int MAIN(int argc, char **argv)
|
|||||||
BIO_printf(bio_err,"\n");
|
BIO_printf(bio_err,"\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TIMES
|
||||||
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
|
|
||||||
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");
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
argc--;
|
argc--;
|
||||||
@@ -739,7 +724,7 @@ int MAIN(int argc, char **argv)
|
|||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
for (i=0; i<RSA_NUM; i++)
|
for (i=0; i<RSA_NUM; i++)
|
||||||
{
|
{
|
||||||
const unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
p=rsa_data[i];
|
p=rsa_data[i];
|
||||||
rsa_key[i]=d2i_RSAPrivateKey(NULL,&p,rsa_data_length[i]);
|
rsa_key[i]=d2i_RSAPrivateKey(NULL,&p,rsa_data_length[i]);
|
||||||
@@ -865,6 +850,7 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NO_DSA
|
||||||
dsa_c[R_DSA_512][0]=count/1000;
|
dsa_c[R_DSA_512][0]=count/1000;
|
||||||
dsa_c[R_DSA_512][1]=count/1000/2;
|
dsa_c[R_DSA_512][1]=count/1000/2;
|
||||||
for (i=1; i<DSA_NUM; i++)
|
for (i=1; i<DSA_NUM; i++)
|
||||||
@@ -882,6 +868,7 @@ int MAIN(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define COND(d) (count < (d))
|
#define COND(d) (count < (d))
|
||||||
#define COUNT(d) (d)
|
#define COUNT(d) (d)
|
||||||
@@ -1207,7 +1194,7 @@ int MAIN(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
BIO_printf(bio_err,"RSA verify failure. No RSA verify will be done.\n");
|
BIO_printf(bio_err,"RSA verify failure. No RSA verify will be done.\n");
|
||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
dsa_doit[j] = 0;
|
rsa_doit[j] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1413,7 +1400,6 @@ int MAIN(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
mret=0;
|
mret=0;
|
||||||
end:
|
end:
|
||||||
ERR_print_errors(bio_err);
|
|
||||||
if (buf != NULL) OPENSSL_free(buf);
|
if (buf != NULL) OPENSSL_free(buf);
|
||||||
if (buf2 != NULL) OPENSSL_free(buf2);
|
if (buf2 != NULL) OPENSSL_free(buf2);
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
|
|||||||
27
apps/spkac.c
27
apps/spkac.c
@@ -69,7 +69,6 @@
|
|||||||
#include <openssl/lhash.h>
|
#include <openssl/lhash.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG spkac_main
|
#define PROG spkac_main
|
||||||
@@ -82,7 +81,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int i,badops=0, ret = 1;
|
int i,badops=0, ret = 1;
|
||||||
BIO *in = NULL,*out = NULL, *key = NULL;
|
BIO *in = NULL,*out = NULL, *key = NULL;
|
||||||
int verify=0,noout=0,pubkey=0;
|
int verify=0,noout=0,pubkey=0;
|
||||||
@@ -93,7 +91,6 @@ int MAIN(int argc, char **argv)
|
|||||||
LHASH *conf = NULL;
|
LHASH *conf = NULL;
|
||||||
NETSCAPE_SPKI *spki = NULL;
|
NETSCAPE_SPKI *spki = NULL;
|
||||||
EVP_PKEY *pkey = NULL;
|
EVP_PKEY *pkey = NULL;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -139,11 +136,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
spksect= *(++argv);
|
spksect= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-noout") == 0)
|
else if (strcmp(*argv,"-noout") == 0)
|
||||||
noout=1;
|
noout=1;
|
||||||
else if (strcmp(*argv,"-pubkey") == 0)
|
else if (strcmp(*argv,"-pubkey") == 0)
|
||||||
@@ -169,7 +161,6 @@ bad:
|
|||||||
BIO_printf(bio_err," -noout don't print SPKAC\n");
|
BIO_printf(bio_err," -noout don't print SPKAC\n");
|
||||||
BIO_printf(bio_err," -pubkey output public key\n");
|
BIO_printf(bio_err," -pubkey output public key\n");
|
||||||
BIO_printf(bio_err," -verify verify SPKAC signature\n");
|
BIO_printf(bio_err," -verify verify SPKAC signature\n");
|
||||||
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -179,24 +170,6 @@ bad:
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(keyfile) {
|
if(keyfile) {
|
||||||
if(strcmp(keyfile, "-")) key = BIO_new_file(keyfile, "r");
|
if(strcmp(keyfile, "-")) key = BIO_new_file(keyfile, "r");
|
||||||
else key = BIO_new_fp(stdin, BIO_NOCLOSE);
|
else key = BIO_new_fp(stdin, BIO_NOCLOSE);
|
||||||
|
|||||||
@@ -65,7 +65,6 @@
|
|||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG verify_main
|
#define PROG verify_main
|
||||||
@@ -79,7 +78,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int i,ret=1;
|
int i,ret=1;
|
||||||
int purpose = -1;
|
int purpose = -1;
|
||||||
char *CApath=NULL,*CAfile=NULL;
|
char *CApath=NULL,*CAfile=NULL;
|
||||||
@@ -87,7 +85,6 @@ int MAIN(int argc, char **argv)
|
|||||||
STACK_OF(X509) *untrusted = NULL, *trusted = NULL;
|
STACK_OF(X509) *untrusted = NULL, *trusted = NULL;
|
||||||
X509_STORE *cert_ctx=NULL;
|
X509_STORE *cert_ctx=NULL;
|
||||||
X509_LOOKUP *lookup=NULL;
|
X509_LOOKUP *lookup=NULL;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
cert_ctx=X509_STORE_new();
|
cert_ctx=X509_STORE_new();
|
||||||
if (cert_ctx == NULL) goto end;
|
if (cert_ctx == NULL) goto end;
|
||||||
@@ -140,11 +137,6 @@ int MAIN(int argc, char **argv)
|
|||||||
if (argc-- < 1) goto end;
|
if (argc-- < 1) goto end;
|
||||||
trustfile= *(++argv);
|
trustfile= *(++argv);
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto end;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-help") == 0)
|
else if (strcmp(*argv,"-help") == 0)
|
||||||
goto end;
|
goto end;
|
||||||
else if (strcmp(*argv,"-issuer_checks") == 0)
|
else if (strcmp(*argv,"-issuer_checks") == 0)
|
||||||
@@ -162,24 +154,6 @@ int MAIN(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
lookup=X509_STORE_add_lookup(cert_ctx,X509_LOOKUP_file());
|
lookup=X509_STORE_add_lookup(cert_ctx,X509_LOOKUP_file());
|
||||||
if (lookup == NULL) abort();
|
if (lookup == NULL) abort();
|
||||||
if (CAfile) {
|
if (CAfile) {
|
||||||
@@ -227,7 +201,7 @@ int MAIN(int argc, char **argv)
|
|||||||
ret=0;
|
ret=0;
|
||||||
end:
|
end:
|
||||||
if (ret == 1) {
|
if (ret == 1) {
|
||||||
BIO_printf(bio_err,"usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] [-engine e] cert1 cert2 ...\n");
|
BIO_printf(bio_err,"usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] cert1 cert2 ...\n");
|
||||||
BIO_printf(bio_err,"recognized usages:\n");
|
BIO_printf(bio_err,"recognized usages:\n");
|
||||||
for(i = 0; i < X509_PURPOSE_get_count(); i++) {
|
for(i = 0; i < X509_PURPOSE_get_count(); i++) {
|
||||||
X509_PURPOSE *ptmp;
|
X509_PURPOSE *ptmp;
|
||||||
|
|||||||
54
apps/x509.c
54
apps/x509.c
@@ -73,7 +73,6 @@
|
|||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG x509_main
|
#define PROG x509_main
|
||||||
@@ -106,7 +105,6 @@ static char *x509_usage[]={
|
|||||||
" -fingerprint - print the certificate fingerprint\n",
|
" -fingerprint - print the certificate fingerprint\n",
|
||||||
" -alias - output certificate alias\n",
|
" -alias - output certificate alias\n",
|
||||||
" -noout - no certificate output\n",
|
" -noout - no certificate output\n",
|
||||||
" -ocspid - print OCSP hash values for the subject name and public key\n",
|
|
||||||
" -trustout - output a \"trusted\" certificate\n",
|
" -trustout - output a \"trusted\" certificate\n",
|
||||||
" -clrtrust - clear all trusted purposes\n",
|
" -clrtrust - clear all trusted purposes\n",
|
||||||
" -clrreject - clear all rejected purposes\n",
|
" -clrreject - clear all rejected purposes\n",
|
||||||
@@ -131,8 +129,6 @@ static char *x509_usage[]={
|
|||||||
" -extensions - section from config file with X509V3 extensions to add\n",
|
" -extensions - section from config file with X509V3 extensions to add\n",
|
||||||
" -clrext - delete extensions before signing and input certificate\n",
|
" -clrext - delete extensions before signing and input certificate\n",
|
||||||
" -nameopt arg - various certificate name options\n",
|
" -nameopt arg - various certificate name options\n",
|
||||||
" -engine e - use engine e, possibly a hardware device.\n",
|
|
||||||
" -certopt arg - various certificate text options\n",
|
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -149,7 +145,6 @@ int MAIN(int, char **);
|
|||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int MAIN(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ENGINE *e = NULL;
|
|
||||||
int ret=1;
|
int ret=1;
|
||||||
X509_REQ *req=NULL;
|
X509_REQ *req=NULL;
|
||||||
X509 *x=NULL,*xca=NULL;
|
X509 *x=NULL,*xca=NULL;
|
||||||
@@ -164,7 +159,6 @@ int MAIN(int argc, char **argv)
|
|||||||
char *CAkeyfile=NULL,*CAserial=NULL;
|
char *CAkeyfile=NULL,*CAserial=NULL;
|
||||||
char *alias=NULL;
|
char *alias=NULL;
|
||||||
int text=0,serial=0,hash=0,subject=0,issuer=0,startdate=0,enddate=0;
|
int text=0,serial=0,hash=0,subject=0,issuer=0,startdate=0,enddate=0;
|
||||||
int ocspid=0;
|
|
||||||
int noout=0,sign_flag=0,CA_flag=0,CA_createserial=0,email=0;
|
int noout=0,sign_flag=0,CA_flag=0,CA_createserial=0,email=0;
|
||||||
int trustout=0,clrtrust=0,clrreject=0,aliasout=0,clrext=0;
|
int trustout=0,clrtrust=0,clrreject=0,aliasout=0,clrext=0;
|
||||||
int C=0;
|
int C=0;
|
||||||
@@ -180,8 +174,7 @@ int MAIN(int argc, char **argv)
|
|||||||
char *extsect = NULL, *extfile = NULL, *passin = NULL, *passargin = NULL;
|
char *extsect = NULL, *extfile = NULL, *passin = NULL, *passargin = NULL;
|
||||||
int need_rand = 0;
|
int need_rand = 0;
|
||||||
int checkend=0,checkoffset=0;
|
int checkend=0,checkoffset=0;
|
||||||
unsigned long nmflag = 0, certflag = 0;
|
unsigned long nmflag = 0;
|
||||||
char *engine=NULL;
|
|
||||||
|
|
||||||
reqfile=0;
|
reqfile=0;
|
||||||
|
|
||||||
@@ -333,11 +326,6 @@ int MAIN(int argc, char **argv)
|
|||||||
alias= *(++argv);
|
alias= *(++argv);
|
||||||
trustout = 1;
|
trustout = 1;
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-certopt") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
if (!set_cert_ex(&certflag, *(++argv))) goto bad;
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-nameopt") == 0)
|
else if (strcmp(*argv,"-nameopt") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
@@ -349,11 +337,6 @@ int MAIN(int argc, char **argv)
|
|||||||
alias= *(++argv);
|
alias= *(++argv);
|
||||||
trustout = 1;
|
trustout = 1;
|
||||||
}
|
}
|
||||||
else if (strcmp(*argv,"-engine") == 0)
|
|
||||||
{
|
|
||||||
if (--argc < 1) goto bad;
|
|
||||||
engine= *(++argv);
|
|
||||||
}
|
|
||||||
else if (strcmp(*argv,"-C") == 0)
|
else if (strcmp(*argv,"-C") == 0)
|
||||||
C= ++num;
|
C= ++num;
|
||||||
else if (strcmp(*argv,"-email") == 0)
|
else if (strcmp(*argv,"-email") == 0)
|
||||||
@@ -414,8 +397,6 @@ int MAIN(int argc, char **argv)
|
|||||||
clrext = 1;
|
clrext = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (strcmp(*argv,"-ocspid") == 0)
|
|
||||||
ocspid= ++num;
|
|
||||||
else if ((md_alg=EVP_get_digestbyname(*argv + 1)))
|
else if ((md_alg=EVP_get_digestbyname(*argv + 1)))
|
||||||
{
|
{
|
||||||
/* ok */
|
/* ok */
|
||||||
@@ -439,24 +420,6 @@ bad:
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine != NULL)
|
|
||||||
{
|
|
||||||
if((e = ENGINE_by_id(engine)) == NULL)
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
|
||||||
engine);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
|
||||||
{
|
|
||||||
BIO_printf(bio_err,"can't use that engine\n");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
BIO_printf(bio_err,"engine \"%s\" set.\n", engine);
|
|
||||||
/* Free our "structural" reference. */
|
|
||||||
ENGINE_free(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (need_rand)
|
if (need_rand)
|
||||||
app_RAND_load_file(NULL, bio_err, 0);
|
app_RAND_load_file(NULL, bio_err, 0);
|
||||||
|
|
||||||
@@ -811,7 +774,7 @@ bad:
|
|||||||
}
|
}
|
||||||
else if (text == i)
|
else if (text == i)
|
||||||
{
|
{
|
||||||
X509_print_ex(out,x,nmflag, certflag);
|
X509_print(out,x);
|
||||||
}
|
}
|
||||||
else if (startdate == i)
|
else if (startdate == i)
|
||||||
{
|
{
|
||||||
@@ -853,7 +816,7 @@ bad:
|
|||||||
if (Upkey == NULL)
|
if (Upkey == NULL)
|
||||||
{
|
{
|
||||||
Upkey=load_key(bio_err,
|
Upkey=load_key(bio_err,
|
||||||
keyfile,keyformat, passin, e);
|
keyfile,keyformat, passin);
|
||||||
if (Upkey == NULL) goto end;
|
if (Upkey == NULL) goto end;
|
||||||
}
|
}
|
||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
@@ -871,8 +834,7 @@ bad:
|
|||||||
if (CAkeyfile != NULL)
|
if (CAkeyfile != NULL)
|
||||||
{
|
{
|
||||||
CApkey=load_key(bio_err,
|
CApkey=load_key(bio_err,
|
||||||
CAkeyfile,CAkeyformat, passin,
|
CAkeyfile,CAkeyformat, passin);
|
||||||
e);
|
|
||||||
if (CApkey == NULL) goto end;
|
if (CApkey == NULL) goto end;
|
||||||
}
|
}
|
||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
@@ -899,14 +861,16 @@ bad:
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
pk=load_key(bio_err,
|
pk=load_key(bio_err,
|
||||||
keyfile,FORMAT_PEM, passin, e);
|
keyfile,FORMAT_PEM, passin);
|
||||||
if (pk == NULL) goto end;
|
if (pk == NULL) goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
BIO_printf(bio_err,"Generating certificate request\n");
|
BIO_printf(bio_err,"Generating certificate request\n");
|
||||||
|
|
||||||
|
#ifndef NO_DSA
|
||||||
if (pk->type == EVP_PKEY_DSA)
|
if (pk->type == EVP_PKEY_DSA)
|
||||||
digest=EVP_dss1();
|
digest=EVP_dss1();
|
||||||
|
#endif
|
||||||
|
|
||||||
rq=X509_to_X509_REQ(x,pk,digest);
|
rq=X509_to_X509_REQ(x,pk,digest);
|
||||||
EVP_PKEY_free(pk);
|
EVP_PKEY_free(pk);
|
||||||
@@ -922,10 +886,6 @@ bad:
|
|||||||
}
|
}
|
||||||
noout=1;
|
noout=1;
|
||||||
}
|
}
|
||||||
else if (ocspid == i)
|
|
||||||
{
|
|
||||||
X509_ocspid_print(out, x);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
148
config
148
config
@@ -49,10 +49,18 @@ if [ "x$XREL" != "x" ]; then
|
|||||||
echo "whatever-whatever-sco5"; exit 0
|
echo "whatever-whatever-sco5"; exit 0
|
||||||
;;
|
;;
|
||||||
4.2MP)
|
4.2MP)
|
||||||
if [ "x$VERSION" = "x2.1.1" ]; then
|
if [ "x$VERSION" = "x2.01" ]; then
|
||||||
|
echo "${MACHINE}-whatever-unixware201"; exit 0
|
||||||
|
elif [ "x$VERSION" = "x2.02" ]; then
|
||||||
|
echo "${MACHINE}-whatever-unixware202"; exit 0
|
||||||
|
elif [ "x$VERSION" = "x2.03" ]; then
|
||||||
|
echo "${MACHINE}-whatever-unixware203"; exit 0
|
||||||
|
elif [ "x$VERSION" = "x2.1.1" ]; then
|
||||||
echo "${MACHINE}-whatever-unixware211"; exit 0
|
echo "${MACHINE}-whatever-unixware211"; exit 0
|
||||||
elif [ "x$VERSION" = "x2.1.2" ]; then
|
elif [ "x$VERSION" = "x2.1.2" ]; then
|
||||||
echo "${MACHINE}-whatever-unixware212"; exit 0
|
echo "${MACHINE}-whatever-unixware212"; exit 0
|
||||||
|
elif [ "x$VERSION" = "x2.1.3" ]; then
|
||||||
|
echo "${MACHINE}-whatever-unixware213"; exit 0
|
||||||
else
|
else
|
||||||
echo "${MACHINE}-whatever-unixware2"; exit 0
|
echo "${MACHINE}-whatever-unixware2"; exit 0
|
||||||
fi
|
fi
|
||||||
@@ -60,6 +68,11 @@ if [ "x$XREL" != "x" ]; then
|
|||||||
4.2)
|
4.2)
|
||||||
echo "whatever-whatever-unixware1"; exit 0
|
echo "whatever-whatever-unixware1"; exit 0
|
||||||
;;
|
;;
|
||||||
|
OpenUNIX)
|
||||||
|
if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x8" ]; then
|
||||||
|
echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
5)
|
5)
|
||||||
if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then
|
if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then
|
||||||
echo "${MACHINE}-sco-unixware7"; exit 0
|
echo "${MACHINE}-sco-unixware7"; exit 0
|
||||||
@@ -79,6 +92,14 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "m68k-apple-aux3"; exit 0
|
echo "m68k-apple-aux3"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
AIX:[3456789]:4:*)
|
||||||
|
echo "${MACHINE}-ibm-aix43"; exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
|
AIX:*:[56789]:*)
|
||||||
|
echo "${MACHINE}-ibm-aix43"; exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
AIX:*)
|
AIX:*)
|
||||||
echo "${MACHINE}-ibm-aix"; exit 0
|
echo "${MACHINE}-ibm-aix"; exit 0
|
||||||
;;
|
;;
|
||||||
@@ -179,15 +200,33 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "${MACHINE}-whatever-openbsd"; exit 0
|
echo "${MACHINE}-whatever-openbsd"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
OpenUNIX:*)
|
||||||
|
echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
OSF1:*:*:*alpha*)
|
OSF1:*:*:*alpha*)
|
||||||
echo "${MACHINE}-dec-osf"; exit 0
|
OSFMAJOR=`echo ${RELEASE}| sed -e 's/^V\([0-9]*\)\..*$/\1/'`
|
||||||
|
case "$OSFMAJOR" in
|
||||||
|
4|5)
|
||||||
|
echo "${MACHINE}-dec-tru64"; exit 0
|
||||||
|
;;
|
||||||
|
1|2|3)
|
||||||
|
echo "${MACHINE}-dec-osf"; exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "${MACHINE}-dec-osf"; exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
QNX:*)
|
QNX:*)
|
||||||
case "$VERSION" in
|
case "$RELEASE" in
|
||||||
4*)
|
4*)
|
||||||
echo "${MACHINE}-whatever-qnx4"
|
echo "${MACHINE}-whatever-qnx4"
|
||||||
;;
|
;;
|
||||||
|
6*)
|
||||||
|
echo "${MACHINE}-whatever-qnx6"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "${MACHINE}-whatever-qnx"
|
echo "${MACHINE}-whatever-qnx"
|
||||||
;;
|
;;
|
||||||
@@ -203,6 +242,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "ppc-apple-rhapsody"; exit 0
|
echo "ppc-apple-rhapsody"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Darwin:*)
|
||||||
|
echo "ppc-apple-darwin"; exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
SunOS:5.*)
|
SunOS:5.*)
|
||||||
echo "${MACHINE}-whatever-solaris2"; exit 0
|
echo "${MACHINE}-whatever-solaris2"; exit 0
|
||||||
;;
|
;;
|
||||||
@@ -255,6 +298,25 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "mips-sony-newsos4"; exit 0;
|
echo "mips-sony-newsos4"; exit 0;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
CYGWIN*)
|
||||||
|
case "$RELEASE" in
|
||||||
|
[bB]*|1.0|1.[12].*)
|
||||||
|
echo "${MACHINE}-whatever-cygwin_pre1.3"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "${MACHINE}-whatever-cygwin"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
|
*"CRAY T3E")
|
||||||
|
echo "t3e-cray-unicosmk"; exit 0;
|
||||||
|
;;
|
||||||
|
|
||||||
|
*CRAY*)
|
||||||
|
echo "j90-cray-unicos"; exit 0;
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -393,10 +455,16 @@ case "$GUESSOS" in
|
|||||||
;;
|
;;
|
||||||
mips4-sgi-irix64)
|
mips4-sgi-irix64)
|
||||||
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 './Configre irix64-mips4-$CC' *manually*."
|
echo " invoke './Configure irix64-mips4-$CC' *manually*."
|
||||||
echo " Type Ctrl-C if you don't want to continue."
|
echo " Type return if you want to continue, Ctrl-C to abort."
|
||||||
read waste < /dev/tty
|
read waste < /dev/tty
|
||||||
options="$options -mips4"
|
CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
|
||||||
|
CPU=${CPU:-0}
|
||||||
|
if [ $CPU -ge 5000 ]; then
|
||||||
|
options="$options -mips4"
|
||||||
|
else
|
||||||
|
options="$options -mips3"
|
||||||
|
fi
|
||||||
OUT="irix-mips3-$CC"
|
OUT="irix-mips3-$CC"
|
||||||
;;
|
;;
|
||||||
alpha-*-linux2)
|
alpha-*-linux2)
|
||||||
@@ -433,23 +501,46 @@ EOF
|
|||||||
m68k-*-linux*) OUT="linux-m68k" ;;
|
m68k-*-linux*) OUT="linux-m68k" ;;
|
||||||
ia64-*-linux?) OUT="linux-ia64" ;;
|
ia64-*-linux?) OUT="linux-ia64" ;;
|
||||||
ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
|
ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
|
||||||
|
ppc-apple-darwin) OUT="darwin-ppc-cc" ;;
|
||||||
sparc64-*-linux2)
|
sparc64-*-linux2)
|
||||||
#Before we can uncomment following lines we have to wait at least
|
#Before we can uncomment following lines we have to wait at least
|
||||||
#till 64-bit glibc for SPARC is operational:-(
|
#till 64-bit glibc for SPARC is operational:-(
|
||||||
#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 Ctrl-C if you don't want to continue."
|
#echo " Type return if you want to continue, Ctrl-C to abort."
|
||||||
#read waste < /dev/tty
|
#read waste < /dev/tty
|
||||||
OUT="linux-sparcv9" ;;
|
OUT="linux-sparcv9" ;;
|
||||||
sparc-*-linux2)
|
sparc-*-linux2)
|
||||||
KARCH=`awk '/type/{print$3}' /proc/cpuinfo`
|
KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
|
||||||
case ${KARCH:-sun4} in
|
case ${KARCH:-sun4} in
|
||||||
sun4u*) OUT="linux-sparcv9" ;;
|
sun4u*) OUT="linux-sparcv9" ;;
|
||||||
sun4m) OUT="linux-sparcv8" ;;
|
sun4m) OUT="linux-sparcv8" ;;
|
||||||
sun4d) OUT="linux-sparcv8" ;;
|
sun4d) OUT="linux-sparcv8" ;;
|
||||||
*) OUT="linux-sparcv7" ;;
|
*) OUT="linux-sparcv7" ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
|
parisc-*-linux2)
|
||||||
|
CPUARCH=`awk '/cpu family/{print substr($5,1,3)}' /proc/cpuinfo`
|
||||||
|
CPUSCHEDULE=`awk '/^cpu.[ ]: PA/{print substr($3,3)}' /proc/cpuinfo`
|
||||||
|
|
||||||
|
# ??TODO ?? Model transformations
|
||||||
|
# 0. CPU Architecture for the 1.1 processor has letter suffixes. We strip that off
|
||||||
|
# assuming no further arch. identification will ever be used by GCC.
|
||||||
|
# 1. I'm most concerned about whether is a 7300LC is closer to a 7100 versus a 7100LC.
|
||||||
|
# 2. The variant 64-bit processors cause concern should GCC support explicit schedulers
|
||||||
|
# for these chips in the future.
|
||||||
|
# PA7300LC -> 7100LC (1.1)
|
||||||
|
# PA8200 -> 8000 (2.0)
|
||||||
|
# PA8500 -> 8000 (2.0)
|
||||||
|
# PA8600 -> 8000 (2.0)
|
||||||
|
|
||||||
|
CPUSCHEDULE=`echo $CPUSCHEDULE|sed -e 's/7300LC/7100LC/' -e 's/8?00/8000/'`
|
||||||
|
# Finish Model transformations
|
||||||
|
|
||||||
|
options="$options -mschedule=$CPUSCHEDULE -march=$CPUARCH"
|
||||||
|
OUT="linux-parisc" ;;
|
||||||
arm*-*-linux2) OUT="linux-elf-arm" ;;
|
arm*-*-linux2) OUT="linux-elf-arm" ;;
|
||||||
|
s390-*-linux2) OUT="linux-s390" ;;
|
||||||
|
s390x-*-linux?) OUT="linux-s390x" ;;
|
||||||
*-*-linux2) OUT="linux-elf" ;;
|
*-*-linux2) OUT="linux-elf" ;;
|
||||||
*-*-linux1) OUT="linux-aout" ;;
|
*-*-linux1) OUT="linux-aout" ;;
|
||||||
sun4u*-*-solaris2)
|
sun4u*-*-solaris2)
|
||||||
@@ -457,7 +548,7 @@ EOF
|
|||||||
if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then
|
if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then
|
||||||
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 Ctrl-C if you don't want to continue."
|
echo " Type return if you want to continue, Ctrl-C to abort."
|
||||||
read waste < /dev/tty
|
read waste < /dev/tty
|
||||||
fi
|
fi
|
||||||
OUT="solaris-sparcv9-$CC" ;;
|
OUT="solaris-sparcv9-$CC" ;;
|
||||||
@@ -477,13 +568,24 @@ EOF
|
|||||||
pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
|
pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
|
||||||
*-*-openbsd) OUT="OpenBSD" ;;
|
*-*-openbsd) OUT="OpenBSD" ;;
|
||||||
*86*-*-bsdi4) OUT="bsdi-elf-gcc" ;;
|
*86*-*-bsdi4) OUT="bsdi-elf-gcc" ;;
|
||||||
*-*-osf) OUT="alpha-cc" ;;
|
*-*-osf) OUT="alphaold-cc" ;;
|
||||||
|
*-*-tru64) OUT="alpha-cc" ;;
|
||||||
|
*-*-OpenUNIX*)
|
||||||
|
if [ "$CC" = "gcc" ]; then
|
||||||
|
OUT="OpenUNIX-8-gcc"
|
||||||
|
else
|
||||||
|
OUT="OpenUNIX-8"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*-*-unixware7) OUT="unixware-7" ;;
|
*-*-unixware7) OUT="unixware-7" ;;
|
||||||
*-*-UnixWare7) OUT="unixware-7" ;;
|
*-*-UnixWare7) OUT="unixware-7" ;;
|
||||||
*-*-Unixware7) OUT="unixware-7" ;;
|
*-*-Unixware7) OUT="unixware-7" ;;
|
||||||
*-*-unixware[1-2]*) OUT="unixware-2.0" ;;
|
*-*-unixware20*) OUT="unixware-2.0" ;;
|
||||||
*-*-UnixWare[1-2]*) OUT="unixware-2.0" ;;
|
*-*-unixware21*) OUT="unixware-2.1" ;;
|
||||||
*-*-Unixware[1-2]*) OUT="unixware-2.0" ;;
|
*-*-UnixWare20*) OUT="unixware-2.0" ;;
|
||||||
|
*-*-UnixWare21*) OUT="unixware-2.1" ;;
|
||||||
|
*-*-Unixware20*) OUT="unixware-2.0" ;;
|
||||||
|
*-*-Unixware21*) OUT="unixware-2.1" ;;
|
||||||
BS2000-siemens-sysv4) OUT="BS2000-OSD" ;;
|
BS2000-siemens-sysv4) OUT="BS2000-OSD" ;;
|
||||||
RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
|
RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
|
||||||
*-siemens-sysv4) OUT="SINIX" ;;
|
*-siemens-sysv4) OUT="SINIX" ;;
|
||||||
@@ -494,20 +596,18 @@ EOF
|
|||||||
# *-aix) OUT="aix-$CC" ;;
|
# *-aix) OUT="aix-$CC" ;;
|
||||||
# *-dgux) OUT="dgux" ;;
|
# *-dgux) OUT="dgux" ;;
|
||||||
mips-sony-newsos4) OUT="newsos4-gcc" ;;
|
mips-sony-newsos4) OUT="newsos4-gcc" ;;
|
||||||
|
*-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;;
|
||||||
|
*-*-cygwin) OUT="Cygwin" ;;
|
||||||
|
t3e-cray-unicosmk) OUT="cray-t3e" ;;
|
||||||
|
j90-cray-unicos) OUT="cray-j90" ;;
|
||||||
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
|
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# NB: This atalla support has been superceded by the ENGINE support
|
|
||||||
# That contains its own header and definitions anyway. Support can
|
|
||||||
# be enabled or disabled on any supported platform without external
|
|
||||||
# headers, eg. by adding the "hw-atalla" switch to ./config or
|
|
||||||
# perl Configure
|
|
||||||
#
|
|
||||||
# See whether we can compile Atalla support
|
# See whether we can compile Atalla support
|
||||||
#if [ -f /usr/include/atasi.h ]
|
if [ -f /usr/include/atasi.h ]
|
||||||
#then
|
then
|
||||||
# options="$options -DATALLA"
|
options="$options -DATALLA"
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
# gcc < 2.8 does not support -mcpu=ultrasparc
|
# gcc < 2.8 does not support -mcpu=ultrasparc
|
||||||
if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
|
if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
|
||||||
@@ -528,7 +628,7 @@ case "$GUESSOS" in
|
|||||||
i386-*) options="$options 386" ;;
|
i386-*) options="$options 386" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
for i in bf cast des dh dsa hmac md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa sha
|
for i in bf cast des dh dsa hmac idea md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa sha
|
||||||
do
|
do
|
||||||
if [ ! -d crypto/$i ]
|
if [ ! -d crypto/$i ]
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ DIR= crypto
|
|||||||
TOP= ..
|
TOP= ..
|
||||||
CC= cc
|
CC= cc
|
||||||
INCLUDE= -I. -I../include
|
INCLUDE= -I. -I../include
|
||||||
INCLUDES= -I.. -I../../include
|
INCLUDES= -I.. -I../.. -I../../include
|
||||||
CFLAG= -g
|
CFLAG= -g
|
||||||
INSTALL_PREFIX=
|
INSTALL_PREFIX=
|
||||||
OPENSSLDIR= /usr/local/ssl
|
OPENSSLDIR= /usr/local/ssl
|
||||||
@@ -27,15 +27,15 @@ LIBS=
|
|||||||
|
|
||||||
SDIRS= md2 md5 sha mdc2 hmac ripemd \
|
SDIRS= md2 md5 sha mdc2 hmac ripemd \
|
||||||
des rc2 rc4 rc5 idea bf cast \
|
des rc2 rc4 rc5 idea bf cast \
|
||||||
bn rsa dsa dh dso engine \
|
bn rsa dsa dh dso \
|
||||||
buffer bio stack lhash rand err objects \
|
buffer bio stack lhash rand err objects \
|
||||||
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp rijndael
|
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp
|
||||||
|
|
||||||
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
|
LIBSRC= cryptlib.c mem.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
|
LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o
|
||||||
|
|
||||||
SRC= $(LIBSRC)
|
SRC= $(LIBSRC)
|
||||||
|
|
||||||
@@ -198,3 +198,6 @@ tmdiff.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
|||||||
tmdiff.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
tmdiff.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||||
tmdiff.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
tmdiff.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
||||||
tmdiff.o: ../include/openssl/tmdiff.h cryptlib.h
|
tmdiff.o: ../include/openssl/tmdiff.h cryptlib.h
|
||||||
|
uid.o: ../include/openssl/crypto.h ../include/openssl/opensslv.h
|
||||||
|
uid.o: ../include/openssl/safestack.h ../include/openssl/stack.h
|
||||||
|
uid.o: ../include/openssl/symhacks.h
|
||||||
|
|||||||
@@ -171,9 +171,7 @@ a_digest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|||||||
a_digest.o: ../../include/openssl/opensslconf.h
|
a_digest.o: ../../include/openssl/opensslconf.h
|
||||||
a_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
a_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
a_digest.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
a_digest.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
a_digest.o: ../../include/openssl/rc5.h
|
a_digest.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
a_digest.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
a_digest.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
a_digest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
a_digest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
a_digest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
a_digest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
a_digest.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
a_digest.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -298,12 +296,11 @@ a_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|||||||
a_sign.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
a_sign.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
a_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
a_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||||
a_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
a_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
a_sign.o: ../../include/openssl/rijndael-alg-fst.h
|
a_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
a_sign.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
a_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
a_sign.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
a_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
a_sign.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
a_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||||
a_sign.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
a_sign.o: ../cryptlib.h
|
||||||
a_sign.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
|
||||||
a_strex.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
a_strex.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
a_strex.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
a_strex.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||||
a_strex.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
a_strex.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||||
@@ -317,12 +314,11 @@ a_strex.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|||||||
a_strex.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
a_strex.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
a_strex.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
a_strex.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||||
a_strex.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
a_strex.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
a_strex.o: ../../include/openssl/rijndael-alg-fst.h
|
a_strex.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
a_strex.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
a_strex.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
a_strex.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
a_strex.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
a_strex.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
a_strex.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||||
a_strex.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
a_strex.o: charmap.h
|
||||||
a_strex.o: ../../include/openssl/x509_vfy.h charmap.h
|
|
||||||
a_strnid.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
a_strnid.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
a_strnid.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
a_strnid.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||||
a_strnid.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
a_strnid.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||||
@@ -378,9 +374,7 @@ a_verify.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|||||||
a_verify.o: ../../include/openssl/opensslconf.h
|
a_verify.o: ../../include/openssl/opensslconf.h
|
||||||
a_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
a_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
a_verify.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
a_verify.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
a_verify.o: ../../include/openssl/rc5.h
|
a_verify.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
a_verify.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
a_verify.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
a_verify.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
a_verify.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
a_verify.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
a_verify.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
a_verify.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
a_verify.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -459,8 +453,7 @@ d2i_pr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
|||||||
d2i_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
d2i_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
d2i_pr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
d2i_pr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
d2i_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
d2i_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
d2i_pr.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
d2i_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
d2i_pr.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
d2i_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
d2i_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
d2i_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
d2i_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
d2i_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
d2i_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
@@ -477,8 +470,7 @@ d2i_pu.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
|||||||
d2i_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
d2i_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
d2i_pu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
d2i_pu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
d2i_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
d2i_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
d2i_pu.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
d2i_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
d2i_pu.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
d2i_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
d2i_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
d2i_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
d2i_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
d2i_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
d2i_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
@@ -589,8 +581,7 @@ i2d_pr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
|||||||
i2d_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
i2d_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
i2d_pr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
i2d_pr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
i2d_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
i2d_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
i2d_pr.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
i2d_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
i2d_pr.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
i2d_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
i2d_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
i2d_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
i2d_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
i2d_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
i2d_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
@@ -607,8 +598,7 @@ i2d_pu.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
|||||||
i2d_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
i2d_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
i2d_pu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
i2d_pu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
i2d_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
i2d_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
i2d_pu.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
i2d_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
i2d_pu.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
i2d_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
i2d_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
i2d_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
i2d_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
i2d_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
i2d_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
@@ -668,8 +658,7 @@ n_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
n_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
n_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
n_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
n_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
n_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
n_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
n_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
n_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
n_pkey.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
n_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
n_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
n_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
n_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
n_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
n_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -688,12 +677,10 @@ nsseq.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|||||||
nsseq.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
nsseq.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
nsseq.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
nsseq.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||||
nsseq.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
nsseq.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
nsseq.o: ../../include/openssl/rijndael-alg-fst.h
|
nsseq.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
nsseq.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
nsseq.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
nsseq.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
nsseq.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
nsseq.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
nsseq.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||||
nsseq.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
|
||||||
nsseq.o: ../../include/openssl/x509_vfy.h
|
|
||||||
p5_pbe.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
p5_pbe.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||||
p5_pbe.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
p5_pbe.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||||
p5_pbe.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
p5_pbe.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||||
@@ -709,12 +696,11 @@ p5_pbe.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
|||||||
p5_pbe.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p5_pbe.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p5_pbe.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
p5_pbe.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||||
p5_pbe.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
p5_pbe.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
p5_pbe.o: ../../include/openssl/rijndael-alg-fst.h
|
p5_pbe.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
p5_pbe.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
p5_pbe.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
p5_pbe.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p5_pbe.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
p5_pbe.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p5_pbe.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||||
p5_pbe.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p5_pbe.o: ../cryptlib.h
|
||||||
p5_pbe.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
|
||||||
p5_pbev2.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
p5_pbev2.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||||
p5_pbev2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
p5_pbev2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||||
p5_pbev2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
p5_pbev2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||||
@@ -730,12 +716,11 @@ p5_pbev2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
|||||||
p5_pbev2.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p5_pbev2.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p5_pbev2.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
p5_pbev2.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||||
p5_pbev2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
p5_pbev2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
p5_pbev2.o: ../../include/openssl/rijndael-alg-fst.h
|
p5_pbev2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
p5_pbev2.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
p5_pbev2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
p5_pbev2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p5_pbev2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
p5_pbev2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p5_pbev2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||||
p5_pbev2.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p5_pbev2.o: ../cryptlib.h
|
||||||
p5_pbev2.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
|
||||||
p7_dgst.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
p7_dgst.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||||
p7_dgst.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
p7_dgst.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||||
p7_dgst.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
p7_dgst.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||||
@@ -750,8 +735,7 @@ p7_dgst.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_dgst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_dgst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_dgst.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_dgst.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_dgst.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
p7_dgst.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_dgst.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_dgst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_dgst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_dgst.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_dgst.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -770,8 +754,7 @@ p7_enc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_enc.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_enc.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_enc.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
p7_enc.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_enc.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_enc.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_enc.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_enc.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_enc.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -790,9 +773,7 @@ p7_enc_c.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_enc_c.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_enc_c.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_enc_c.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_enc_c.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_enc_c.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_enc_c.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_enc_c.o: ../../include/openssl/rc5.h
|
p7_enc_c.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_enc_c.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
p7_enc_c.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_enc_c.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_enc_c.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_enc_c.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_enc_c.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_enc_c.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_enc_c.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -811,8 +792,7 @@ p7_evp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_evp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_evp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_evp.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_evp.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_evp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_evp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_evp.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
p7_evp.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_evp.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_evp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_evp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_evp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_evp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_evp.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_evp.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -831,8 +811,7 @@ p7_i_s.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_i_s.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_i_s.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_i_s.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_i_s.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_i_s.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_i_s.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_i_s.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
p7_i_s.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_i_s.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_i_s.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_i_s.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_i_s.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_i_s.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_i_s.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_i_s.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -851,8 +830,7 @@ p7_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
p7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_lib.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -871,9 +849,7 @@ p7_recip.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_recip.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_recip.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_recip.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_recip.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_recip.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_recip.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_recip.o: ../../include/openssl/rc5.h
|
p7_recip.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_recip.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
p7_recip.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_recip.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_recip.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_recip.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_recip.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_recip.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_recip.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -892,8 +868,7 @@ p7_s_e.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_s_e.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_s_e.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_s_e.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_s_e.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_s_e.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_s_e.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_s_e.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
p7_s_e.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_s_e.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_s_e.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_s_e.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_s_e.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_s_e.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_s_e.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_s_e.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -912,9 +887,7 @@ p7_signd.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_signd.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_signd.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_signd.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_signd.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_signd.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_signd.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_signd.o: ../../include/openssl/rc5.h
|
p7_signd.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_signd.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
p7_signd.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_signd.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_signd.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_signd.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_signd.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_signd.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_signd.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -933,9 +906,7 @@ p7_signi.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p7_signi.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p7_signi.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p7_signi.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p7_signi.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p7_signi.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p7_signi.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p7_signi.o: ../../include/openssl/rc5.h
|
p7_signi.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p7_signi.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
p7_signi.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p7_signi.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p7_signi.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p7_signi.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p7_signi.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p7_signi.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p7_signi.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -954,8 +925,7 @@ p8_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
p8_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
p8_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
p8_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
p8_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
p8_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
p8_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
p8_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
p8_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
p8_pkey.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
p8_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
p8_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
p8_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
p8_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
p8_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
p8_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -966,17 +936,15 @@ t_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
|||||||
t_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
t_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
||||||
t_bitst.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
t_bitst.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
||||||
t_bitst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
t_bitst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
||||||
t_bitst.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
t_bitst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||||
t_bitst.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
t_bitst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
t_bitst.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
t_bitst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
t_bitst.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
t_bitst.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
t_bitst.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
t_bitst.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
t_bitst.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
t_bitst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
t_bitst.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
t_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
t_bitst.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
t_bitst.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
t_bitst.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
t_bitst.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
t_bitst.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
t_bitst.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
t_bitst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
t_bitst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
t_bitst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
t_bitst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
t_bitst.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
t_bitst.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -988,17 +956,15 @@ t_crl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
|||||||
t_crl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
t_crl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
||||||
t_crl.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
t_crl.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
||||||
t_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
t_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
||||||
t_crl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
t_crl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||||
t_crl.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
t_crl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
t_crl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
t_crl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
t_crl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
t_crl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
t_crl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
t_crl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
t_crl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
t_crl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
t_crl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
t_crl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
t_crl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
t_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
t_crl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
t_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
t_crl.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
t_crl.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
t_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
t_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
t_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
t_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
t_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
t_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1019,17 +985,15 @@ t_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
|||||||
t_req.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
t_req.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
||||||
t_req.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
t_req.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
||||||
t_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
t_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
||||||
t_req.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
t_req.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||||
t_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
t_req.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
t_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
t_req.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
t_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
t_req.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
t_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
t_req.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
t_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
t_req.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
t_req.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
t_req.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
t_req.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
t_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
t_req.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
t_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
t_req.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
t_req.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
t_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
t_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
t_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
t_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
t_req.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
t_req.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1049,8 +1013,7 @@ t_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
t_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
t_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
t_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
t_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
t_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
t_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
t_spki.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
t_spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
t_spki.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
t_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
t_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
t_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
t_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
t_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
t_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1061,17 +1024,15 @@ t_x509.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
|||||||
t_x509.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
t_x509.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
||||||
t_x509.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
t_x509.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
||||||
t_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
t_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
||||||
t_x509.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
t_x509.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||||
t_x509.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
t_x509.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
t_x509.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
t_x509.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
t_x509.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
t_x509.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
t_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
t_x509.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
t_x509.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
t_x509.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
t_x509.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
t_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
t_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
t_x509.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
t_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
t_x509.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
t_x509.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
t_x509.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
t_x509.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
t_x509.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
t_x509.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
t_x509.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
t_x509.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
t_x509.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1091,8 +1052,7 @@ t_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
t_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
t_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
t_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
t_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
t_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
t_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
t_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
t_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
t_x509a.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
t_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
t_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
t_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
t_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
t_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
t_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1111,8 +1071,7 @@ x_algor.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_algor.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_algor.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_algor.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_algor.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_algor.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_algor.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_algor.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_algor.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_algor.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_algor.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_algor.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_algor.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_algor.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_algor.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_algor.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1131,9 +1090,7 @@ x_attrib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_attrib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_attrib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_attrib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_attrib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_attrib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_attrib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_attrib.o: ../../include/openssl/rc5.h
|
x_attrib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_attrib.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
x_attrib.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_attrib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_attrib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_attrib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_attrib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_attrib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_attrib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1152,8 +1109,7 @@ x_cinf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_cinf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_cinf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_cinf.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_cinf.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_cinf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_cinf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_cinf.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_cinf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_cinf.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_cinf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_cinf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_cinf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_cinf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_cinf.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_cinf.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1172,8 +1128,7 @@ x_crl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_crl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_crl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_crl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_crl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_crl.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_crl.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1192,8 +1147,7 @@ x_exten.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_exten.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_exten.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_exten.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_exten.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_exten.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_exten.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_exten.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_exten.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_exten.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_exten.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_exten.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_exten.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_exten.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_exten.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_exten.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1212,8 +1166,7 @@ x_info.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_info.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_info.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_info.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_info.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_info.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_info.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_info.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1232,8 +1185,7 @@ x_name.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_name.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_name.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_name.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_name.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_name.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_name.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_name.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_name.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_name.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_name.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_name.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_name.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_name.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_name.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_name.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1252,8 +1204,7 @@ x_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_pkey.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1272,9 +1223,7 @@ x_pubkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_pubkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_pubkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_pubkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_pubkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_pubkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_pubkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_pubkey.o: ../../include/openssl/rc5.h
|
x_pubkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_pubkey.o: ../../include/openssl/rijndael-alg-fst.h
|
|
||||||
x_pubkey.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_pubkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_pubkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_pubkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_pubkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_pubkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_pubkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1293,8 +1242,7 @@ x_req.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_req.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_req.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_req.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_req.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_req.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_req.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_req.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_req.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1313,8 +1261,7 @@ x_sig.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_sig.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_sig.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_sig.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_sig.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_sig.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_sig.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_sig.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_sig.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_sig.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_sig.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_sig.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_sig.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_sig.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_sig.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_sig.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1333,8 +1280,7 @@ x_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_spki.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_spki.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1353,8 +1299,7 @@ x_val.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_val.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_val.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_val.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_val.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_val.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_val.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_val.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_val.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_val.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_val.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_val.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_val.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_val.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_val.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_val.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
@@ -1365,22 +1310,20 @@ x_x509.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
|||||||
x_x509.o: ../../include/openssl/cast.h ../../include/openssl/conf.h
|
x_x509.o: ../../include/openssl/cast.h ../../include/openssl/conf.h
|
||||||
x_x509.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
x_x509.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
x_x509.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
x_x509.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||||
x_x509.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h
|
x_x509.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
x_x509.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
x_x509.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||||
x_x509.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
x_x509.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||||
x_x509.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
x_x509.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||||
x_x509.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
x_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||||
x_x509.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
x_x509.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
x_x509.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_x509.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
x_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||||
x_x509.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
x_x509.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_x509.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
x_x509.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
x_x509.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
x_x509.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_x509.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
x_x509.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_x509.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||||
x_x509.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_x509.o: ../../include/openssl/x509v3.h ../cryptlib.h
|
||||||
x_x509.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
|
|
||||||
x_x509.o: ../cryptlib.h
|
|
||||||
x_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
x_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||||
x_x509a.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
x_x509a.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||||
x_x509a.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
x_x509a.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||||
@@ -1395,8 +1338,7 @@ x_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
|||||||
x_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
x_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
x_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
x_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||||
x_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
x_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
x_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
x_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
x_x509a.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
x_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
x_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
x_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
x_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
x_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
x_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||||
|
|||||||
@@ -224,6 +224,7 @@ int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value)
|
|||||||
w=n/8;
|
w=n/8;
|
||||||
v=1<<(7-(n&0x07));
|
v=1<<(7-(n&0x07));
|
||||||
iv= ~v;
|
iv= ~v;
|
||||||
|
if (!value) v=0;
|
||||||
|
|
||||||
a->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); /* clear, set on write */
|
a->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); /* clear, set on write */
|
||||||
|
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,
|
|||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
#if defined(THREADS) && !defined(WIN32)
|
#if defined(THREADS) && !defined(WIN32) && ! defined(_DARWIN)
|
||||||
gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */
|
gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */
|
||||||
ts=&data;
|
ts=&data;
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -491,24 +491,12 @@ static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
|
|||||||
|
|
||||||
int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags)
|
int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags)
|
||||||
{
|
{
|
||||||
if(flags == XN_FLAG_COMPAT)
|
|
||||||
return X509_NAME_print(out, nm, indent);
|
|
||||||
return do_name_ex(send_bio_chars, out, nm, indent, flags);
|
return do_name_ex(send_bio_chars, out, nm, indent, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags)
|
int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags)
|
||||||
{
|
{
|
||||||
if(flags == XN_FLAG_COMPAT)
|
|
||||||
{
|
|
||||||
BIO *btmp;
|
|
||||||
int ret;
|
|
||||||
btmp = BIO_new_fp(fp, BIO_NOCLOSE);
|
|
||||||
if(!btmp) return -1;
|
|
||||||
ret = X509_NAME_print(btmp, nm, indent);
|
|
||||||
BIO_free(btmp);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
return do_name_ex(send_fp_chars, fp, nm, indent, flags);
|
return do_name_ex(send_fp_chars, fp, nm, indent, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -105,9 +105,9 @@ int ASN1_STRING_set_default_mask_asc(char *p)
|
|||||||
mask = strtoul(p + 5, &end, 0);
|
mask = strtoul(p + 5, &end, 0);
|
||||||
if(*end) return 0;
|
if(*end) return 0;
|
||||||
} else if(!strcmp(p, "nombstr"))
|
} else if(!strcmp(p, "nombstr"))
|
||||||
mask = ~(B_ASN1_BMPSTRING|B_ASN1_UTF8STRING);
|
mask = ~((unsigned long)(B_ASN1_BMPSTRING|B_ASN1_UTF8STRING));
|
||||||
else if(!strcmp(p, "pkix"))
|
else if(!strcmp(p, "pkix"))
|
||||||
mask = ~B_ASN1_T61STRING;
|
mask = ~((unsigned long)B_ASN1_T61STRING);
|
||||||
else if(!strcmp(p, "utf8only")) mask = B_ASN1_UTF8STRING;
|
else if(!strcmp(p, "utf8only")) mask = B_ASN1_UTF8STRING;
|
||||||
else if(!strcmp(p, "default"))
|
else if(!strcmp(p, "default"))
|
||||||
mask = 0xFFFFFFFFL;
|
mask = 0xFFFFFFFFL;
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ ASN1_TIME *d2i_ASN1_TIME(ASN1_TIME **a, unsigned char **pp, long length)
|
|||||||
ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
|
ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
|
||||||
{
|
{
|
||||||
struct tm *ts;
|
struct tm *ts;
|
||||||
#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
|
#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__) && !defined(_DARWIN)
|
||||||
struct tm data;
|
struct tm data;
|
||||||
|
|
||||||
gmtime_r(&t,&data);
|
gmtime_r(&t,&data);
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
|
|||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
|
#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__) && !defined(_DARWIN)
|
||||||
gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */
|
gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */
|
||||||
ts=&data;
|
ts=&data;
|
||||||
#else
|
#else
|
||||||
@@ -286,7 +286,7 @@ int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t)
|
|||||||
|
|
||||||
t -= offset*60; /* FIXME: may overflow in extreme cases */
|
t -= offset*60; /* FIXME: may overflow in extreme cases */
|
||||||
|
|
||||||
#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
|
#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__) && !defined(_DARWIN)
|
||||||
{ struct tm data; gmtime_r(&t, &data); tm = &data; }
|
{ struct tm data; gmtime_r(&t, &data); tm = &data; }
|
||||||
#else
|
#else
|
||||||
tm = gmtime(&t);
|
tm = gmtime(&t);
|
||||||
|
|||||||
@@ -834,8 +834,6 @@ void ASN1_HEADER_free(ASN1_HEADER *a);
|
|||||||
|
|
||||||
int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s);
|
int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s);
|
||||||
|
|
||||||
void ERR_load_ASN1_strings(void);
|
|
||||||
|
|
||||||
/* Not used that much at this point, except for the first two */
|
/* Not used that much at this point, except for the first two */
|
||||||
ASN1_METHOD *X509_asn1_meth(void);
|
ASN1_METHOD *X509_asn1_meth(void);
|
||||||
ASN1_METHOD *RSAPrivateKey_asn1_meth(void);
|
ASN1_METHOD *RSAPrivateKey_asn1_meth(void);
|
||||||
@@ -877,6 +875,7 @@ void ASN1_STRING_TABLE_cleanup(void);
|
|||||||
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
||||||
* made after this point may be overwritten when the script is next run.
|
* made after this point may be overwritten when the script is next run.
|
||||||
*/
|
*/
|
||||||
|
void ERR_load_ASN1_strings(void);
|
||||||
|
|
||||||
/* Error codes for the ASN1 functions. */
|
/* Error codes for the ASN1 functions. */
|
||||||
|
|
||||||
@@ -956,21 +955,6 @@ void ASN1_STRING_TABLE_cleanup(void);
|
|||||||
#define ASN1_F_D2I_NETSCAPE_SPKAC 143
|
#define ASN1_F_D2I_NETSCAPE_SPKAC 143
|
||||||
#define ASN1_F_D2I_NETSCAPE_SPKI 144
|
#define ASN1_F_D2I_NETSCAPE_SPKI 144
|
||||||
#define ASN1_F_D2I_NOTICEREF 268
|
#define ASN1_F_D2I_NOTICEREF 268
|
||||||
#define ASN1_F_D2I_OCSP_BASICRESP 293
|
|
||||||
#define ASN1_F_D2I_OCSP_CERTID 294
|
|
||||||
#define ASN1_F_D2I_OCSP_CERTSTATUS 295
|
|
||||||
#define ASN1_F_D2I_OCSP_CRLID 296
|
|
||||||
#define ASN1_F_D2I_OCSP_ONEREQ 297
|
|
||||||
#define ASN1_F_D2I_OCSP_REQINFO 298
|
|
||||||
#define ASN1_F_D2I_OCSP_REQUEST 299
|
|
||||||
#define ASN1_F_D2I_OCSP_RESPBYTES 300
|
|
||||||
#define ASN1_F_D2I_OCSP_RESPDATA 301
|
|
||||||
#define ASN1_F_D2I_OCSP_RESPID 302
|
|
||||||
#define ASN1_F_D2I_OCSP_RESPONSE 303
|
|
||||||
#define ASN1_F_D2I_OCSP_REVOKEDINFO 304
|
|
||||||
#define ASN1_F_D2I_OCSP_SERVICELOC 305
|
|
||||||
#define ASN1_F_D2I_OCSP_SIGNATURE 306
|
|
||||||
#define ASN1_F_D2I_OCSP_SINGLERESP 307
|
|
||||||
#define ASN1_F_D2I_OTHERNAME 287
|
#define ASN1_F_D2I_OTHERNAME 287
|
||||||
#define ASN1_F_D2I_PBE2PARAM 262
|
#define ASN1_F_D2I_PBE2PARAM 262
|
||||||
#define ASN1_F_D2I_PBEPARAM 249
|
#define ASN1_F_D2I_PBEPARAM 249
|
||||||
@@ -1042,21 +1026,6 @@ void ASN1_STRING_TABLE_cleanup(void);
|
|||||||
#define ASN1_F_NETSCAPE_SPKAC_NEW 190
|
#define ASN1_F_NETSCAPE_SPKAC_NEW 190
|
||||||
#define ASN1_F_NETSCAPE_SPKI_NEW 191
|
#define ASN1_F_NETSCAPE_SPKI_NEW 191
|
||||||
#define ASN1_F_NOTICEREF_NEW 272
|
#define ASN1_F_NOTICEREF_NEW 272
|
||||||
#define ASN1_F_OCSP_BASICRESP_NEW 308
|
|
||||||
#define ASN1_F_OCSP_CERTID_NEW 309
|
|
||||||
#define ASN1_F_OCSP_CERTSTATUS_NEW 310
|
|
||||||
#define ASN1_F_OCSP_CRLID_NEW 311
|
|
||||||
#define ASN1_F_OCSP_ONEREQ_NEW 312
|
|
||||||
#define ASN1_F_OCSP_REQINFO_NEW 313
|
|
||||||
#define ASN1_F_OCSP_REQUEST_NEW 314
|
|
||||||
#define ASN1_F_OCSP_RESPBYTES_NEW 315
|
|
||||||
#define ASN1_F_OCSP_RESPDATA_NEW 316
|
|
||||||
#define ASN1_F_OCSP_RESPID_NEW 317
|
|
||||||
#define ASN1_F_OCSP_RESPONSE_NEW 318
|
|
||||||
#define ASN1_F_OCSP_REVOKEDINFO_NEW 319
|
|
||||||
#define ASN1_F_OCSP_SERVICELOC_NEW 320
|
|
||||||
#define ASN1_F_OCSP_SIGNATURE_NEW 321
|
|
||||||
#define ASN1_F_OCSP_SINGLERESP_NEW 322
|
|
||||||
#define ASN1_F_OTHERNAME_NEW 288
|
#define ASN1_F_OTHERNAME_NEW 288
|
||||||
#define ASN1_F_PBE2PARAM_NEW 264
|
#define ASN1_F_PBE2PARAM_NEW 264
|
||||||
#define ASN1_F_PBEPARAM_NEW 251
|
#define ASN1_F_PBEPARAM_NEW 251
|
||||||
@@ -1178,4 +1147,3 @@ void ASN1_STRING_TABLE_cleanup(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -141,21 +141,6 @@ static ERR_STRING_DATA ASN1_str_functs[]=
|
|||||||
{ERR_PACK(0,ASN1_F_D2I_NETSCAPE_SPKAC,0), "d2i_NETSCAPE_SPKAC"},
|
{ERR_PACK(0,ASN1_F_D2I_NETSCAPE_SPKAC,0), "d2i_NETSCAPE_SPKAC"},
|
||||||
{ERR_PACK(0,ASN1_F_D2I_NETSCAPE_SPKI,0), "d2i_NETSCAPE_SPKI"},
|
{ERR_PACK(0,ASN1_F_D2I_NETSCAPE_SPKI,0), "d2i_NETSCAPE_SPKI"},
|
||||||
{ERR_PACK(0,ASN1_F_D2I_NOTICEREF,0), "d2i_NOTICEREF"},
|
{ERR_PACK(0,ASN1_F_D2I_NOTICEREF,0), "d2i_NOTICEREF"},
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_BASICRESP,0), "d2i_OCSP_BASICRESP"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_CERTID,0), "d2i_OCSP_CERTID"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_CERTSTATUS,0), "d2i_OCSP_CERTSTATUS"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_CRLID,0), "d2i_OCSP_CRLID"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_ONEREQ,0), "d2i_OCSP_ONEREQ"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_REQINFO,0), "d2i_OCSP_REQINFO"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_REQUEST,0), "d2i_OCSP_REQUEST"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_RESPBYTES,0), "d2i_OCSP_RESPBYTES"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_RESPDATA,0), "d2i_OCSP_RESPDATA"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_RESPID,0), "d2i_OCSP_RESPID"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_RESPONSE,0), "d2i_OCSP_RESPONSE"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_REVOKEDINFO,0), "d2i_OCSP_REVOKEDINFO"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_SERVICELOC,0), "d2i_OCSP_SERVICELOC"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_SIGNATURE,0), "d2i_OCSP_SIGNATURE"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OCSP_SINGLERESP,0), "d2i_OCSP_SINGLERESP"},
|
|
||||||
{ERR_PACK(0,ASN1_F_D2I_OTHERNAME,0), "d2i_OTHERNAME"},
|
{ERR_PACK(0,ASN1_F_D2I_OTHERNAME,0), "d2i_OTHERNAME"},
|
||||||
{ERR_PACK(0,ASN1_F_D2I_PBE2PARAM,0), "d2i_PBE2PARAM"},
|
{ERR_PACK(0,ASN1_F_D2I_PBE2PARAM,0), "d2i_PBE2PARAM"},
|
||||||
{ERR_PACK(0,ASN1_F_D2I_PBEPARAM,0), "d2i_PBEPARAM"},
|
{ERR_PACK(0,ASN1_F_D2I_PBEPARAM,0), "d2i_PBEPARAM"},
|
||||||
@@ -227,21 +212,6 @@ static ERR_STRING_DATA ASN1_str_functs[]=
|
|||||||
{ERR_PACK(0,ASN1_F_NETSCAPE_SPKAC_NEW,0), "NETSCAPE_SPKAC_new"},
|
{ERR_PACK(0,ASN1_F_NETSCAPE_SPKAC_NEW,0), "NETSCAPE_SPKAC_new"},
|
||||||
{ERR_PACK(0,ASN1_F_NETSCAPE_SPKI_NEW,0), "NETSCAPE_SPKI_new"},
|
{ERR_PACK(0,ASN1_F_NETSCAPE_SPKI_NEW,0), "NETSCAPE_SPKI_new"},
|
||||||
{ERR_PACK(0,ASN1_F_NOTICEREF_NEW,0), "NOTICEREF_new"},
|
{ERR_PACK(0,ASN1_F_NOTICEREF_NEW,0), "NOTICEREF_new"},
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_BASICRESP_NEW,0), "OCSP_BASICRESP_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_CERTID_NEW,0), "OCSP_CERTID_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_CERTSTATUS_NEW,0), "OCSP_CERTSTATUS_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_CRLID_NEW,0), "OCSP_CRLID_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_ONEREQ_NEW,0), "OCSP_ONEREQ_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_REQINFO_NEW,0), "OCSP_REQINFO_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_REQUEST_NEW,0), "OCSP_REQUEST_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_RESPBYTES_NEW,0), "OCSP_RESPBYTES_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_RESPDATA_NEW,0), "OCSP_RESPDATA_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_RESPID_NEW,0), "OCSP_RESPID_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_RESPONSE_NEW,0), "OCSP_RESPONSE_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_REVOKEDINFO_NEW,0), "OCSP_REVOKEDINFO_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_SERVICELOC_NEW,0), "OCSP_SERVICELOC_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_SIGNATURE_NEW,0), "OCSP_SIGNATURE_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OCSP_SINGLERESP_NEW,0), "OCSP_SINGLERESP_new"},
|
|
||||||
{ERR_PACK(0,ASN1_F_OTHERNAME_NEW,0), "OTHERNAME_new"},
|
{ERR_PACK(0,ASN1_F_OTHERNAME_NEW,0), "OTHERNAME_new"},
|
||||||
{ERR_PACK(0,ASN1_F_PBE2PARAM_NEW,0), "PBE2PARAM_new"},
|
{ERR_PACK(0,ASN1_F_PBE2PARAM_NEW,0), "PBE2PARAM_new"},
|
||||||
{ERR_PACK(0,ASN1_F_PBEPARAM_NEW,0), "PBEPARAM_new"},
|
{ERR_PACK(0,ASN1_F_PBEPARAM_NEW,0), "PBEPARAM_new"},
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ int asn1_GetSequence(ASN1_CTX *c, long *length)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
if (c->inf == (1|V_ASN1_CONSTRUCTED))
|
if (c->inf == (1|V_ASN1_CONSTRUCTED))
|
||||||
c->slen= *length+ *(c->pp)-c->p;
|
c->slen= *length;
|
||||||
c->eos=0;
|
c->eos=0;
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ extern "C" {
|
|||||||
ASN1_CTX c; \
|
ASN1_CTX c; \
|
||||||
type ret=NULL; \
|
type ret=NULL; \
|
||||||
\
|
\
|
||||||
c.pp=(unsigned char **)pp; \
|
c.pp=pp; \
|
||||||
c.q= *(unsigned char **)pp; \
|
c.q= *pp; \
|
||||||
c.error=ERR_R_NESTED_ASN1_ERROR; \
|
c.error=ERR_R_NESTED_ASN1_ERROR; \
|
||||||
if ((a == NULL) || ((*a) == NULL)) \
|
if ((a == NULL) || ((*a) == NULL)) \
|
||||||
{ if ((ret=(type)func()) == NULL) \
|
{ if ((ret=(type)func()) == NULL) \
|
||||||
@@ -85,13 +85,13 @@ extern "C" {
|
|||||||
else ret=(*a);
|
else ret=(*a);
|
||||||
|
|
||||||
#define M_ASN1_D2I_Init() \
|
#define M_ASN1_D2I_Init() \
|
||||||
c.p= *(unsigned char **)pp; \
|
c.p= *pp; \
|
||||||
c.max=(length == 0)?0:(c.p+length);
|
c.max=(length == 0)?0:(c.p+length);
|
||||||
|
|
||||||
#define M_ASN1_D2I_Finish_2(a) \
|
#define M_ASN1_D2I_Finish_2(a) \
|
||||||
if (!asn1_Finish(&c)) \
|
if (!asn1_Finish(&c)) \
|
||||||
{ c.line=__LINE__; goto err; } \
|
{ c.line=__LINE__; goto err; } \
|
||||||
*(unsigned char **)pp=c.p; \
|
*pp=c.p; \
|
||||||
if (a != NULL) (*a)=ret; \
|
if (a != NULL) (*a)=ret; \
|
||||||
return(ret);
|
return(ret);
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ extern "C" {
|
|||||||
M_ASN1_D2I_Finish_2(a); \
|
M_ASN1_D2I_Finish_2(a); \
|
||||||
err:\
|
err:\
|
||||||
ASN1_MAC_H_err((e),c.error,c.line); \
|
ASN1_MAC_H_err((e),c.error,c.line); \
|
||||||
asn1_add_error(*(unsigned char **)pp,(int)(c.q- *pp)); \
|
asn1_add_error(*pp,(int)(c.q- *pp)); \
|
||||||
if ((ret != NULL) && ((a == NULL) || (*a != ret))) func(ret); \
|
if ((ret != NULL) && ((a == NULL) || (*a != ret))) func(ret); \
|
||||||
return(NULL)
|
return(NULL)
|
||||||
|
|
||||||
@@ -196,6 +196,9 @@ err:\
|
|||||||
if ((a != NULL) && (sk_##type##_num(a) != 0)) \
|
if ((a != NULL) && (sk_##type##_num(a) != 0)) \
|
||||||
M_ASN1_I2D_put_SEQUENCE_type(type,a,f);
|
M_ASN1_I2D_put_SEQUENCE_type(type,a,f);
|
||||||
|
|
||||||
|
#define M_ASN1_I2D_put_SEQUENCE_opt_ex_type(type,a,f) \
|
||||||
|
if (a) M_ASN1_I2D_put_SEQUENCE_type(type,a,f);
|
||||||
|
|
||||||
#define M_ASN1_D2I_get_IMP_set_opt(b,func,free_func,tag) \
|
#define M_ASN1_D2I_get_IMP_set_opt(b,func,free_func,tag) \
|
||||||
if ((c.slen != 0) && \
|
if ((c.slen != 0) && \
|
||||||
(M_ASN1_next == \
|
(M_ASN1_next == \
|
||||||
@@ -389,6 +392,9 @@ err:\
|
|||||||
if ((a != NULL) && (sk_##type##_num(a) != 0)) \
|
if ((a != NULL) && (sk_##type##_num(a) != 0)) \
|
||||||
M_ASN1_I2D_len_SEQUENCE_type(type,a,f);
|
M_ASN1_I2D_len_SEQUENCE_type(type,a,f);
|
||||||
|
|
||||||
|
#define M_ASN1_I2D_len_SEQUENCE_opt_ex_type(type,a,f) \
|
||||||
|
if (a) M_ASN1_I2D_len_SEQUENCE_type(type,a,f);
|
||||||
|
|
||||||
#define M_ASN1_I2D_len_IMP_SET(a,f,x) \
|
#define M_ASN1_I2D_len_IMP_SET(a,f,x) \
|
||||||
ret+=i2d_ASN1_SET(a,NULL,f,x,V_ASN1_CONTEXT_SPECIFIC,IS_SET);
|
ret+=i2d_ASN1_SET(a,NULL,f,x,V_ASN1_CONTEXT_SPECIFIC,IS_SET);
|
||||||
|
|
||||||
@@ -452,6 +458,15 @@ err:\
|
|||||||
ret+=ASN1_object_size(1,v,mtag); \
|
ret+=ASN1_object_size(1,v,mtag); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define M_ASN1_I2D_len_EXP_SEQUENCE_opt_ex_type(type,a,f,mtag,tag,v) \
|
||||||
|
if (a)\
|
||||||
|
{ \
|
||||||
|
v=i2d_ASN1_SET_OF_##type(a,NULL,f,tag, \
|
||||||
|
V_ASN1_UNIVERSAL, \
|
||||||
|
IS_SEQUENCE); \
|
||||||
|
ret+=ASN1_object_size(1,v,mtag); \
|
||||||
|
}
|
||||||
|
|
||||||
/* Put Macros */
|
/* Put Macros */
|
||||||
#define M_ASN1_I2D_put(a,f) f(a,&p)
|
#define M_ASN1_I2D_put(a,f) f(a,&p)
|
||||||
|
|
||||||
@@ -536,6 +551,14 @@ err:\
|
|||||||
IS_SEQUENCE); \
|
IS_SEQUENCE); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define M_ASN1_I2D_put_EXP_SEQUENCE_opt_ex_type(type,a,f,mtag,tag,v) \
|
||||||
|
if (a) \
|
||||||
|
{ \
|
||||||
|
ASN1_put_object(&p,1,v,mtag,V_ASN1_CONTEXT_SPECIFIC); \
|
||||||
|
i2d_ASN1_SET_OF_##type(a,&p,f,tag,V_ASN1_UNIVERSAL, \
|
||||||
|
IS_SEQUENCE); \
|
||||||
|
}
|
||||||
|
|
||||||
#define M_ASN1_I2D_seq_total() \
|
#define M_ASN1_I2D_seq_total() \
|
||||||
r=ASN1_object_size(1,ret,V_ASN1_SEQUENCE); \
|
r=ASN1_object_size(1,ret,V_ASN1_SEQUENCE); \
|
||||||
if (pp == NULL) return(r); \
|
if (pp == NULL) return(r); \
|
||||||
|
|||||||
@@ -84,8 +84,7 @@ EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, unsigned char **pp,
|
|||||||
{
|
{
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
case EVP_PKEY_RSA:
|
case EVP_PKEY_RSA:
|
||||||
if ((ret->pkey.rsa=d2i_RSAPrivateKey(NULL,
|
if ((ret->pkey.rsa=d2i_RSAPrivateKey(NULL,pp,length)) == NULL)
|
||||||
(const unsigned char **)pp,length)) == NULL) /* TMP UGLY CAST */
|
|
||||||
{
|
{
|
||||||
ASN1err(ASN1_F_D2I_PRIVATEKEY,ERR_R_ASN1_LIB);
|
ASN1err(ASN1_F_D2I_PRIVATEKEY,ERR_R_ASN1_LIB);
|
||||||
goto err;
|
goto err;
|
||||||
|
|||||||
@@ -84,8 +84,7 @@ EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, unsigned char **pp,
|
|||||||
{
|
{
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
case EVP_PKEY_RSA:
|
case EVP_PKEY_RSA:
|
||||||
if ((ret->pkey.rsa=d2i_RSAPublicKey(NULL,
|
if ((ret->pkey.rsa=d2i_RSAPublicKey(NULL,pp,length)) == NULL)
|
||||||
(const unsigned char **)pp,length)) == NULL) /* TMP UGLY CAST */
|
|
||||||
{
|
{
|
||||||
ASN1err(ASN1_F_D2I_PUBLICKEY,ERR_R_ASN1_LIB);
|
ASN1err(ASN1_F_D2I_PUBLICKEY,ERR_R_ASN1_LIB);
|
||||||
goto err;
|
goto err;
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ ASN1_METHOD *RSAPrivateKey_asn1_meth(void)
|
|||||||
return(&method);
|
return(&method);
|
||||||
}
|
}
|
||||||
|
|
||||||
RSA *d2i_RSAPrivateKey(RSA **a, const unsigned char **pp, long length)
|
RSA *d2i_RSAPrivateKey(RSA **a, unsigned char **pp, long length)
|
||||||
{
|
{
|
||||||
int i=ASN1_R_PARSING;
|
int i=ASN1_R_PARSING;
|
||||||
ASN1_INTEGER *bs=NULL;
|
ASN1_INTEGER *bs=NULL;
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER
|
#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RSA *d2i_RSAPublicKey(RSA **a, const unsigned char **pp, long length)
|
RSA *d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length)
|
||||||
{
|
{
|
||||||
int i=ASN1_R_PARSING;
|
int i=ASN1_R_PARSING;
|
||||||
ASN1_INTEGER *bs=NULL;
|
ASN1_INTEGER *bs=NULL;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/asn1_mac.h>
|
#include <openssl/asn1_mac.h>
|
||||||
|
|
||||||
int i2d_RSAPrivateKey(const RSA *a, unsigned char **pp)
|
int i2d_RSAPrivateKey(RSA *a, unsigned char **pp)
|
||||||
{
|
{
|
||||||
BIGNUM *num[9];
|
BIGNUM *num[9];
|
||||||
unsigned char data[1];
|
unsigned char data[1];
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/asn1_mac.h>
|
#include <openssl/asn1_mac.h>
|
||||||
|
|
||||||
int i2d_RSAPublicKey(const RSA *a, unsigned char **pp)
|
int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
|
||||||
{
|
{
|
||||||
BIGNUM *num[2];
|
BIGNUM *num[2];
|
||||||
ASN1_INTEGER bs;
|
ASN1_INTEGER bs;
|
||||||
|
|||||||
@@ -80,12 +80,12 @@ static NETSCAPE_PKEY *d2i_NETSCAPE_PKEY(NETSCAPE_PKEY **a,unsigned char **pp, lo
|
|||||||
static NETSCAPE_PKEY *NETSCAPE_PKEY_new(void);
|
static NETSCAPE_PKEY *NETSCAPE_PKEY_new(void);
|
||||||
static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *);
|
static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *);
|
||||||
|
|
||||||
int i2d_Netscape_RSA(const RSA *a, unsigned char **pp, int (*cb)())
|
int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
|
||||||
{
|
{
|
||||||
return i2d_RSA_NET(a, pp, cb, 0);
|
return i2d_RSA_NET(a, pp, cb, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int i2d_RSA_NET(const RSA *a, unsigned char **pp, int (*cb)(), int sgckey)
|
int i2d_RSA_NET(RSA *a, unsigned char **pp, int (*cb)(), int sgckey)
|
||||||
{
|
{
|
||||||
int i,j,l[6];
|
int i,j,l[6];
|
||||||
NETSCAPE_PKEY *pkey;
|
NETSCAPE_PKEY *pkey;
|
||||||
@@ -205,18 +205,18 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RSA *d2i_Netscape_RSA(RSA **a, const unsigned char **pp, long length, int (*cb)())
|
RSA *d2i_Netscape_RSA(RSA **a, unsigned char **pp, long length, int (*cb)())
|
||||||
{
|
{
|
||||||
return d2i_RSA_NET(a, pp, length, cb, 0);
|
return d2i_RSA_NET(a, pp, length, cb, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length, int (*cb)(), int sgckey)
|
RSA *d2i_RSA_NET(RSA **a, unsigned char **pp, long length, int (*cb)(), int sgckey)
|
||||||
{
|
{
|
||||||
RSA *ret=NULL;
|
RSA *ret=NULL;
|
||||||
ASN1_OCTET_STRING *os=NULL;
|
ASN1_OCTET_STRING *os=NULL;
|
||||||
ASN1_CTX c;
|
ASN1_CTX c;
|
||||||
|
|
||||||
c.pp=(unsigned char **)pp; /* TMP UGLY CAST */
|
c.pp=pp;
|
||||||
c.error=ASN1_R_DECODING_ERROR;
|
c.error=ASN1_R_DECODING_ERROR;
|
||||||
|
|
||||||
M_ASN1_D2I_Init();
|
M_ASN1_D2I_Init();
|
||||||
@@ -231,8 +231,7 @@ RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length, int (*cb)(), in
|
|||||||
}
|
}
|
||||||
M_ASN1_BIT_STRING_free(os);
|
M_ASN1_BIT_STRING_free(os);
|
||||||
c.q=c.p;
|
c.q=c.p;
|
||||||
if ((ret=d2i_RSA_NET_2(a,(const unsigned char **)&c.p, /* TMP UGLY CAST */
|
if ((ret=d2i_RSA_NET_2(a,&c.p,c.slen,cb, sgckey)) == NULL) goto err;
|
||||||
c.slen,cb, sgckey)) == NULL) goto err;
|
|
||||||
/* Note: some versions of IIS key files use length values that are
|
/* Note: some versions of IIS key files use length values that are
|
||||||
* too small for the surrounding SEQUENCEs. This following line
|
* too small for the surrounding SEQUENCEs. This following line
|
||||||
* effectively disable length checking.
|
* effectively disable length checking.
|
||||||
@@ -242,13 +241,13 @@ RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length, int (*cb)(), in
|
|||||||
M_ASN1_D2I_Finish(a,RSA_free,ASN1_F_D2I_NETSCAPE_RSA);
|
M_ASN1_D2I_Finish(a,RSA_free,ASN1_F_D2I_NETSCAPE_RSA);
|
||||||
}
|
}
|
||||||
|
|
||||||
RSA *d2i_Netscape_RSA_2(RSA **a, const unsigned char **pp, long length,
|
RSA *d2i_Netscape_RSA_2(RSA **a, unsigned char **pp, long length,
|
||||||
int (*cb)())
|
int (*cb)())
|
||||||
{
|
{
|
||||||
return d2i_RSA_NET_2(a, pp, length, cb, 0);
|
return d2i_RSA_NET_2(a, pp, length, cb, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
RSA *d2i_RSA_NET_2(RSA **a, const unsigned char **pp, long length,
|
RSA *d2i_RSA_NET_2(RSA **a, unsigned char **pp, long length,
|
||||||
int (*cb)(), int sgckey)
|
int (*cb)(), int sgckey)
|
||||||
{
|
{
|
||||||
NETSCAPE_PKEY *pkey=NULL;
|
NETSCAPE_PKEY *pkey=NULL;
|
||||||
@@ -262,7 +261,7 @@ RSA *d2i_RSA_NET_2(RSA **a, const unsigned char **pp, long length,
|
|||||||
ASN1_CTX c;
|
ASN1_CTX c;
|
||||||
|
|
||||||
c.error=ERR_R_NESTED_ASN1_ERROR;
|
c.error=ERR_R_NESTED_ASN1_ERROR;
|
||||||
c.pp=(unsigned char **)pp;
|
c.pp=pp;
|
||||||
|
|
||||||
M_ASN1_D2I_Init();
|
M_ASN1_D2I_Init();
|
||||||
M_ASN1_D2I_start_sequence();
|
M_ASN1_D2I_start_sequence();
|
||||||
@@ -311,8 +310,7 @@ RSA *d2i_RSA_NET_2(RSA **a, const unsigned char **pp, long length,
|
|||||||
}
|
}
|
||||||
|
|
||||||
zz=pkey->private_key->data;
|
zz=pkey->private_key->data;
|
||||||
if ((ret=d2i_RSAPrivateKey(a,(const unsigned char **)&zz, /* TMP UGLY CAST */
|
if ((ret=d2i_RSAPrivateKey(a,&zz,pkey->private_key->length)) == NULL)
|
||||||
pkey->private_key->length)) == NULL)
|
|
||||||
{
|
{
|
||||||
ASN1err(ASN1_F_D2I_NETSCAPE_RSA_2,ASN1_R_UNABLE_TO_DECODE_RSA_KEY);
|
ASN1err(ASN1_F_D2I_NETSCAPE_RSA_2,ASN1_R_UNABLE_TO_DECODE_RSA_KEY);
|
||||||
goto err;
|
goto err;
|
||||||
|
|||||||
@@ -307,12 +307,14 @@ PKCS7 *d2i_PKCS7(PKCS7 **a, unsigned char **pp, long length)
|
|||||||
}
|
}
|
||||||
if (Tinf == (1|V_ASN1_CONSTRUCTED))
|
if (Tinf == (1|V_ASN1_CONSTRUCTED))
|
||||||
{
|
{
|
||||||
|
c.q=c.p;
|
||||||
if (!ASN1_check_infinite_end(&c.p,c.slen))
|
if (!ASN1_check_infinite_end(&c.p,c.slen))
|
||||||
{
|
{
|
||||||
c.error=ERR_R_MISSING_ASN1_EOS;
|
c.error=ERR_R_MISSING_ASN1_EOS;
|
||||||
c.line=__LINE__;
|
c.line=__LINE__;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
c.slen-=(c.p-c.q);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ static int print(BIO *fp,const char *str,BIGNUM *num,
|
|||||||
unsigned char *buf,int off);
|
unsigned char *buf,int off);
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
#ifndef NO_FP_API
|
#ifndef NO_FP_API
|
||||||
int RSA_print_fp(FILE *fp, const RSA *x, int off)
|
int RSA_print_fp(FILE *fp, RSA *x, int off)
|
||||||
{
|
{
|
||||||
BIO *b;
|
BIO *b;
|
||||||
int ret;
|
int ret;
|
||||||
@@ -91,7 +91,7 @@ int RSA_print_fp(FILE *fp, const RSA *x, int off)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int RSA_print(BIO *bp, const RSA *x, int off)
|
int RSA_print(BIO *bp, RSA *x, int off)
|
||||||
{
|
{
|
||||||
char str[128];
|
char str[128];
|
||||||
const char *s;
|
const char *s;
|
||||||
|
|||||||
@@ -72,11 +72,6 @@
|
|||||||
|
|
||||||
#ifndef NO_FP_API
|
#ifndef NO_FP_API
|
||||||
int X509_print_fp(FILE *fp, X509 *x)
|
int X509_print_fp(FILE *fp, X509 *x)
|
||||||
{
|
|
||||||
return X509_print_ex_fp(fp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
|
|
||||||
}
|
|
||||||
|
|
||||||
int X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cflag)
|
|
||||||
{
|
{
|
||||||
BIO *b;
|
BIO *b;
|
||||||
int ret;
|
int ret;
|
||||||
@@ -87,23 +82,17 @@ int X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cfla
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
BIO_set_fp(b,fp,BIO_NOCLOSE);
|
BIO_set_fp(b,fp,BIO_NOCLOSE);
|
||||||
ret=X509_print_ex(b, x, nmflag, cflag);
|
ret=X509_print(b, x);
|
||||||
BIO_free(b);
|
BIO_free(b);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int X509_print(BIO *bp, X509 *x)
|
int X509_print(BIO *bp, X509 *x)
|
||||||
{
|
|
||||||
return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
|
|
||||||
}
|
|
||||||
|
|
||||||
int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
|
|
||||||
{
|
{
|
||||||
long l;
|
long l;
|
||||||
int ret=0,i,j,n;
|
int ret=0,i,j,n;
|
||||||
char *m=NULL,*s, mlch = ' ';
|
char *m=NULL,*s;
|
||||||
int nmindent = 0;
|
|
||||||
X509_CINF *ci;
|
X509_CINF *ci;
|
||||||
ASN1_INTEGER *bs;
|
ASN1_INTEGER *bs;
|
||||||
EVP_PKEY *pkey=NULL;
|
EVP_PKEY *pkey=NULL;
|
||||||
@@ -111,127 +100,89 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
|
|||||||
X509_EXTENSION *ex;
|
X509_EXTENSION *ex;
|
||||||
ASN1_STRING *str=NULL;
|
ASN1_STRING *str=NULL;
|
||||||
|
|
||||||
if((nmflags & XN_FLAG_SEP_MASK) == XN_FLAG_SEP_MULTILINE) {
|
|
||||||
mlch = '\n';
|
|
||||||
nmindent = 16;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(nmflags == X509_FLAG_COMPAT)
|
|
||||||
nmindent = 16;
|
|
||||||
|
|
||||||
ci=x->cert_info;
|
ci=x->cert_info;
|
||||||
if(!(cflag & X509_FLAG_NO_HEADER))
|
if (BIO_write(bp,"Certificate:\n",13) <= 0) goto err;
|
||||||
{
|
if (BIO_write(bp," Data:\n",10) <= 0) goto err;
|
||||||
if (BIO_write(bp,"Certificate:\n",13) <= 0) goto err;
|
l=X509_get_version(x);
|
||||||
if (BIO_write(bp," Data:\n",10) <= 0) goto err;
|
if (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\n","",l+1,l) <= 0) goto err;
|
||||||
}
|
if (BIO_write(bp," Serial Number:",22) <= 0) goto err;
|
||||||
if(!(cflag & X509_FLAG_NO_VERSION))
|
|
||||||
{
|
|
||||||
l=X509_get_version(x);
|
|
||||||
if (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\n","",l+1,l) <= 0) goto err;
|
|
||||||
}
|
|
||||||
if(!(cflag & X509_FLAG_NO_SERIAL))
|
|
||||||
{
|
|
||||||
|
|
||||||
if (BIO_write(bp," Serial Number:",22) <= 0) goto err;
|
bs=X509_get_serialNumber(x);
|
||||||
|
if (bs->length <= 4)
|
||||||
bs=X509_get_serialNumber(x);
|
{
|
||||||
if (bs->length <= 4)
|
l=ASN1_INTEGER_get(bs);
|
||||||
|
if (l < 0)
|
||||||
{
|
{
|
||||||
l=ASN1_INTEGER_get(bs);
|
l= -l;
|
||||||
if (l < 0)
|
neg="-";
|
||||||
{
|
}
|
||||||
l= -l;
|
else
|
||||||
neg="-";
|
neg="";
|
||||||
}
|
if (BIO_printf(bp," %s%lu (%s0x%lx)\n",neg,l,neg,l) <= 0)
|
||||||
else
|
goto err;
|
||||||
neg="";
|
}
|
||||||
if (BIO_printf(bp," %s%lu (%s0x%lx)\n",neg,l,neg,l) <= 0)
|
else
|
||||||
|
{
|
||||||
|
neg=(bs->type == V_ASN1_NEG_INTEGER)?" (Negative)":"";
|
||||||
|
if (BIO_printf(bp,"\n%12s%s","",neg) <= 0) goto err;
|
||||||
|
|
||||||
|
for (i=0; i<bs->length; i++)
|
||||||
|
{
|
||||||
|
if (BIO_printf(bp,"%02x%c",bs->data[i],
|
||||||
|
((i+1 == bs->length)?'\n':':')) <= 0)
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
neg=(bs->type == V_ASN1_NEG_INTEGER)?" (Negative)":"";
|
|
||||||
if (BIO_printf(bp,"\n%12s%s","",neg) <= 0) goto err;
|
|
||||||
|
|
||||||
for (i=0; i<bs->length; i++)
|
|
||||||
{
|
|
||||||
if (BIO_printf(bp,"%02x%c",bs->data[i],
|
|
||||||
((i+1 == bs->length)?'\n':':')) <= 0)
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(cflag & X509_FLAG_NO_SIGNAME))
|
i=OBJ_obj2nid(ci->signature->algorithm);
|
||||||
{
|
if (BIO_printf(bp,"%8sSignature Algorithm: %s\n","",
|
||||||
i=OBJ_obj2nid(ci->signature->algorithm);
|
(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0)
|
||||||
if (BIO_printf(bp,"%8sSignature Algorithm: %s\n","",
|
goto err;
|
||||||
(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0)
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!(cflag & X509_FLAG_NO_ISSUER))
|
if (BIO_write(bp," Issuer: ",16) <= 0) goto err;
|
||||||
{
|
if (!X509_NAME_print(bp,X509_get_issuer_name(x),16)) goto err;
|
||||||
if (BIO_printf(bp," Issuer:%c",mlch) <= 0) goto err;
|
if (BIO_write(bp,"\n Validity\n",18) <= 0) goto err;
|
||||||
if (!X509_NAME_print_ex(bp,X509_get_issuer_name(x),nmindent, nmflags)) goto err;
|
if (BIO_write(bp," Not Before: ",24) <= 0) goto err;
|
||||||
}
|
if (!ASN1_TIME_print(bp,X509_get_notBefore(x))) goto err;
|
||||||
if(!(cflag & X509_FLAG_NO_VALIDITY))
|
if (BIO_write(bp,"\n Not After : ",25) <= 0) goto err;
|
||||||
{
|
if (!ASN1_TIME_print(bp,X509_get_notAfter(x))) goto err;
|
||||||
if (BIO_write(bp,"\n Validity\n",18) <= 0) goto err;
|
if (BIO_write(bp,"\n Subject: ",18) <= 0) goto err;
|
||||||
if (BIO_write(bp," Not Before: ",24) <= 0) goto err;
|
if (!X509_NAME_print(bp,X509_get_subject_name(x),16)) goto err;
|
||||||
if (!ASN1_TIME_print(bp,X509_get_notBefore(x))) goto err;
|
if (BIO_write(bp,"\n Subject Public Key Info:\n",34) <= 0)
|
||||||
if (BIO_write(bp,"\n Not After : ",25) <= 0) goto err;
|
goto err;
|
||||||
if (!ASN1_TIME_print(bp,X509_get_notAfter(x))) goto err;
|
i=OBJ_obj2nid(ci->key->algor->algorithm);
|
||||||
if (BIO_write(bp,"\n",1) <= 0) goto err;
|
if (BIO_printf(bp,"%12sPublic Key Algorithm: %s\n","",
|
||||||
}
|
(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0) goto err;
|
||||||
if(!(cflag & X509_FLAG_NO_SUBJECT))
|
|
||||||
{
|
|
||||||
if (BIO_printf(bp," Subject:%c",mlch) <= 0) goto err;
|
|
||||||
if (!X509_NAME_print_ex(bp,X509_get_subject_name(x),nmindent, nmflags)) goto err;
|
|
||||||
}
|
|
||||||
if(!(cflag & X509_FLAG_NO_PUBKEY))
|
|
||||||
{
|
|
||||||
if (BIO_write(bp,"\n Subject Public Key Info:\n",34) <= 0)
|
|
||||||
goto err;
|
|
||||||
i=OBJ_obj2nid(ci->key->algor->algorithm);
|
|
||||||
if (BIO_printf(bp,"%12sPublic Key Algorithm: %s\n","",
|
|
||||||
(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0) goto err;
|
|
||||||
|
|
||||||
pkey=X509_get_pubkey(x);
|
pkey=X509_get_pubkey(x);
|
||||||
if (pkey == NULL)
|
if (pkey == NULL)
|
||||||
{
|
{
|
||||||
BIO_printf(bp,"%12sUnable to load Public Key\n","");
|
BIO_printf(bp,"%12sUnable to load Public Key\n","");
|
||||||
ERR_print_errors(bp);
|
ERR_print_errors(bp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
if (pkey->type == EVP_PKEY_RSA)
|
if (pkey->type == EVP_PKEY_RSA)
|
||||||
{
|
{
|
||||||
BIO_printf(bp,"%12sRSA Public Key: (%d bit)\n","",
|
BIO_printf(bp,"%12sRSA Public Key: (%d bit)\n","",
|
||||||
BN_num_bits(pkey->pkey.rsa->n));
|
BN_num_bits(pkey->pkey.rsa->n));
|
||||||
RSA_print(bp,pkey->pkey.rsa,16);
|
RSA_print(bp,pkey->pkey.rsa,16);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
if (pkey->type == EVP_PKEY_DSA)
|
if (pkey->type == EVP_PKEY_DSA)
|
||||||
{
|
{
|
||||||
BIO_printf(bp,"%12sDSA Public Key:\n","");
|
BIO_printf(bp,"%12sDSA Public Key:\n","");
|
||||||
DSA_print(bp,pkey->pkey.dsa,16);
|
DSA_print(bp,pkey->pkey.dsa,16);
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
BIO_printf(bp,"%12sUnknown Public Key:\n","");
|
|
||||||
|
|
||||||
EVP_PKEY_free(pkey);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cflag & X509_FLAG_NO_EXTENSIONS)
|
|
||||||
n = 0;
|
|
||||||
else
|
else
|
||||||
n=X509_get_ext_count(x);
|
#endif
|
||||||
|
BIO_printf(bp,"%12sUnknown Public Key:\n","");
|
||||||
|
|
||||||
|
EVP_PKEY_free(pkey);
|
||||||
|
|
||||||
|
n=X509_get_ext_count(x);
|
||||||
if (n > 0)
|
if (n > 0)
|
||||||
{
|
{
|
||||||
BIO_printf(bp,"%8sX509v3 extensions:\n","");
|
BIO_printf(bp,"%8sX509v3 extensions:\n","");
|
||||||
@@ -245,7 +196,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
|
|||||||
j=X509_EXTENSION_get_critical(ex);
|
j=X509_EXTENSION_get_critical(ex);
|
||||||
if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
|
if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
|
||||||
goto err;
|
goto err;
|
||||||
if(!X509V3_EXT_print(bp, ex, cflag, 16))
|
if(!X509V3_EXT_print(bp, ex, 0, 16))
|
||||||
{
|
{
|
||||||
BIO_printf(bp, "%16s", "");
|
BIO_printf(bp, "%16s", "");
|
||||||
M_ASN1_OCTET_STRING_print(bp,ex->value);
|
M_ASN1_OCTET_STRING_print(bp,ex->value);
|
||||||
@@ -254,27 +205,21 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(cflag & X509_FLAG_NO_SIGDUMP))
|
i=OBJ_obj2nid(x->sig_alg->algorithm);
|
||||||
{
|
if (BIO_printf(bp,"%4sSignature Algorithm: %s","",
|
||||||
i=OBJ_obj2nid(x->sig_alg->algorithm);
|
(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0) goto err;
|
||||||
if (BIO_printf(bp,"%4sSignature Algorithm: %s","",
|
|
||||||
(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0) goto err;
|
|
||||||
|
|
||||||
n=x->signature->length;
|
n=x->signature->length;
|
||||||
s=(char *)x->signature->data;
|
s=(char *)x->signature->data;
|
||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
{
|
|
||||||
if ((i%18) == 0)
|
|
||||||
if (BIO_write(bp,"\n ",9) <= 0) goto err;
|
|
||||||
if (BIO_printf(bp,"%02x%s",(unsigned char)s[i],
|
|
||||||
((i+1) == n)?"":":") <= 0) goto err;
|
|
||||||
}
|
|
||||||
if (BIO_write(bp,"\n",1) != 1) goto err;
|
|
||||||
}
|
|
||||||
if(!(cflag & X509_FLAG_NO_AUX))
|
|
||||||
{
|
{
|
||||||
if (!X509_CERT_AUX_print(bp, x->aux, 0)) goto err;
|
if ((i%18) == 0)
|
||||||
|
if (BIO_write(bp,"\n ",9) <= 0) goto err;
|
||||||
|
if (BIO_printf(bp,"%02x%s",(unsigned char)s[i],
|
||||||
|
((i+1) == n)?"":":") <= 0) goto err;
|
||||||
}
|
}
|
||||||
|
if (BIO_write(bp,"\n",1) != 1) goto err;
|
||||||
|
if (!X509_CERT_AUX_print(bp, x->aux, 0)) goto err;
|
||||||
ret=1;
|
ret=1;
|
||||||
err:
|
err:
|
||||||
if (str != NULL) ASN1_STRING_free(str);
|
if (str != NULL) ASN1_STRING_free(str);
|
||||||
@@ -282,56 +227,6 @@ err:
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int X509_ocspid_print (BIO *bp, X509 *x)
|
|
||||||
{
|
|
||||||
unsigned char *der=NULL ;
|
|
||||||
unsigned char *dertmp;
|
|
||||||
int derlen;
|
|
||||||
int i;
|
|
||||||
SHA_CTX SHA1buf ;
|
|
||||||
unsigned char SHA1md[SHA_DIGEST_LENGTH];
|
|
||||||
|
|
||||||
/* display the hash of the subject as it would appear
|
|
||||||
in OCSP requests */
|
|
||||||
if (BIO_printf(bp," Subject OCSP hash: ") <= 0)
|
|
||||||
goto err;
|
|
||||||
derlen = i2d_X509_NAME(x->cert_info->subject, NULL);
|
|
||||||
if ((der = dertmp = (unsigned char *)OPENSSL_malloc (derlen)) == NULL)
|
|
||||||
goto err;
|
|
||||||
i2d_X509_NAME(x->cert_info->subject, &dertmp);
|
|
||||||
|
|
||||||
SHA1_Init(&SHA1buf);
|
|
||||||
SHA1_Update(&SHA1buf, der, derlen);
|
|
||||||
SHA1_Final(SHA1md,&SHA1buf);
|
|
||||||
for (i=0; i < SHA_DIGEST_LENGTH; i++)
|
|
||||||
{
|
|
||||||
if (BIO_printf(bp,"%02X",SHA1md[i]) <= 0) goto err;
|
|
||||||
}
|
|
||||||
OPENSSL_free (der);
|
|
||||||
der=NULL;
|
|
||||||
|
|
||||||
/* display the hash of the public key as it would appear
|
|
||||||
in OCSP requests */
|
|
||||||
if (BIO_printf(bp,"\n Public key OCSP hash: ") <= 0)
|
|
||||||
goto err;
|
|
||||||
|
|
||||||
SHA1_Init(&SHA1buf);
|
|
||||||
SHA1_Update(&SHA1buf, x->cert_info->key->public_key->data,
|
|
||||||
x->cert_info->key->public_key->length);
|
|
||||||
SHA1_Final(SHA1md,&SHA1buf);
|
|
||||||
for (i=0; i < SHA_DIGEST_LENGTH; i++)
|
|
||||||
{
|
|
||||||
if (BIO_printf(bp,"%02X",SHA1md[i]) <= 0)
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
BIO_printf(bp,"\n");
|
|
||||||
|
|
||||||
return (1);
|
|
||||||
err:
|
|
||||||
if (der != NULL) OPENSSL_free(der);
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
int ASN1_STRING_print(BIO *bp, ASN1_STRING *v)
|
int ASN1_STRING_print(BIO *bp, ASN1_STRING *v)
|
||||||
{
|
{
|
||||||
int i,n;
|
int i,n;
|
||||||
@@ -454,6 +349,8 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
|
|||||||
ll=80-2-obase;
|
ll=80-2-obase;
|
||||||
|
|
||||||
s=X509_NAME_oneline(name,buf,256);
|
s=X509_NAME_oneline(name,buf,256);
|
||||||
|
if (!*s)
|
||||||
|
return 1;
|
||||||
s++; /* skip the first slash */
|
s++; /* skip the first slash */
|
||||||
|
|
||||||
l=ll;
|
l=ll;
|
||||||
|
|||||||
@@ -71,14 +71,14 @@ int i2d_X509_REVOKED(X509_REVOKED *a, unsigned char **pp)
|
|||||||
|
|
||||||
M_ASN1_I2D_len(a->serialNumber,i2d_ASN1_INTEGER);
|
M_ASN1_I2D_len(a->serialNumber,i2d_ASN1_INTEGER);
|
||||||
M_ASN1_I2D_len(a->revocationDate,i2d_ASN1_TIME);
|
M_ASN1_I2D_len(a->revocationDate,i2d_ASN1_TIME);
|
||||||
M_ASN1_I2D_len_SEQUENCE_opt_type(X509_EXTENSION,a->extensions,
|
M_ASN1_I2D_len_SEQUENCE_opt_ex_type(X509_EXTENSION,a->extensions,
|
||||||
i2d_X509_EXTENSION);
|
i2d_X509_EXTENSION);
|
||||||
|
|
||||||
M_ASN1_I2D_seq_total();
|
M_ASN1_I2D_seq_total();
|
||||||
|
|
||||||
M_ASN1_I2D_put(a->serialNumber,i2d_ASN1_INTEGER);
|
M_ASN1_I2D_put(a->serialNumber,i2d_ASN1_INTEGER);
|
||||||
M_ASN1_I2D_put(a->revocationDate,i2d_ASN1_TIME);
|
M_ASN1_I2D_put(a->revocationDate,i2d_ASN1_TIME);
|
||||||
M_ASN1_I2D_put_SEQUENCE_opt_type(X509_EXTENSION,a->extensions,
|
M_ASN1_I2D_put_SEQUENCE_opt_ex_type(X509_EXTENSION,a->extensions,
|
||||||
i2d_X509_EXTENSION);
|
i2d_X509_EXTENSION);
|
||||||
|
|
||||||
M_ASN1_I2D_finish();
|
M_ASN1_I2D_finish();
|
||||||
@@ -121,7 +121,7 @@ int i2d_X509_CRL_INFO(X509_CRL_INFO *a, unsigned char **pp)
|
|||||||
{ M_ASN1_I2D_len(a->nextUpdate,i2d_ASN1_TIME); }
|
{ M_ASN1_I2D_len(a->nextUpdate,i2d_ASN1_TIME); }
|
||||||
M_ASN1_I2D_len_SEQUENCE_opt_type(X509_REVOKED,a->revoked,
|
M_ASN1_I2D_len_SEQUENCE_opt_type(X509_REVOKED,a->revoked,
|
||||||
i2d_X509_REVOKED);
|
i2d_X509_REVOKED);
|
||||||
M_ASN1_I2D_len_EXP_SEQUENCE_opt_type(X509_EXTENSION,a->extensions,
|
M_ASN1_I2D_len_EXP_SEQUENCE_opt_ex_type(X509_EXTENSION,a->extensions,
|
||||||
i2d_X509_EXTENSION,0,
|
i2d_X509_EXTENSION,0,
|
||||||
V_ASN1_SEQUENCE,v1);
|
V_ASN1_SEQUENCE,v1);
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ int i2d_X509_CRL_INFO(X509_CRL_INFO *a, unsigned char **pp)
|
|||||||
{ M_ASN1_I2D_put(a->nextUpdate,i2d_ASN1_TIME); }
|
{ M_ASN1_I2D_put(a->nextUpdate,i2d_ASN1_TIME); }
|
||||||
M_ASN1_I2D_put_SEQUENCE_opt_type(X509_REVOKED,a->revoked,
|
M_ASN1_I2D_put_SEQUENCE_opt_type(X509_REVOKED,a->revoked,
|
||||||
i2d_X509_REVOKED);
|
i2d_X509_REVOKED);
|
||||||
M_ASN1_I2D_put_EXP_SEQUENCE_opt_type(X509_EXTENSION,a->extensions,
|
M_ASN1_I2D_put_EXP_SEQUENCE_opt_ex_type(X509_EXTENSION,a->extensions,
|
||||||
i2d_X509_EXTENSION,0,
|
i2d_X509_EXTENSION,0,
|
||||||
V_ASN1_SEQUENCE,v1);
|
V_ASN1_SEQUENCE,v1);
|
||||||
|
|
||||||
@@ -260,7 +260,7 @@ X509_CRL_INFO *X509_CRL_INFO_new(void)
|
|||||||
M_ASN1_New(ret->lastUpdate,M_ASN1_UTCTIME_new);
|
M_ASN1_New(ret->lastUpdate,M_ASN1_UTCTIME_new);
|
||||||
ret->nextUpdate=NULL;
|
ret->nextUpdate=NULL;
|
||||||
M_ASN1_New(ret->revoked,sk_X509_REVOKED_new_null);
|
M_ASN1_New(ret->revoked,sk_X509_REVOKED_new_null);
|
||||||
M_ASN1_New(ret->extensions,sk_X509_EXTENSION_new_null);
|
ret->extensions = NULL;
|
||||||
sk_X509_REVOKED_set_cmp_func(ret->revoked,X509_REVOKED_cmp);
|
sk_X509_REVOKED_set_cmp_func(ret->revoked,X509_REVOKED_cmp);
|
||||||
return(ret);
|
return(ret);
|
||||||
M_ASN1_New_Error(ASN1_F_X509_CRL_INFO_NEW);
|
M_ASN1_New_Error(ASN1_F_X509_CRL_INFO_NEW);
|
||||||
|
|||||||
@@ -141,10 +141,12 @@ static int i2d_X509_NAME_entries(X509_NAME *a)
|
|||||||
}
|
}
|
||||||
size+=i2d_X509_NAME_ENTRY(ne,NULL);
|
size+=i2d_X509_NAME_ENTRY(ne,NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret+=ASN1_object_size(1,size,V_ASN1_SET);
|
|
||||||
if (fe != NULL)
|
if (fe != NULL)
|
||||||
|
{
|
||||||
|
/* SET OF needed only if entries is non empty */
|
||||||
|
ret+=ASN1_object_size(1,size,V_ASN1_SET);
|
||||||
fe->size=size;
|
fe->size=size;
|
||||||
|
}
|
||||||
|
|
||||||
r=ASN1_object_size(1,ret,V_ASN1_SEQUENCE);
|
r=ASN1_object_size(1,ret,V_ASN1_SEQUENCE);
|
||||||
|
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key)
|
|||||||
a=key->algor;
|
a=key->algor;
|
||||||
if (ret->type == EVP_PKEY_DSA)
|
if (ret->type == EVP_PKEY_DSA)
|
||||||
{
|
{
|
||||||
if (a->parameter->type == V_ASN1_SEQUENCE)
|
if (a->parameter && (a->parameter->type == V_ASN1_SEQUENCE))
|
||||||
{
|
{
|
||||||
ret->pkey.dsa->write_params=0;
|
ret->pkey.dsa->write_params=0;
|
||||||
p=a->parameter->value.sequence->data;
|
p=a->parameter->value.sequence->data;
|
||||||
|
|||||||
@@ -96,13 +96,13 @@ b_dump.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
|||||||
b_dump.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
b_dump.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||||
b_dump.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
b_dump.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
b_dump.o: ../cryptlib.h
|
b_dump.o: ../cryptlib.h
|
||||||
b_print.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
b_print.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||||
b_print.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
b_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||||
b_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
b_print.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
b_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
b_print.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||||
b_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
b_print.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
b_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
b_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||||
b_print.o: ../cryptlib.h
|
b_print.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
b_sock.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
b_sock.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||||
b_sock.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
b_sock.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||||
b_sock.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
b_sock.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||||
@@ -123,8 +123,7 @@ bf_buff.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
|||||||
bf_buff.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
bf_buff.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
bf_buff.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
bf_buff.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
bf_buff.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
bf_buff.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
bf_buff.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
bf_buff.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
bf_buff.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
bf_buff.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
bf_buff.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
bf_buff.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
bf_buff.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
bf_buff.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
bf_buff.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
@@ -142,11 +141,10 @@ bf_nbio.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|||||||
bf_nbio.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
bf_nbio.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
bf_nbio.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
bf_nbio.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||||
bf_nbio.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
bf_nbio.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
bf_nbio.o: ../../include/openssl/rijndael-alg-fst.h
|
bf_nbio.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
bf_nbio.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
bf_nbio.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
bf_nbio.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
bf_nbio.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
bf_nbio.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
bf_nbio.o: ../cryptlib.h
|
||||||
bf_nbio.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
|
||||||
bf_null.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
bf_null.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
bf_null.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
bf_null.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||||
bf_null.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
bf_null.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||||
@@ -160,8 +158,7 @@ bf_null.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
|||||||
bf_null.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
bf_null.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
bf_null.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
bf_null.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
bf_null.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
bf_null.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
bf_null.o: ../../include/openssl/rc5.h ../../include/openssl/rijndael-alg-fst.h
|
bf_null.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
bf_null.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
|
|
||||||
bf_null.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
bf_null.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
bf_null.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
bf_null.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
bf_null.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
bf_null.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
#ifndef NO_SYS_TYPES_H
|
#ifndef NO_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <openssl/bn.h> /* To get BN_LLONG properly defined */
|
||||||
#include <openssl/bio.h>
|
#include <openssl/bio.h>
|
||||||
|
|
||||||
#ifdef BN_LLONG
|
#ifdef BN_LLONG
|
||||||
@@ -108,7 +109,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_LONG_LONG
|
#if HAVE_LONG_LONG
|
||||||
#define LLONG long long
|
# if defined(WIN32) && !defined(__GNUC__)
|
||||||
|
# define LLONG _int64
|
||||||
|
# else
|
||||||
|
# define LLONG long long
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
#define LLONG long
|
#define LLONG long
|
||||||
#endif
|
#endif
|
||||||
@@ -564,7 +569,7 @@ pow10(int exp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static long
|
static long
|
||||||
round(LDOUBLE value)
|
roundv(LDOUBLE value)
|
||||||
{
|
{
|
||||||
long intpart;
|
long intpart;
|
||||||
intpart = (long) value;
|
intpart = (long) value;
|
||||||
@@ -616,7 +621,7 @@ fmtfp(
|
|||||||
|
|
||||||
/* we "cheat" by converting the fractional part to integer by
|
/* we "cheat" by converting the fractional part to integer by
|
||||||
multiplying by a factor of 10 */
|
multiplying by a factor of 10 */
|
||||||
fracpart = round((pow10(max)) * (ufvalue - intpart));
|
fracpart = roundv((pow10(max)) * (ufvalue - intpart));
|
||||||
|
|
||||||
if (fracpart >= pow10(max)) {
|
if (fracpart >= pow10(max)) {
|
||||||
intpart++;
|
intpart++;
|
||||||
@@ -640,7 +645,7 @@ fmtfp(
|
|||||||
(caps ? "0123456789ABCDEF"
|
(caps ? "0123456789ABCDEF"
|
||||||
: "0123456789abcdef")[fracpart % 10];
|
: "0123456789abcdef")[fracpart % 10];
|
||||||
fracpart = (fracpart / 10);
|
fracpart = (fracpart / 10);
|
||||||
} while (fracpart && (fplace < 20));
|
} while (fplace < max);
|
||||||
if (fplace == 20)
|
if (fplace == 20)
|
||||||
fplace--;
|
fplace--;
|
||||||
fconvert[fplace] = 0;
|
fconvert[fplace] = 0;
|
||||||
|
|||||||
@@ -72,9 +72,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SO_MAXCONN
|
#ifdef SO_MAXCONN
|
||||||
#define MAX_LISTEN SOMAXCONN
|
|
||||||
#elif defined(SO_MAXCONN)
|
|
||||||
#define MAX_LISTEN SO_MAXCONN
|
#define MAX_LISTEN SO_MAXCONN
|
||||||
|
#elif defined(SOMAXCONN)
|
||||||
|
#define MAX_LISTEN SOMAXCONN
|
||||||
#else
|
#else
|
||||||
#define MAX_LISTEN 32
|
#define MAX_LISTEN 32
|
||||||
#endif
|
#endif
|
||||||
@@ -95,8 +95,10 @@ static struct ghbn_cache_st
|
|||||||
} ghbn_cache[GHBN_NUM];
|
} ghbn_cache[GHBN_NUM];
|
||||||
|
|
||||||
static int get_ip(const char *str,unsigned char *ip);
|
static int get_ip(const char *str,unsigned char *ip);
|
||||||
|
#if 0
|
||||||
static void ghbn_free(struct hostent *a);
|
static void ghbn_free(struct hostent *a);
|
||||||
static struct hostent *ghbn_dup(struct hostent *a);
|
static struct hostent *ghbn_dup(struct hostent *a);
|
||||||
|
#endif
|
||||||
int BIO_get_host_ip(const char *str, unsigned char *ip)
|
int BIO_get_host_ip(const char *str, unsigned char *ip)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -266,6 +268,7 @@ long BIO_ghbn_ctrl(int cmd, int iarg, char *parg)
|
|||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static struct hostent *ghbn_dup(struct hostent *a)
|
static struct hostent *ghbn_dup(struct hostent *a)
|
||||||
{
|
{
|
||||||
struct hostent *ret;
|
struct hostent *ret;
|
||||||
@@ -342,21 +345,27 @@ static void ghbn_free(struct hostent *a)
|
|||||||
if (a->h_name != NULL) OPENSSL_free(a->h_name);
|
if (a->h_name != NULL) OPENSSL_free(a->h_name);
|
||||||
OPENSSL_free(a);
|
OPENSSL_free(a);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct hostent *BIO_gethostbyname(const char *name)
|
struct hostent *BIO_gethostbyname(const char *name)
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
/* Caching gethostbyname() results forever is wrong,
|
||||||
|
* so we have to let the true gethostbyname() worry about this */
|
||||||
|
return gethostbyname(name);
|
||||||
|
#else
|
||||||
struct hostent *ret;
|
struct hostent *ret;
|
||||||
int i,lowi=0,j;
|
int i,lowi=0,j;
|
||||||
unsigned long low= (unsigned long)-1;
|
unsigned long low= (unsigned long)-1;
|
||||||
|
|
||||||
/* return(gethostbyname(name)); */
|
|
||||||
|
|
||||||
#if 0 /* It doesn't make sense to use locking here: The function interface
|
# if 0
|
||||||
* is not thread-safe, because threads can never be sure when
|
/* It doesn't make sense to use locking here: The function interface
|
||||||
* some other thread destroys the data they were given a pointer to.
|
* is not thread-safe, because threads can never be sure when
|
||||||
*/
|
* some other thread destroys the data they were given a pointer to.
|
||||||
|
*/
|
||||||
CRYPTO_w_lock(CRYPTO_LOCK_GETHOSTBYNAME);
|
CRYPTO_w_lock(CRYPTO_LOCK_GETHOSTBYNAME);
|
||||||
#endif
|
# endif
|
||||||
j=strlen(name);
|
j=strlen(name);
|
||||||
if (j < 128)
|
if (j < 128)
|
||||||
{
|
{
|
||||||
@@ -384,20 +393,21 @@ struct hostent *BIO_gethostbyname(const char *name)
|
|||||||
* parameter is 'char *', instead of 'const char *'
|
* parameter is 'char *', instead of 'const char *'
|
||||||
*/
|
*/
|
||||||
ret=gethostbyname(
|
ret=gethostbyname(
|
||||||
#ifndef CONST_STRICT
|
# ifndef CONST_STRICT
|
||||||
(char *)
|
(char *)
|
||||||
#endif
|
# endif
|
||||||
name);
|
name);
|
||||||
|
|
||||||
if (ret == NULL)
|
if (ret == NULL)
|
||||||
goto end;
|
goto end;
|
||||||
if (j > 128) /* too big to cache */
|
if (j > 128) /* too big to cache */
|
||||||
{
|
{
|
||||||
#if 0 /* If we were trying to make this function thread-safe (which
|
# if 0
|
||||||
* is bound to fail), we'd have to give up in this case
|
/* If we were trying to make this function thread-safe (which
|
||||||
* (or allocate more memory). */
|
* is bound to fail), we'd have to give up in this case
|
||||||
|
* (or allocate more memory). */
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
#endif
|
# endif
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -421,12 +431,14 @@ struct hostent *BIO_gethostbyname(const char *name)
|
|||||||
ghbn_cache[i].order=BIO_ghbn_miss+BIO_ghbn_hits;
|
ghbn_cache[i].order=BIO_ghbn_miss+BIO_ghbn_hits;
|
||||||
}
|
}
|
||||||
end:
|
end:
|
||||||
#if 0
|
# if 0
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_GETHOSTBYNAME);
|
CRYPTO_w_unlock(CRYPTO_LOCK_GETHOSTBYNAME);
|
||||||
#endif
|
# endif
|
||||||
return(ret);
|
return(ret);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int BIO_sock_init(void)
|
int BIO_sock_init(void)
|
||||||
{
|
{
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
@@ -519,10 +531,10 @@ int BIO_get_accept_socket(char *host, int bind_mode)
|
|||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
struct sockaddr_in server,client;
|
struct sockaddr_in server,client;
|
||||||
int s= -1,cs;
|
int s=INVALID_SOCKET,cs;
|
||||||
unsigned char ip[4];
|
unsigned char ip[4];
|
||||||
unsigned short port;
|
unsigned short port;
|
||||||
char *str,*e;
|
char *str=NULL,*e;
|
||||||
const char *h,*p;
|
const char *h,*p;
|
||||||
unsigned long l;
|
unsigned long l;
|
||||||
int err_num;
|
int err_num;
|
||||||
@@ -553,7 +565,7 @@ int BIO_get_accept_socket(char *host, int bind_mode)
|
|||||||
h="*";
|
h="*";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!BIO_get_port(p,&port)) return(INVALID_SOCKET);
|
if (!BIO_get_port(p,&port)) goto err;
|
||||||
|
|
||||||
memset((char *)&server,0,sizeof(server));
|
memset((char *)&server,0,sizeof(server));
|
||||||
server.sin_family=AF_INET;
|
server.sin_family=AF_INET;
|
||||||
@@ -563,7 +575,7 @@ int BIO_get_accept_socket(char *host, int bind_mode)
|
|||||||
server.sin_addr.s_addr=INADDR_ANY;
|
server.sin_addr.s_addr=INADDR_ANY;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!BIO_get_host_ip(h,&(ip[0]))) return(INVALID_SOCKET);
|
if (!BIO_get_host_ip(h,&(ip[0]))) goto err;
|
||||||
l=(unsigned long)
|
l=(unsigned long)
|
||||||
((unsigned long)ip[0]<<24L)|
|
((unsigned long)ip[0]<<24L)|
|
||||||
((unsigned long)ip[1]<<16L)|
|
((unsigned long)ip[1]<<16L)|
|
||||||
@@ -661,7 +673,6 @@ int BIO_accept(int sock, char **addr)
|
|||||||
ret=accept(sock,(struct sockaddr *)&from,(void *)&len);
|
ret=accept(sock,(struct sockaddr *)&from,(void *)&len);
|
||||||
if (ret == INVALID_SOCKET)
|
if (ret == INVALID_SOCKET)
|
||||||
{
|
{
|
||||||
if(BIO_sock_should_retry(ret)) return -2;
|
|
||||||
SYSerr(SYS_F_ACCEPT,get_last_socket_error());
|
SYSerr(SYS_F_ACCEPT,get_last_socket_error());
|
||||||
BIOerr(BIO_F_BIO_ACCEPT,BIO_R_ACCEPT_ERROR);
|
BIOerr(BIO_F_BIO_ACCEPT,BIO_R_ACCEPT_ERROR);
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ static long buffer_ctrl(BIO *h, int cmd, long arg1, void *arg2);
|
|||||||
static int buffer_new(BIO *h);
|
static int buffer_new(BIO *h);
|
||||||
static int buffer_free(BIO *data);
|
static int buffer_free(BIO *data);
|
||||||
static long buffer_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
|
static long buffer_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
|
||||||
#define DEFAULT_BUFFER_SIZE 1024
|
#define DEFAULT_BUFFER_SIZE 4096
|
||||||
|
|
||||||
static BIO_METHOD methods_buffer=
|
static BIO_METHOD methods_buffer=
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ static int linebuffer_write(BIO *b, const char *in, int inl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if 0
|
||||||
BIO_write(b->next_bio, "<*<", 3);
|
BIO_write(b->next_bio, "<*<", 3);
|
||||||
#endif
|
#endif
|
||||||
i=BIO_write(b->next_bio,
|
i=BIO_write(b->next_bio,
|
||||||
@@ -210,13 +210,13 @@ BIO_write(b->next_bio, "<*<", 3);
|
|||||||
ctx->obuf_len = orig_olen;
|
ctx->obuf_len = orig_olen;
|
||||||
BIO_copy_next_retry(b);
|
BIO_copy_next_retry(b);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if 0
|
||||||
BIO_write(b->next_bio, ">*>", 3);
|
BIO_write(b->next_bio, ">*>", 3);
|
||||||
#endif
|
#endif
|
||||||
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);
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#if 0
|
||||||
BIO_write(b->next_bio, ">*>", 3);
|
BIO_write(b->next_bio, ">*>", 3);
|
||||||
#endif
|
#endif
|
||||||
if (i < ctx->obuf_len)
|
if (i < ctx->obuf_len)
|
||||||
@@ -229,20 +229,20 @@ BIO_write(b->next_bio, ">*>", 3);
|
|||||||
buffer if a NL was found and there is anything to write. */
|
buffer if a NL was found and there is anything to write. */
|
||||||
if ((foundnl || p - in > ctx->obuf_size) && p - in > 0)
|
if ((foundnl || p - in > ctx->obuf_size) && p - in > 0)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#if 0
|
||||||
BIO_write(b->next_bio, "<*<", 3);
|
BIO_write(b->next_bio, "<*<", 3);
|
||||||
#endif
|
#endif
|
||||||
i=BIO_write(b->next_bio,in,p - in);
|
i=BIO_write(b->next_bio,in,p - in);
|
||||||
if (i <= 0)
|
if (i <= 0)
|
||||||
{
|
{
|
||||||
BIO_copy_next_retry(b);
|
BIO_copy_next_retry(b);
|
||||||
#ifdef DEBUG
|
#if 0
|
||||||
BIO_write(b->next_bio, ">*>", 3);
|
BIO_write(b->next_bio, ">*>", 3);
|
||||||
#endif
|
#endif
|
||||||
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);
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#if 0
|
||||||
BIO_write(b->next_bio, ">*>", 3);
|
BIO_write(b->next_bio, ">*>", 3);
|
||||||
#endif
|
#endif
|
||||||
num+=i;
|
num+=i;
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ extern "C" {
|
|||||||
#define BIO_retry_type(a) ((a)->flags & BIO_FLAGS_RWS)
|
#define BIO_retry_type(a) ((a)->flags & BIO_FLAGS_RWS)
|
||||||
#define BIO_should_retry(a) ((a)->flags & BIO_FLAGS_SHOULD_RETRY)
|
#define BIO_should_retry(a) ((a)->flags & BIO_FLAGS_SHOULD_RETRY)
|
||||||
|
|
||||||
/* The next three are used in conjunction with the
|
/* The next two are used in conjunction with the
|
||||||
* BIO_should_io_special() condition. After this returns true,
|
* BIO_should_io_special() condition. After this returns true,
|
||||||
* BIO *BIO_get_retry_BIO(BIO *bio, int *reason); will walk the BIO
|
* BIO *BIO_get_retry_BIO(BIO *bio, int *reason); will walk the BIO
|
||||||
* stack and return the 'reason' for the special and the offending BIO.
|
* stack and return the 'reason' for the special and the offending BIO.
|
||||||
@@ -188,8 +188,6 @@ extern "C" {
|
|||||||
#define BIO_RR_SSL_X509_LOOKUP 0x01
|
#define BIO_RR_SSL_X509_LOOKUP 0x01
|
||||||
/* Returned from the connect BIO when a connect would have blocked */
|
/* Returned from the connect BIO when a connect would have blocked */
|
||||||
#define BIO_RR_CONNECT 0x02
|
#define BIO_RR_CONNECT 0x02
|
||||||
/* Returned from the accept BIO when an accept would have blocked */
|
|
||||||
#define BIO_RR_ACCEPT 0x03
|
|
||||||
|
|
||||||
/* These are passed by the BIO callback */
|
/* These are passed by the BIO callback */
|
||||||
#define BIO_CB_FREE 0x01
|
#define BIO_CB_FREE 0x01
|
||||||
@@ -358,8 +356,8 @@ typedef struct bio_f_buffer_ctx_struct
|
|||||||
#define BIO_set_conn_int_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,3,(char *)port)
|
#define BIO_set_conn_int_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,3,(char *)port)
|
||||||
#define BIO_get_conn_hostname(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0)
|
#define BIO_get_conn_hostname(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0)
|
||||||
#define BIO_get_conn_port(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1)
|
#define BIO_get_conn_port(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1)
|
||||||
#define BIO_get_conn_ip(b,ip) BIO_ptr_ctrl(b,BIO_C_SET_CONNECT,2)
|
#define BIO_get_conn_ip(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2)
|
||||||
#define BIO_get_conn_int_port(b,port) BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,port)
|
#define BIO_get_conn_int_port(b) BIO_int_ctrl(b,BIO_C_GET_CONNECT,3)
|
||||||
|
|
||||||
|
|
||||||
#define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)
|
#define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)
|
||||||
@@ -433,7 +431,7 @@ int BIO_read_filename(BIO *b,const char *name);
|
|||||||
#define BIO_set_ssl_renegotiate_bytes(b,num) \
|
#define BIO_set_ssl_renegotiate_bytes(b,num) \
|
||||||
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL);
|
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL);
|
||||||
#define BIO_get_num_renegotiates(b) \
|
#define BIO_get_num_renegotiates(b) \
|
||||||
BIO_ctrl(b,BIO_C_SET_SSL_NUM_RENEGOTIATES,0,NULL);
|
BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL);
|
||||||
#define BIO_set_ssl_renegotiate_timeout(b,seconds) \
|
#define BIO_set_ssl_renegotiate_timeout(b,seconds) \
|
||||||
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL);
|
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL);
|
||||||
|
|
||||||
@@ -590,8 +588,6 @@ int BIO_sock_init(void );
|
|||||||
void BIO_sock_cleanup(void);
|
void BIO_sock_cleanup(void);
|
||||||
int BIO_set_tcp_ndelay(int sock,int turn_on);
|
int BIO_set_tcp_ndelay(int sock,int turn_on);
|
||||||
|
|
||||||
void ERR_load_BIO_strings(void );
|
|
||||||
|
|
||||||
BIO *BIO_new_socket(int sock, int close_flag);
|
BIO *BIO_new_socket(int sock, int close_flag);
|
||||||
BIO *BIO_new_fd(int fd, int close_flag);
|
BIO *BIO_new_fd(int fd, int close_flag);
|
||||||
BIO *BIO_new_connect(char *host_port);
|
BIO *BIO_new_connect(char *host_port);
|
||||||
@@ -617,6 +613,7 @@ int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args);
|
|||||||
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
||||||
* made after this point may be overwritten when the script is next run.
|
* made after this point may be overwritten when the script is next run.
|
||||||
*/
|
*/
|
||||||
|
void ERR_load_BIO_strings(void);
|
||||||
|
|
||||||
/* Error codes for the BIO functions. */
|
/* Error codes for the BIO functions. */
|
||||||
|
|
||||||
@@ -686,4 +683,3 @@ int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -236,20 +236,8 @@ again:
|
|||||||
c->state=ACPT_S_OK;
|
c->state=ACPT_S_OK;
|
||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
BIO_clear_retry_flags(b);
|
|
||||||
b->retry_reason=0;
|
|
||||||
i=BIO_accept(c->accept_sock,&(c->addr));
|
i=BIO_accept(c->accept_sock,&(c->addr));
|
||||||
|
|
||||||
/* -2 return means we should retry */
|
|
||||||
if(i == -2)
|
|
||||||
{
|
|
||||||
BIO_set_retry_special(b);
|
|
||||||
b->retry_reason=BIO_RR_ACCEPT;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i < 0) return(i);
|
if (i < 0) return(i);
|
||||||
|
|
||||||
bio=BIO_new_socket(i,BIO_CLOSE);
|
bio=BIO_new_socket(i,BIO_CLOSE);
|
||||||
if (bio == NULL) goto err;
|
if (bio == NULL) goto err;
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,12 @@
|
|||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
|
|
||||||
#include "openssl/e_os.h"
|
#include "openssl/e_os.h"
|
||||||
#ifndef SSIZE_MAX
|
|
||||||
|
/* VxWorks defines SSiZE_MAX with an empty value causing compile errors */
|
||||||
|
#if defined(VXWORKS)
|
||||||
|
# undef SSIZE_MAX
|
||||||
|
# define SSIZE_MAX INT_MAX
|
||||||
|
#elif !defined(SSIZE_MAX)
|
||||||
# define SSIZE_MAX INT_MAX
|
# define SSIZE_MAX INT_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -474,7 +479,8 @@ static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case BIO_C_GET_WRITE_BUF_SIZE:
|
case BIO_C_GET_WRITE_BUF_SIZE:
|
||||||
num = (long) b->size;
|
ret = (long) b->size;
|
||||||
|
break;
|
||||||
|
|
||||||
case BIO_C_MAKE_BIO_PAIR:
|
case BIO_C_MAKE_BIO_PAIR:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
# include <starlet.h>
|
# include <starlet.h>
|
||||||
#elif defined(__ultrix)
|
#elif defined(__ultrix)
|
||||||
# include <sys/syslog.h>
|
# include <sys/syslog.h>
|
||||||
#elif !defined(MSDOS) /* Unix */
|
#elif !defined(MSDOS) && !defined(VXWORKS) /* Unix */
|
||||||
# include <syslog.h>
|
# include <syslog.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -124,6 +124,8 @@ asm/sparcv8plus-gcc27.o: asm/sparcv8plus.S
|
|||||||
$(CC) $(ASFLAGS) -E asm/sparcv8plus.S | \
|
$(CC) $(ASFLAGS) -E asm/sparcv8plus.S | \
|
||||||
/usr/ccs/bin/as -xarch=v8plus - -o asm/sparcv8plus-gcc27.o
|
/usr/ccs/bin/as -xarch=v8plus - -o asm/sparcv8plus-gcc27.o
|
||||||
|
|
||||||
|
asm/ia64.o: asm/ia64.S
|
||||||
|
|
||||||
files:
|
files:
|
||||||
$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
||||||
|
|
||||||
|
|||||||
1498
crypto/bn/asm/ia64.S
Normal file
1498
crypto/bn/asm/ia64.S
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
.rdata
|
.rdata
|
||||||
.asciiz "mips3.s, Version 1.0"
|
.asciiz "mips3.s, Version 1.1"
|
||||||
.asciiz "MIPS III/IV ISA artwork by Andy Polyakov <appro@fy.chalmers.se>"
|
.asciiz "MIPS III/IV ISA artwork by Andy Polyakov <appro@fy.chalmers.se>"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -586,13 +586,13 @@ LEAF(bn_div_3_words)
|
|||||||
ld a0,(a3)
|
ld a0,(a3)
|
||||||
move ta2,a1
|
move ta2,a1
|
||||||
ld a1,-8(a3)
|
ld a1,-8(a3)
|
||||||
move ta3,ra
|
bne a0,a2,.L_bn_div_3_words_proceed
|
||||||
move v1,zero
|
|
||||||
li v0,-1
|
li v0,-1
|
||||||
beq a0,a2,.L_bn_div_3_words_skip_div
|
jr ra
|
||||||
|
.L_bn_div_3_words_proceed:
|
||||||
|
move ta3,ra
|
||||||
bal bn_div_words
|
bal bn_div_words
|
||||||
move ra,ta3
|
move ra,ta3
|
||||||
.L_bn_div_3_words_skip_div:
|
|
||||||
dmultu ta2,v0
|
dmultu ta2,v0
|
||||||
ld t2,-16(a3)
|
ld t2,-16(a3)
|
||||||
move ta0,zero
|
move ta0,zero
|
||||||
@@ -849,6 +849,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
|
sltu c_3,c_2,t_2
|
||||||
dmultu a_1,b_2 /* mul_add_c(a[1],b[2],c1,c2,c3); */
|
dmultu a_1,b_2 /* mul_add_c(a[1],b[2],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -856,7 +857,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_2,b_1 /* mul_add_c(a[2],b[1],c1,c2,c3); */
|
dmultu a_2,b_1 /* mul_add_c(a[2],b[1],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -884,6 +886,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
|
sltu c_1,c_3,t_2
|
||||||
dmultu a_3,b_1 /* mul_add_c(a[3],b[1],c2,c3,c1); */
|
dmultu a_3,b_1 /* mul_add_c(a[3],b[1],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -891,7 +894,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_2,b_2 /* mul_add_c(a[2],b[2],c2,c3,c1); */
|
dmultu a_2,b_2 /* mul_add_c(a[2],b[2],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -928,6 +932,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
|
sltu c_2,c_1,t_2
|
||||||
dmultu a_1,b_4 /* mul_add_c(a[1],b[4],c3,c1,c2); */
|
dmultu a_1,b_4 /* mul_add_c(a[1],b[4],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -935,7 +940,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_2,b_3 /* mul_add_c(a[2],b[3],c3,c1,c2); */
|
dmultu a_2,b_3 /* mul_add_c(a[2],b[3],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -981,6 +987,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
|
sltu c_3,c_2,t_2
|
||||||
dmultu a_5,b_1 /* mul_add_c(a[5],b[1],c1,c2,c3); */
|
dmultu a_5,b_1 /* mul_add_c(a[5],b[1],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -988,7 +995,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_4,b_2 /* mul_add_c(a[4],b[2],c1,c2,c3); */
|
dmultu a_4,b_2 /* mul_add_c(a[4],b[2],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1043,6 +1051,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
|
sltu c_1,c_3,t_2
|
||||||
dmultu a_1,b_6 /* mul_add_c(a[1],b[6],c2,c3,c1); */
|
dmultu a_1,b_6 /* mul_add_c(a[1],b[6],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1050,7 +1059,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_2,b_5 /* mul_add_c(a[2],b[5],c2,c3,c1); */
|
dmultu a_2,b_5 /* mul_add_c(a[2],b[5],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1114,6 +1124,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
|
sltu c_2,c_1,t_2
|
||||||
dmultu a_6,b_2 /* mul_add_c(a[6],b[2],c3,c1,c2); */
|
dmultu a_6,b_2 /* mul_add_c(a[6],b[2],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1121,7 +1132,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_5,b_3 /* mul_add_c(a[5],b[3],c3,c1,c2); */
|
dmultu a_5,b_3 /* mul_add_c(a[5],b[3],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1176,6 +1188,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
|
sltu c_3,c_2,t_2
|
||||||
dmultu a_3,b_6 /* mul_add_c(a[3],b[6],c1,c2,c3); */
|
dmultu a_3,b_6 /* mul_add_c(a[3],b[6],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1183,7 +1196,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_4,b_5 /* mul_add_c(a[4],b[5],c1,c2,c3); */
|
dmultu a_4,b_5 /* mul_add_c(a[4],b[5],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1229,6 +1243,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
|
sltu c_1,c_3,t_2
|
||||||
dmultu a_6,b_4 /* mul_add_c(a[6],b[4],c2,c3,c1); */
|
dmultu a_6,b_4 /* mul_add_c(a[6],b[4],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1236,7 +1251,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_5,b_5 /* mul_add_c(a[5],b[5],c2,c3,c1); */
|
dmultu a_5,b_5 /* mul_add_c(a[5],b[5],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1273,6 +1289,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
|
sltu c_2,c_1,t_2
|
||||||
dmultu a_5,b_6 /* mul_add_c(a[5],b[6],c3,c1,c2); */
|
dmultu a_5,b_6 /* mul_add_c(a[5],b[6],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1280,7 +1297,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_6,b_5 /* mul_add_c(a[6],b[5],c3,c1,c2); */
|
dmultu a_6,b_5 /* mul_add_c(a[6],b[5],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1308,6 +1326,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
|
sltu c_3,c_2,t_2
|
||||||
dmultu a_6,b_6 /* mul_add_c(a[6],b[6],c1,c2,c3); */
|
dmultu a_6,b_6 /* mul_add_c(a[6],b[6],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1315,7 +1334,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_5,b_7 /* mul_add_c(a[5],b[7],c1,c2,c3); */
|
dmultu a_5,b_7 /* mul_add_c(a[5],b[7],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1334,6 +1354,7 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
|
sltu c_1,c_3,t_2
|
||||||
dmultu a_7,b_6 /* mul_add_c(a[7],b[6],c2,c3,c1); */
|
dmultu a_7,b_6 /* mul_add_c(a[7],b[6],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1341,7 +1362,8 @@ LEAF(bn_mul_comba8)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
sd c_2,104(a0) /* r[13]=c2; */
|
sd c_2,104(a0) /* r[13]=c2; */
|
||||||
|
|
||||||
dmultu a_7,b_7 /* mul_add_c(a[7],b[7],c3,c1,c2); */
|
dmultu a_7,b_7 /* mul_add_c(a[7],b[7],c3,c1,c2); */
|
||||||
@@ -1430,6 +1452,7 @@ LEAF(bn_mul_comba4)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
|
sltu c_3,c_2,t_2
|
||||||
dmultu a_1,b_2 /* mul_add_c(a[1],b[2],c1,c2,c3); */
|
dmultu a_1,b_2 /* mul_add_c(a[1],b[2],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1437,7 +1460,8 @@ LEAF(bn_mul_comba4)
|
|||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_2,b_1 /* mul_add_c(a[2],b[1],c1,c2,c3); */
|
dmultu a_2,b_1 /* mul_add_c(a[2],b[1],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1465,6 +1489,7 @@ LEAF(bn_mul_comba4)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
|
sltu c_1,c_3,t_2
|
||||||
dmultu a_2,b_2 /* mul_add_c(a[2],b[2],c2,c3,c1); */
|
dmultu a_2,b_2 /* mul_add_c(a[2],b[2],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1472,7 +1497,8 @@ LEAF(bn_mul_comba4)
|
|||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_1,b_3 /* mul_add_c(a[1],b[3],c2,c3,c1); */
|
dmultu a_1,b_3 /* mul_add_c(a[1],b[3],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1491,6 +1517,7 @@ LEAF(bn_mul_comba4)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
|
sltu c_2,c_1,t_2
|
||||||
dmultu a_3,b_2 /* mul_add_c(a[3],b[2],c3,c1,c2); */
|
dmultu a_3,b_2 /* mul_add_c(a[3],b[2],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1498,7 +1525,8 @@ LEAF(bn_mul_comba4)
|
|||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
sd c_3,40(a0)
|
sd c_3,40(a0)
|
||||||
|
|
||||||
dmultu a_3,b_3 /* mul_add_c(a[3],b[3],c1,c2,c3); */
|
dmultu a_3,b_3 /* mul_add_c(a[3],b[3],c1,c2,c3); */
|
||||||
@@ -1543,28 +1571,30 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_0,a_1 /* mul_add_c2(a[0],b[1],c2,c3,c1); */
|
dmultu a_0,a_1 /* mul_add_c2(a[0],b[1],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
|
slt c_1,t_2,zero
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu c_3,t_2,AT
|
daddu c_3,t_2,AT
|
||||||
daddu c_2,t_1
|
|
||||||
sltu AT,c_2,t_1
|
|
||||||
daddu t_2,AT
|
|
||||||
daddu c_3,t_2
|
|
||||||
sltu c_1,c_3,t_2
|
|
||||||
sd c_2,8(a0)
|
sd c_2,8(a0)
|
||||||
|
|
||||||
dmultu a_2,a_0 /* mul_add_c2(a[2],b[0],c3,c1,c2); */
|
dmultu a_2,a_0 /* mul_add_c2(a[2],b[0],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt c_2,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_1,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_1,a_1 /* mul_add_c(a[1],b[1],c3,c1,c2); */
|
dmultu a_1,a_1 /* mul_add_c(a[1],b[1],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1579,24 +1609,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_0,a_3 /* mul_add_c2(a[0],b[3],c1,c2,c3); */
|
dmultu a_0,a_3 /* mul_add_c2(a[0],b[3],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt c_3,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_2,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_1,a_2 /* mul_add_c2(a[1],b[2],c1,c2,c3); */
|
dmultu a_1,a_2 /* mul_add_c2(a[1],b[2],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_2,a2
|
|
||||||
sltu AT,c_2,a2
|
|
||||||
daddu c_3,AT
|
daddu c_3,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1608,24 +1640,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_4,a_0 /* mul_add_c2(a[4],b[0],c2,c3,c1); */
|
dmultu a_4,a_0 /* mul_add_c2(a[4],b[0],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt c_1,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_3,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_3,a_1 /* mul_add_c2(a[3],b[1],c2,c3,c1); */
|
dmultu a_3,a_1 /* mul_add_c2(a[3],b[1],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_3,a2
|
|
||||||
sltu AT,c_3,a2
|
|
||||||
daddu c_1,AT
|
daddu c_1,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1646,24 +1680,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_0,a_5 /* mul_add_c2(a[0],b[5],c3,c1,c2); */
|
dmultu a_0,a_5 /* mul_add_c2(a[0],b[5],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt c_2,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_1,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_1,a_4 /* mul_add_c2(a[1],b[4],c3,c1,c2); */
|
dmultu a_1,a_4 /* mul_add_c2(a[1],b[4],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_1,a2
|
|
||||||
sltu AT,c_1,a2
|
|
||||||
daddu c_2,AT
|
daddu c_2,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1673,12 +1709,12 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_2,a_3 /* mul_add_c2(a[2],b[3],c3,c1,c2); */
|
dmultu a_2,a_3 /* mul_add_c2(a[2],b[3],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_1,a2
|
|
||||||
sltu AT,c_1,a2
|
|
||||||
daddu c_2,AT
|
daddu c_2,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1690,24 +1726,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_6,a_0 /* mul_add_c2(a[6],b[0],c1,c2,c3); */
|
dmultu a_6,a_0 /* mul_add_c2(a[6],b[0],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt c_3,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_2,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_5,a_1 /* mul_add_c2(a[5],b[1],c1,c2,c3); */
|
dmultu a_5,a_1 /* mul_add_c2(a[5],b[1],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_2,a2
|
|
||||||
sltu AT,c_2,a2
|
|
||||||
daddu c_3,AT
|
daddu c_3,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1717,12 +1755,12 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_4,a_2 /* mul_add_c2(a[4],b[2],c1,c2,c3); */
|
dmultu a_4,a_2 /* mul_add_c2(a[4],b[2],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_2,a2
|
|
||||||
sltu AT,c_2,a2
|
|
||||||
daddu c_3,AT
|
daddu c_3,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1743,24 +1781,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_0,a_7 /* mul_add_c2(a[0],b[7],c2,c3,c1); */
|
dmultu a_0,a_7 /* mul_add_c2(a[0],b[7],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt c_1,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_3,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_1,a_6 /* mul_add_c2(a[1],b[6],c2,c3,c1); */
|
dmultu a_1,a_6 /* mul_add_c2(a[1],b[6],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_3,a2
|
|
||||||
sltu AT,c_3,a2
|
|
||||||
daddu c_1,AT
|
daddu c_1,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1770,12 +1810,12 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_2,a_5 /* mul_add_c2(a[2],b[5],c2,c3,c1); */
|
dmultu a_2,a_5 /* mul_add_c2(a[2],b[5],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_3,a2
|
|
||||||
sltu AT,c_3,a2
|
|
||||||
daddu c_1,AT
|
daddu c_1,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1785,12 +1825,12 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_3,a_4 /* mul_add_c2(a[3],b[4],c2,c3,c1); */
|
dmultu a_3,a_4 /* mul_add_c2(a[3],b[4],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_3,a2
|
|
||||||
sltu AT,c_3,a2
|
|
||||||
daddu c_1,AT
|
daddu c_1,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1802,24 +1842,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_7,a_1 /* mul_add_c2(a[7],b[1],c3,c1,c2); */
|
dmultu a_7,a_1 /* mul_add_c2(a[7],b[1],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt c_2,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_1,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_6,a_2 /* mul_add_c2(a[6],b[2],c3,c1,c2); */
|
dmultu a_6,a_2 /* mul_add_c2(a[6],b[2],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_1,a2
|
|
||||||
sltu AT,c_1,a2
|
|
||||||
daddu c_2,AT
|
daddu c_2,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1829,12 +1871,12 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_5,a_3 /* mul_add_c2(a[5],b[3],c3,c1,c2); */
|
dmultu a_5,a_3 /* mul_add_c2(a[5],b[3],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_1,a2
|
|
||||||
sltu AT,c_1,a2
|
|
||||||
daddu c_2,AT
|
daddu c_2,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1855,24 +1897,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_2,a_7 /* mul_add_c2(a[2],b[7],c1,c2,c3); */
|
dmultu a_2,a_7 /* mul_add_c2(a[2],b[7],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt c_3,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_2,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_3,a_6 /* mul_add_c2(a[3],b[6],c1,c2,c3); */
|
dmultu a_3,a_6 /* mul_add_c2(a[3],b[6],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_2,a2
|
|
||||||
sltu AT,c_2,a2
|
|
||||||
daddu c_3,AT
|
daddu c_3,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1882,12 +1926,12 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_4,a_5 /* mul_add_c2(a[4],b[5],c1,c2,c3); */
|
dmultu a_4,a_5 /* mul_add_c2(a[4],b[5],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_2,a2
|
|
||||||
sltu AT,c_2,a2
|
|
||||||
daddu c_3,AT
|
daddu c_3,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1899,24 +1943,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_7,a_3 /* mul_add_c2(a[7],b[3],c2,c3,c1); */
|
dmultu a_7,a_3 /* mul_add_c2(a[7],b[3],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt c_1,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_3,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_6,a_4 /* mul_add_c2(a[6],b[4],c2,c3,c1); */
|
dmultu a_6,a_4 /* mul_add_c2(a[6],b[4],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_3,a2
|
|
||||||
sltu AT,c_3,a2
|
|
||||||
daddu c_1,AT
|
daddu c_1,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1937,24 +1983,26 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_4,a_7 /* mul_add_c2(a[4],b[7],c3,c1,c2); */
|
dmultu a_4,a_7 /* mul_add_c2(a[4],b[7],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt c_2,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_1,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_5,a_6 /* mul_add_c2(a[5],b[6],c3,c1,c2); */
|
dmultu a_5,a_6 /* mul_add_c2(a[5],b[6],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_1,a2
|
|
||||||
sltu AT,c_1,a2
|
|
||||||
daddu c_2,AT
|
daddu c_2,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -1966,15 +2014,17 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_7,a_5 /* mul_add_c2(a[7],b[5],c1,c2,c3); */
|
dmultu a_7,a_5 /* mul_add_c2(a[7],b[5],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt c_3,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_2,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_6,a_6 /* mul_add_c(a[6],b[6],c1,c2,c3); */
|
dmultu a_6,a_6 /* mul_add_c(a[6],b[6],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -1989,15 +2039,17 @@ LEAF(bn_sqr_comba8)
|
|||||||
dmultu a_6,a_7 /* mul_add_c2(a[6],b[7],c2,c3,c1); */
|
dmultu a_6,a_7 /* mul_add_c2(a[6],b[7],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt c_1,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_3,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
sd c_2,104(a0)
|
sd c_2,104(a0)
|
||||||
|
|
||||||
dmultu a_7,a_7 /* mul_add_c(a[7],b[7],c3,c1,c2); */
|
dmultu a_7,a_7 /* mul_add_c(a[7],b[7],c3,c1,c2); */
|
||||||
@@ -2028,28 +2080,30 @@ LEAF(bn_sqr_comba4)
|
|||||||
dmultu a_0,a_1 /* mul_add_c2(a[0],b[1],c2,c3,c1); */
|
dmultu a_0,a_1 /* mul_add_c2(a[0],b[1],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
|
slt c_1,t_2,zero
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu c_3,t_2,AT
|
daddu c_3,t_2,AT
|
||||||
daddu c_2,t_1
|
|
||||||
sltu AT,c_2,t_1
|
|
||||||
daddu t_2,AT
|
|
||||||
daddu c_3,t_2
|
|
||||||
sltu c_1,c_3,t_2
|
|
||||||
sd c_2,8(a0)
|
sd c_2,8(a0)
|
||||||
|
|
||||||
dmultu a_2,a_0 /* mul_add_c2(a[2],b[0],c3,c1,c2); */
|
dmultu a_2,a_0 /* mul_add_c2(a[2],b[0],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt c_2,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_1,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
dmultu a_1,a_1 /* mul_add_c(a[1],b[1],c3,c1,c2); */
|
dmultu a_1,a_1 /* mul_add_c(a[1],b[1],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -2064,24 +2118,26 @@ LEAF(bn_sqr_comba4)
|
|||||||
dmultu a_0,a_3 /* mul_add_c2(a[0],b[3],c1,c2,c3); */
|
dmultu a_0,a_3 /* mul_add_c2(a[0],b[3],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt c_3,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_2,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_2,t_2
|
daddu c_2,t_2
|
||||||
sltu c_3,c_2,t_2
|
sltu AT,c_2,t_2
|
||||||
|
daddu c_3,AT
|
||||||
dmultu a_1,a_2 /* mul_add_c(a2[1],b[2],c1,c2,c3); */
|
dmultu a_1,a_2 /* mul_add_c(a2[1],b[2],c1,c2,c3); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_1,t_1
|
slt AT,t_2,zero
|
||||||
sltu AT,c_1,t_1
|
|
||||||
daddu a2,t_2,AT
|
|
||||||
daddu c_2,a2
|
|
||||||
sltu AT,c_2,a2
|
|
||||||
daddu c_3,AT
|
daddu c_3,AT
|
||||||
|
dsll t_2,1
|
||||||
|
slt a2,t_1,zero
|
||||||
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_1,t_1
|
daddu c_1,t_1
|
||||||
sltu AT,c_1,t_1
|
sltu AT,c_1,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
@@ -2093,15 +2149,17 @@ LEAF(bn_sqr_comba4)
|
|||||||
dmultu a_3,a_1 /* mul_add_c2(a[3],b[1],c2,c3,c1); */
|
dmultu a_3,a_1 /* mul_add_c2(a[3],b[1],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_2,t_1
|
slt c_1,t_2,zero
|
||||||
sltu AT,c_2,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_3,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_2,t_1
|
daddu c_2,t_1
|
||||||
sltu AT,c_2,t_1
|
sltu AT,c_2,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_3,t_2
|
daddu c_3,t_2
|
||||||
sltu c_1,c_3,t_2
|
sltu AT,c_3,t_2
|
||||||
|
daddu c_1,AT
|
||||||
dmultu a_2,a_2 /* mul_add_c(a[2],b[2],c2,c3,c1); */
|
dmultu a_2,a_2 /* mul_add_c(a[2],b[2],c2,c3,c1); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
@@ -2116,15 +2174,17 @@ LEAF(bn_sqr_comba4)
|
|||||||
dmultu a_2,a_3 /* mul_add_c2(a[2],b[3],c3,c1,c2); */
|
dmultu a_2,a_3 /* mul_add_c2(a[2],b[3],c3,c1,c2); */
|
||||||
mflo t_1
|
mflo t_1
|
||||||
mfhi t_2
|
mfhi t_2
|
||||||
daddu c_3,t_1
|
slt c_2,t_2,zero
|
||||||
sltu AT,c_3,t_1
|
dsll t_2,1
|
||||||
daddu a2,t_2,AT
|
slt a2,t_1,zero
|
||||||
daddu c_1,a2
|
daddu t_2,a2
|
||||||
|
dsll t_1,1
|
||||||
daddu c_3,t_1
|
daddu c_3,t_1
|
||||||
sltu AT,c_3,t_1
|
sltu AT,c_3,t_1
|
||||||
daddu t_2,AT
|
daddu t_2,AT
|
||||||
daddu c_1,t_2
|
daddu c_1,t_2
|
||||||
sltu c_2,c_1,t_2
|
sltu AT,c_1,t_2
|
||||||
|
daddu c_2,AT
|
||||||
sd c_3,40(a0)
|
sd c_3,40(a0)
|
||||||
|
|
||||||
dmultu a_3,a_3 /* mul_add_c(a[3],b[3],c1,c2,c3); */
|
dmultu a_3,a_3 /* mul_add_c(a[3],b[3],c1,c2,c3); */
|
||||||
|
|||||||
@@ -90,7 +90,9 @@ extern "C" {
|
|||||||
* be on. Again this in only really a problem on machines
|
* be on. Again this in only really a problem on machines
|
||||||
* using "long long's", are 32bit, and are not using my assembler code. */
|
* using "long long's", are 32bit, and are not using my assembler code. */
|
||||||
#if defined(MSDOS) || defined(WINDOWS) || defined(WIN32) || defined(linux)
|
#if defined(MSDOS) || defined(WINDOWS) || defined(WIN32) || defined(linux)
|
||||||
#define BN_DIV2W
|
# ifndef BN_DIV2W
|
||||||
|
# define BN_DIV2W
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* assuming long is 64bit - this is the DEC Alpha
|
/* assuming long is 64bit - this is the DEC Alpha
|
||||||
@@ -239,7 +241,7 @@ typedef struct bignum_st
|
|||||||
} BIGNUM;
|
} BIGNUM;
|
||||||
|
|
||||||
/* Used for temp variables */
|
/* Used for temp variables */
|
||||||
#define BN_CTX_NUM 12
|
#define BN_CTX_NUM 16
|
||||||
#define BN_CTX_NUM_POS 12
|
#define BN_CTX_NUM_POS 12
|
||||||
typedef struct bignum_ctx
|
typedef struct bignum_ctx
|
||||||
{
|
{
|
||||||
@@ -328,6 +330,8 @@ BIGNUM *BN_CTX_get(BN_CTX *ctx);
|
|||||||
void BN_CTX_end(BN_CTX *ctx);
|
void BN_CTX_end(BN_CTX *ctx);
|
||||||
int BN_rand(BIGNUM *rnd, int bits, int top,int bottom);
|
int BN_rand(BIGNUM *rnd, int bits, int top,int bottom);
|
||||||
int BN_pseudo_rand(BIGNUM *rnd, int bits, int top,int bottom);
|
int BN_pseudo_rand(BIGNUM *rnd, int bits, int top,int bottom);
|
||||||
|
int BN_rand_range(BIGNUM *rnd, BIGNUM *range);
|
||||||
|
int BN_pseudo_rand_range(BIGNUM *rnd, BIGNUM *range);
|
||||||
int BN_num_bits(const BIGNUM *a);
|
int BN_num_bits(const BIGNUM *a);
|
||||||
int BN_num_bits_word(BN_ULONG);
|
int BN_num_bits_word(BN_ULONG);
|
||||||
BIGNUM *BN_new(void);
|
BIGNUM *BN_new(void);
|
||||||
@@ -345,35 +349,33 @@ int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
|
|||||||
int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
|
int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
|
||||||
int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
|
int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
|
||||||
BN_CTX *ctx);
|
BN_CTX *ctx);
|
||||||
int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
|
int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx);
|
||||||
int BN_sqr(BIGNUM *r, const BIGNUM *a,BN_CTX *ctx);
|
int BN_sqr(BIGNUM *r, BIGNUM *a,BN_CTX *ctx);
|
||||||
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
|
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
|
||||||
BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
|
BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
|
||||||
int BN_mul_word(BIGNUM *a, BN_ULONG w);
|
int BN_mul_word(BIGNUM *a, BN_ULONG w);
|
||||||
int BN_add_word(BIGNUM *a, BN_ULONG w);
|
int BN_add_word(BIGNUM *a, BN_ULONG w);
|
||||||
int BN_sub_word(BIGNUM *a, BN_ULONG w);
|
int BN_sub_word(BIGNUM *a, BN_ULONG w);
|
||||||
int BN_set_word(BIGNUM *a, BN_ULONG w);
|
int BN_set_word(BIGNUM *a, BN_ULONG w);
|
||||||
BN_ULONG BN_get_word(const BIGNUM *a);
|
BN_ULONG BN_get_word(BIGNUM *a);
|
||||||
int BN_cmp(const BIGNUM *a, const BIGNUM *b);
|
int BN_cmp(const BIGNUM *a, const BIGNUM *b);
|
||||||
void BN_free(BIGNUM *a);
|
void BN_free(BIGNUM *a);
|
||||||
int BN_is_bit_set(const BIGNUM *a, int n);
|
int BN_is_bit_set(const BIGNUM *a, int n);
|
||||||
int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
|
int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
|
||||||
int BN_lshift1(BIGNUM *r, const BIGNUM *a);
|
int BN_lshift1(BIGNUM *r, BIGNUM *a);
|
||||||
int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,BN_CTX *ctx);
|
int BN_exp(BIGNUM *r, BIGNUM *a, BIGNUM *p,BN_CTX *ctx);
|
||||||
int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
int BN_mod_exp(BIGNUM *r, BIGNUM *a, const BIGNUM *p,
|
||||||
const BIGNUM *m,BN_CTX *ctx);
|
const BIGNUM *m,BN_CTX *ctx);
|
||||||
int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
int BN_mod_exp_mont(BIGNUM *r, BIGNUM *a, const BIGNUM *p,
|
||||||
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
||||||
int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,
|
int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,
|
||||||
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
||||||
int BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1, const BIGNUM *p1,
|
int BN_mod_exp2_mont(BIGNUM *r, BIGNUM *a1, BIGNUM *p1,BIGNUM *a2,
|
||||||
const BIGNUM *a2, const BIGNUM *p2,const BIGNUM *m,
|
BIGNUM *p2,BIGNUM *m,BN_CTX *ctx,BN_MONT_CTX *m_ctx);
|
||||||
BN_CTX *ctx,BN_MONT_CTX *m_ctx);
|
int BN_mod_exp_simple(BIGNUM *r, BIGNUM *a, BIGNUM *p,
|
||||||
int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
BIGNUM *m,BN_CTX *ctx);
|
||||||
const BIGNUM *m,BN_CTX *ctx);
|
|
||||||
int BN_mask_bits(BIGNUM *a,int n);
|
int BN_mask_bits(BIGNUM *a,int n);
|
||||||
int BN_mod_mul(BIGNUM *ret, const BIGNUM *a, const BIGNUM *b,
|
int BN_mod_mul(BIGNUM *ret, BIGNUM *a, BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
|
||||||
const BIGNUM *m, BN_CTX *ctx);
|
|
||||||
#ifndef NO_FP_API
|
#ifndef NO_FP_API
|
||||||
int BN_print_fp(FILE *fp, const BIGNUM *a);
|
int BN_print_fp(FILE *fp, const BIGNUM *a);
|
||||||
#endif
|
#endif
|
||||||
@@ -382,9 +384,9 @@ int BN_print(BIO *fp, const BIGNUM *a);
|
|||||||
#else
|
#else
|
||||||
int BN_print(void *fp, const BIGNUM *a);
|
int BN_print(void *fp, const BIGNUM *a);
|
||||||
#endif
|
#endif
|
||||||
int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);
|
int BN_reciprocal(BIGNUM *r, BIGNUM *m, int len, BN_CTX *ctx);
|
||||||
int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
|
int BN_rshift(BIGNUM *r, BIGNUM *a, int n);
|
||||||
int BN_rshift1(BIGNUM *r, const BIGNUM *a);
|
int BN_rshift1(BIGNUM *r, BIGNUM *a);
|
||||||
void BN_clear(BIGNUM *a);
|
void BN_clear(BIGNUM *a);
|
||||||
BIGNUM *BN_dup(const BIGNUM *a);
|
BIGNUM *BN_dup(const BIGNUM *a);
|
||||||
int BN_ucmp(const BIGNUM *a, const BIGNUM *b);
|
int BN_ucmp(const BIGNUM *a, const BIGNUM *b);
|
||||||
@@ -395,23 +397,20 @@ char * BN_bn2dec(const BIGNUM *a);
|
|||||||
int BN_hex2bn(BIGNUM **a, const char *str);
|
int BN_hex2bn(BIGNUM **a, const char *str);
|
||||||
int BN_dec2bn(BIGNUM **a, const char *str);
|
int BN_dec2bn(BIGNUM **a, const char *str);
|
||||||
int BN_gcd(BIGNUM *r,BIGNUM *in_a,BIGNUM *in_b,BN_CTX *ctx);
|
int BN_gcd(BIGNUM *r,BIGNUM *in_a,BIGNUM *in_b,BN_CTX *ctx);
|
||||||
BIGNUM *BN_mod_inverse(BIGNUM *ret,
|
BIGNUM *BN_mod_inverse(BIGNUM *ret,BIGNUM *a, const BIGNUM *n,BN_CTX *ctx);
|
||||||
const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx);
|
BIGNUM *BN_generate_prime(BIGNUM *ret,int bits,int safe,BIGNUM *add,
|
||||||
BIGNUM *BN_generate_prime(BIGNUM *ret,int bits,int safe,
|
BIGNUM *rem,void (*callback)(int,int,void *),void *cb_arg);
|
||||||
const BIGNUM *add, const BIGNUM *rem,
|
|
||||||
void (*callback)(int,int,void *),void *cb_arg);
|
|
||||||
int BN_is_prime(const BIGNUM *p,int nchecks,
|
int BN_is_prime(const BIGNUM *p,int nchecks,
|
||||||
void (*callback)(int,int,void *),
|
void (*callback)(int,int,void *),
|
||||||
BN_CTX *ctx,void *cb_arg);
|
BN_CTX *ctx,void *cb_arg);
|
||||||
int BN_is_prime_fasttest(const BIGNUM *p,int nchecks,
|
int BN_is_prime_fasttest(const BIGNUM *p,int nchecks,
|
||||||
void (*callback)(int,int,void *),BN_CTX *ctx,void *cb_arg,
|
void (*callback)(int,int,void *),BN_CTX *ctx,void *cb_arg,
|
||||||
int do_trial_division);
|
int do_trial_division);
|
||||||
void ERR_load_BN_strings(void );
|
|
||||||
|
|
||||||
BN_MONT_CTX *BN_MONT_CTX_new(void );
|
BN_MONT_CTX *BN_MONT_CTX_new(void );
|
||||||
void BN_MONT_CTX_init(BN_MONT_CTX *ctx);
|
void BN_MONT_CTX_init(BN_MONT_CTX *ctx);
|
||||||
int BN_mod_mul_montgomery(BIGNUM *r,const BIGNUM *a,const BIGNUM *b,
|
int BN_mod_mul_montgomery(BIGNUM *r,BIGNUM *a,BIGNUM *b,BN_MONT_CTX *mont,
|
||||||
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 *modulus,BN_CTX *ctx);
|
||||||
@@ -430,11 +429,11 @@ void BN_RECP_CTX_init(BN_RECP_CTX *recp);
|
|||||||
BN_RECP_CTX *BN_RECP_CTX_new(void);
|
BN_RECP_CTX *BN_RECP_CTX_new(void);
|
||||||
void BN_RECP_CTX_free(BN_RECP_CTX *recp);
|
void BN_RECP_CTX_free(BN_RECP_CTX *recp);
|
||||||
int BN_RECP_CTX_set(BN_RECP_CTX *recp,const BIGNUM *rdiv,BN_CTX *ctx);
|
int BN_RECP_CTX_set(BN_RECP_CTX *recp,const BIGNUM *rdiv,BN_CTX *ctx);
|
||||||
int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
|
int BN_mod_mul_reciprocal(BIGNUM *r, BIGNUM *x, BIGNUM *y,
|
||||||
BN_RECP_CTX *recp,BN_CTX *ctx);
|
BN_RECP_CTX *recp,BN_CTX *ctx);
|
||||||
int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
||||||
const BIGNUM *m, BN_CTX *ctx);
|
const BIGNUM *m, BN_CTX *ctx);
|
||||||
int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
|
int BN_div_recp(BIGNUM *dv, BIGNUM *rem, BIGNUM *m,
|
||||||
BN_RECP_CTX *recp, BN_CTX *ctx);
|
BN_RECP_CTX *recp, BN_CTX *ctx);
|
||||||
|
|
||||||
/* library internal functions */
|
/* library internal functions */
|
||||||
@@ -443,7 +442,6 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
|
|||||||
(a):bn_expand2((a),(bits)/BN_BITS2+1))
|
(a):bn_expand2((a),(bits)/BN_BITS2+1))
|
||||||
#define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words)))
|
#define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words)))
|
||||||
BIGNUM *bn_expand2(BIGNUM *a, int words);
|
BIGNUM *bn_expand2(BIGNUM *a, int words);
|
||||||
BIGNUM *bn_dup_expand(const BIGNUM *a, int words);
|
|
||||||
|
|
||||||
#define bn_fix_top(a) \
|
#define bn_fix_top(a) \
|
||||||
{ \
|
{ \
|
||||||
@@ -472,10 +470,13 @@ BN_ULONG bn_sub_words(BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int num);
|
|||||||
# define bn_dump(a,b)
|
# define bn_dump(a,b)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom);
|
||||||
|
|
||||||
/* BEGIN ERROR CODES */
|
/* BEGIN ERROR CODES */
|
||||||
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
||||||
* made after this point may be overwritten when the script is next run.
|
* made after this point may be overwritten when the script is next run.
|
||||||
*/
|
*/
|
||||||
|
void ERR_load_BN_strings(void);
|
||||||
|
|
||||||
/* Error codes for the BN functions. */
|
/* Error codes for the BN functions. */
|
||||||
|
|
||||||
@@ -498,16 +499,19 @@ BN_ULONG bn_sub_words(BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int num);
|
|||||||
#define BN_F_BN_MPI2BN 112
|
#define BN_F_BN_MPI2BN 112
|
||||||
#define BN_F_BN_NEW 113
|
#define BN_F_BN_NEW 113
|
||||||
#define BN_F_BN_RAND 114
|
#define BN_F_BN_RAND 114
|
||||||
|
#define BN_F_BN_RAND_RANGE 122
|
||||||
#define BN_F_BN_USUB 115
|
#define BN_F_BN_USUB 115
|
||||||
|
|
||||||
/* Reason codes. */
|
/* Reason codes. */
|
||||||
#define BN_R_ARG2_LT_ARG3 100
|
#define BN_R_ARG2_LT_ARG3 100
|
||||||
#define BN_R_BAD_RECIPROCAL 101
|
#define BN_R_BAD_RECIPROCAL 101
|
||||||
|
#define BN_R_BIGNUM_TOO_LONG 114
|
||||||
#define BN_R_CALLED_WITH_EVEN_MODULUS 102
|
#define BN_R_CALLED_WITH_EVEN_MODULUS 102
|
||||||
#define BN_R_DIV_BY_ZERO 103
|
#define BN_R_DIV_BY_ZERO 103
|
||||||
#define BN_R_ENCODING_ERROR 104
|
#define BN_R_ENCODING_ERROR 104
|
||||||
#define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA 105
|
#define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA 105
|
||||||
#define BN_R_INVALID_LENGTH 106
|
#define BN_R_INVALID_LENGTH 106
|
||||||
|
#define BN_R_INVALID_RANGE 115
|
||||||
#define BN_R_NOT_INITIALIZED 107
|
#define BN_R_NOT_INITIALIZED 107
|
||||||
#define BN_R_NO_INVERSE 108
|
#define BN_R_NO_INVERSE 108
|
||||||
#define BN_R_TOO_MANY_TEMPORARY_VARIABLES 109
|
#define BN_R_TOO_MANY_TEMPORARY_VARIABLES 109
|
||||||
@@ -516,4 +520,3 @@ BN_ULONG bn_sub_words(BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int num);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
|
|||||||
|
|
||||||
#if !defined(NO_ASM) && !defined(NO_INLINE_ASM) && !defined(PEDANTIC) && !defined(BN_DIV3W)
|
#if !defined(NO_ASM) && !defined(NO_INLINE_ASM) && !defined(PEDANTIC) && !defined(BN_DIV3W)
|
||||||
# if defined(__GNUC__) && __GNUC__>=2
|
# if defined(__GNUC__) && __GNUC__>=2
|
||||||
# if defined(__i386)
|
# if defined(__i386) || defined (__i386__)
|
||||||
/*
|
/*
|
||||||
* There were two reasons for implementing this template:
|
* There were two reasons for implementing this template:
|
||||||
* - GNU C generates a call to a function (__udivdi3 to be exact)
|
* - GNU C generates a call to a function (__udivdi3 to be exact)
|
||||||
@@ -180,13 +180,13 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
|
|||||||
|
|
||||||
BN_CTX_start(ctx);
|
BN_CTX_start(ctx);
|
||||||
tmp=BN_CTX_get(ctx);
|
tmp=BN_CTX_get(ctx);
|
||||||
tmp->neg=0;
|
|
||||||
snum=BN_CTX_get(ctx);
|
snum=BN_CTX_get(ctx);
|
||||||
sdiv=BN_CTX_get(ctx);
|
sdiv=BN_CTX_get(ctx);
|
||||||
if (dv == NULL)
|
if (dv == NULL)
|
||||||
res=BN_CTX_get(ctx);
|
res=BN_CTX_get(ctx);
|
||||||
else res=dv;
|
else res=dv;
|
||||||
if (res == NULL) goto err;
|
if (sdiv==NULL || res == NULL) goto err;
|
||||||
|
tmp->neg=0;
|
||||||
|
|
||||||
/* First we normalise the numbers */
|
/* First we normalise the numbers */
|
||||||
norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2);
|
norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2);
|
||||||
@@ -237,7 +237,8 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
|
|||||||
for (i=0; i<loop-1; i++)
|
for (i=0; i<loop-1; i++)
|
||||||
{
|
{
|
||||||
BN_ULONG q,l0;
|
BN_ULONG q,l0;
|
||||||
#ifdef BN_DIV3W
|
#if defined(BN_DIV3W) && !defined(NO_ASM)
|
||||||
|
BN_ULONG bn_div_3_words(BN_ULONG*,BN_ULONG,BN_ULONG);
|
||||||
q=bn_div_3_words(wnump,d1,d0);
|
q=bn_div_3_words(wnump,d1,d0);
|
||||||
#else
|
#else
|
||||||
BN_ULONG n0,n1,rem=0;
|
BN_ULONG n0,n1,rem=0;
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ static ERR_STRING_DATA BN_str_functs[]=
|
|||||||
{ERR_PACK(0,BN_F_BN_MPI2BN,0), "BN_mpi2bn"},
|
{ERR_PACK(0,BN_F_BN_MPI2BN,0), "BN_mpi2bn"},
|
||||||
{ERR_PACK(0,BN_F_BN_NEW,0), "BN_new"},
|
{ERR_PACK(0,BN_F_BN_NEW,0), "BN_new"},
|
||||||
{ERR_PACK(0,BN_F_BN_RAND,0), "BN_rand"},
|
{ERR_PACK(0,BN_F_BN_RAND,0), "BN_rand"},
|
||||||
|
{ERR_PACK(0,BN_F_BN_RAND_RANGE,0), "BN_rand_range"},
|
||||||
{ERR_PACK(0,BN_F_BN_USUB,0), "BN_usub"},
|
{ERR_PACK(0,BN_F_BN_USUB,0), "BN_usub"},
|
||||||
{0,NULL}
|
{0,NULL}
|
||||||
};
|
};
|
||||||
@@ -92,11 +93,13 @@ static ERR_STRING_DATA BN_str_reasons[]=
|
|||||||
{
|
{
|
||||||
{BN_R_ARG2_LT_ARG3 ,"arg2 lt arg3"},
|
{BN_R_ARG2_LT_ARG3 ,"arg2 lt arg3"},
|
||||||
{BN_R_BAD_RECIPROCAL ,"bad reciprocal"},
|
{BN_R_BAD_RECIPROCAL ,"bad reciprocal"},
|
||||||
|
{BN_R_BIGNUM_TOO_LONG ,"bignum too long"},
|
||||||
{BN_R_CALLED_WITH_EVEN_MODULUS ,"called with even modulus"},
|
{BN_R_CALLED_WITH_EVEN_MODULUS ,"called with even modulus"},
|
||||||
{BN_R_DIV_BY_ZERO ,"div by zero"},
|
{BN_R_DIV_BY_ZERO ,"div by zero"},
|
||||||
{BN_R_ENCODING_ERROR ,"encoding error"},
|
{BN_R_ENCODING_ERROR ,"encoding error"},
|
||||||
{BN_R_EXPAND_ON_STATIC_BIGNUM_DATA ,"expand on static bignum data"},
|
{BN_R_EXPAND_ON_STATIC_BIGNUM_DATA ,"expand on static bignum data"},
|
||||||
{BN_R_INVALID_LENGTH ,"invalid length"},
|
{BN_R_INVALID_LENGTH ,"invalid length"},
|
||||||
|
{BN_R_INVALID_RANGE ,"invalid range"},
|
||||||
{BN_R_NOT_INITIALIZED ,"not initialized"},
|
{BN_R_NOT_INITIALIZED ,"not initialized"},
|
||||||
{BN_R_NO_INVERSE ,"no inverse"},
|
{BN_R_NO_INVERSE ,"no inverse"},
|
||||||
{BN_R_TOO_MANY_TEMPORARY_VARIABLES ,"too many temporary variables"},
|
{BN_R_TOO_MANY_TEMPORARY_VARIABLES ,"too many temporary variables"},
|
||||||
|
|||||||
@@ -113,12 +113,18 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "bn_lcl.h"
|
#include "bn_lcl.h"
|
||||||
|
#ifdef ATALLA
|
||||||
|
# include <alloca.h>
|
||||||
|
# include <atasi.h>
|
||||||
|
# include <assert.h>
|
||||||
|
# include <dlfcn.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define TABLE_SIZE 32
|
#define TABLE_SIZE 32
|
||||||
|
|
||||||
/* slow but works */
|
/* slow but works */
|
||||||
int BN_mod_mul(BIGNUM *ret, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
|
int BN_mod_mul(BIGNUM *ret, BIGNUM *a, BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
|
||||||
BN_CTX *ctx)
|
|
||||||
{
|
{
|
||||||
BIGNUM *t;
|
BIGNUM *t;
|
||||||
int r=0;
|
int r=0;
|
||||||
@@ -142,7 +148,7 @@ err:
|
|||||||
|
|
||||||
|
|
||||||
/* this one works - simple but works */
|
/* this one works - simple but works */
|
||||||
int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
|
int BN_exp(BIGNUM *r, BIGNUM *a, BIGNUM *p, BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int i,bits,ret=0;
|
int i,bits,ret=0;
|
||||||
BIGNUM *v,*rr;
|
BIGNUM *v,*rr;
|
||||||
@@ -177,7 +183,175 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
|
#ifdef ATALLA
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This routine will dynamically check for the existance of an Atalla AXL-200
|
||||||
|
* SSL accelerator module. If one is found, the variable
|
||||||
|
* asi_accelerator_present is set to 1 and the function pointers
|
||||||
|
* ptr_ASI_xxxxxx above will be initialized to corresponding ASI API calls.
|
||||||
|
*/
|
||||||
|
typedef int tfnASI_GetPerformanceStatistics(int reset_flag,
|
||||||
|
unsigned int *ret_buf);
|
||||||
|
typedef int tfnASI_GetHardwareConfig(long card_num, unsigned int *ret_buf);
|
||||||
|
typedef int tfnASI_RSAPrivateKeyOpFn(RSAPrivateKey * rsaKey,
|
||||||
|
unsigned char *output,
|
||||||
|
unsigned char *input,
|
||||||
|
unsigned int modulus_len);
|
||||||
|
|
||||||
|
static tfnASI_GetHardwareConfig *ptr_ASI_GetHardwareConfig;
|
||||||
|
static tfnASI_RSAPrivateKeyOpFn *ptr_ASI_RSAPrivateKeyOpFn;
|
||||||
|
static tfnASI_GetPerformanceStatistics *ptr_ASI_GetPerformanceStatistics;
|
||||||
|
static int asi_accelerator_present;
|
||||||
|
static int tried_atalla;
|
||||||
|
|
||||||
|
void atalla_initialize_accelerator_handle(void)
|
||||||
|
{
|
||||||
|
void *dl_handle;
|
||||||
|
int status;
|
||||||
|
unsigned int config_buf[1024];
|
||||||
|
static int tested;
|
||||||
|
|
||||||
|
if(tested)
|
||||||
|
return;
|
||||||
|
|
||||||
|
tested=1;
|
||||||
|
|
||||||
|
bzero((void *)config_buf, 1024);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Check to see if the library is present on the system
|
||||||
|
*/
|
||||||
|
dl_handle = dlopen("atasi.so", RTLD_NOW);
|
||||||
|
if (dl_handle == (void *) NULL)
|
||||||
|
{
|
||||||
|
/* printf("atasi.so library is not present on the system\n");
|
||||||
|
printf("No HW acceleration available\n");*/
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The library is present. Now we'll check to insure that the
|
||||||
|
* LDM is up and running. First we'll get the address of the
|
||||||
|
* function in the atasi library that we need to see if the
|
||||||
|
* LDM is operating.
|
||||||
|
*/
|
||||||
|
|
||||||
|
ptr_ASI_GetHardwareConfig =
|
||||||
|
(tfnASI_GetHardwareConfig *)dlsym(dl_handle,"ASI_GetHardwareConfig");
|
||||||
|
|
||||||
|
if (ptr_ASI_GetHardwareConfig)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* We found the call, now we'll get our config
|
||||||
|
* status. If we get a non 0 result, the LDM is not
|
||||||
|
* running and we cannot use the Atalla ASI *
|
||||||
|
* library.
|
||||||
|
*/
|
||||||
|
status = (*ptr_ASI_GetHardwareConfig)(0L, config_buf);
|
||||||
|
if (status != 0)
|
||||||
|
{
|
||||||
|
printf("atasi.so library is present but not initialized\n");
|
||||||
|
printf("No HW acceleration available\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* printf("We found the library, but not the function. Very Strange!\n");*/
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* It looks like we have acceleration capabilities. Load up the
|
||||||
|
* pointers to our ASI API calls.
|
||||||
|
*/
|
||||||
|
ptr_ASI_RSAPrivateKeyOpFn=
|
||||||
|
(tfnASI_RSAPrivateKeyOpFn *)dlsym(dl_handle, "ASI_RSAPrivateKeyOpFn");
|
||||||
|
if (ptr_ASI_RSAPrivateKeyOpFn == NULL)
|
||||||
|
{
|
||||||
|
/* printf("We found the library, but no RSA function. Very Strange!\n");*/
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ptr_ASI_GetPerformanceStatistics =
|
||||||
|
(tfnASI_GetPerformanceStatistics *)dlsym(dl_handle, "ASI_GetPerformanceStatistics");
|
||||||
|
if (ptr_ASI_GetPerformanceStatistics == NULL)
|
||||||
|
{
|
||||||
|
/* printf("We found the library, but no stat function. Very Strange!\n");*/
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Indicate that acceleration is available
|
||||||
|
*/
|
||||||
|
asi_accelerator_present = 1;
|
||||||
|
|
||||||
|
/* printf("This system has acceleration!\n");*/
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* make sure this only gets called once when bn_mod_exp calls bn_mod_exp_mont */
|
||||||
|
int BN_mod_exp_atalla(BIGNUM *r, BIGNUM *a, const BIGNUM *p, const BIGNUM *m)
|
||||||
|
{
|
||||||
|
unsigned char *abin;
|
||||||
|
unsigned char *pbin;
|
||||||
|
unsigned char *mbin;
|
||||||
|
unsigned char *rbin;
|
||||||
|
int an,pn,mn,ret;
|
||||||
|
RSAPrivateKey keydata;
|
||||||
|
|
||||||
|
atalla_initialize_accelerator_handle();
|
||||||
|
if(!asi_accelerator_present)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
|
/* We should be able to run without size testing */
|
||||||
|
# define ASIZE 128
|
||||||
|
an=BN_num_bytes(a);
|
||||||
|
pn=BN_num_bytes(p);
|
||||||
|
mn=BN_num_bytes(m);
|
||||||
|
|
||||||
|
if(an <= ASIZE && pn <= ASIZE && mn <= ASIZE)
|
||||||
|
{
|
||||||
|
int size=mn;
|
||||||
|
|
||||||
|
assert(an <= mn);
|
||||||
|
abin=alloca(size);
|
||||||
|
memset(abin,'\0',mn);
|
||||||
|
BN_bn2bin(a,abin+size-an);
|
||||||
|
|
||||||
|
pbin=alloca(pn);
|
||||||
|
BN_bn2bin(p,pbin);
|
||||||
|
|
||||||
|
mbin=alloca(size);
|
||||||
|
memset(mbin,'\0',mn);
|
||||||
|
BN_bn2bin(m,mbin+size-mn);
|
||||||
|
|
||||||
|
rbin=alloca(size);
|
||||||
|
|
||||||
|
memset(&keydata,'\0',sizeof keydata);
|
||||||
|
keydata.privateExponent.data=pbin;
|
||||||
|
keydata.privateExponent.len=pn;
|
||||||
|
keydata.modulus.data=mbin;
|
||||||
|
keydata.modulus.len=size;
|
||||||
|
|
||||||
|
ret=(*ptr_ASI_RSAPrivateKeyOpFn)(&keydata,rbin,abin,keydata.modulus.len);
|
||||||
|
/*fprintf(stderr,"!%s\n",BN_bn2hex(a));*/
|
||||||
|
if(!ret)
|
||||||
|
{
|
||||||
|
BN_bin2bn(rbin,keydata.modulus.len,r);
|
||||||
|
/*fprintf(stderr,"?%s\n",BN_bn2hex(r));*/
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif /* def ATALLA */
|
||||||
|
|
||||||
|
|
||||||
|
int BN_mod_exp(BIGNUM *r, BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
|
||||||
BN_CTX *ctx)
|
BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
@@ -186,6 +360,13 @@ int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
|
|||||||
bn_check_top(p);
|
bn_check_top(p);
|
||||||
bn_check_top(m);
|
bn_check_top(m);
|
||||||
|
|
||||||
|
#ifdef ATALLA
|
||||||
|
if(BN_mod_exp_atalla(r,a,p,m))
|
||||||
|
return 1;
|
||||||
|
/* If it fails, try the other methods (but don't try atalla again) */
|
||||||
|
tried_atalla=1;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MONT_MUL_MOD
|
#ifdef MONT_MUL_MOD
|
||||||
/* I have finally been able to take out this pre-condition of
|
/* I have finally been able to take out this pre-condition of
|
||||||
* the top bit being set. It was caused by an error in BN_div
|
* the top bit being set. It was caused by an error in BN_div
|
||||||
@@ -211,6 +392,10 @@ int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
|
|||||||
{ ret=BN_mod_exp_simple(r,a,p,m,ctx); }
|
{ ret=BN_mod_exp_simple(r,a,p,m,ctx); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ATALLA
|
||||||
|
tried_atalla=0;
|
||||||
|
#endif
|
||||||
|
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,13 +511,13 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
|
int BN_mod_exp_mont(BIGNUM *rr, BIGNUM *a, const BIGNUM *p,
|
||||||
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
|
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
|
||||||
{
|
{
|
||||||
int i,j,bits,ret=0,wstart,wend,window,wvalue;
|
int i,j,bits,ret=0,wstart,wend,window,wvalue;
|
||||||
int start=1,ts=0;
|
int start=1,ts=0;
|
||||||
BIGNUM *d,*r;
|
BIGNUM *d,*r;
|
||||||
const BIGNUM *aa;
|
BIGNUM *aa;
|
||||||
BIGNUM val[TABLE_SIZE];
|
BIGNUM val[TABLE_SIZE];
|
||||||
BN_MONT_CTX *mont=NULL;
|
BN_MONT_CTX *mont=NULL;
|
||||||
|
|
||||||
@@ -340,6 +525,12 @@ int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
|
|||||||
bn_check_top(p);
|
bn_check_top(p);
|
||||||
bn_check_top(m);
|
bn_check_top(m);
|
||||||
|
|
||||||
|
#ifdef ATALLA
|
||||||
|
if(!tried_atalla && BN_mod_exp_atalla(rr,a,p,m))
|
||||||
|
return 1;
|
||||||
|
/* If it fails, try the other methods */
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!(m->d[0] & 1))
|
if (!(m->d[0] & 1))
|
||||||
{
|
{
|
||||||
BNerr(BN_F_BN_MOD_EXP_MONT,BN_R_CALLED_WITH_EVEN_MODULUS);
|
BNerr(BN_F_BN_MOD_EXP_MONT,BN_R_CALLED_WITH_EVEN_MODULUS);
|
||||||
@@ -502,6 +693,19 @@ int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
|
|||||||
t = BN_CTX_get(ctx);
|
t = BN_CTX_get(ctx);
|
||||||
if (d == NULL || r == NULL || t == NULL) goto err;
|
if (d == NULL || r == NULL || t == NULL) goto err;
|
||||||
|
|
||||||
|
#ifdef ATALLA
|
||||||
|
if (!tried_atalla)
|
||||||
|
{
|
||||||
|
BN_set_word(t, a);
|
||||||
|
if (BN_mod_exp_atalla(rr, t, p, m))
|
||||||
|
{
|
||||||
|
BN_CTX_end(ctx);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* If it fails, try the other methods */
|
||||||
|
#endif
|
||||||
|
|
||||||
if (in_mont != NULL)
|
if (in_mont != NULL)
|
||||||
mont=in_mont;
|
mont=in_mont;
|
||||||
else
|
else
|
||||||
@@ -591,9 +795,8 @@ err:
|
|||||||
|
|
||||||
|
|
||||||
/* The old fallback, simple version :-) */
|
/* The old fallback, simple version :-) */
|
||||||
int BN_mod_exp_simple(BIGNUM *r,
|
int BN_mod_exp_simple(BIGNUM *r, BIGNUM *a, BIGNUM *p, BIGNUM *m,
|
||||||
const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
|
BN_CTX *ctx)
|
||||||
BN_CTX *ctx)
|
|
||||||
{
|
{
|
||||||
int i,j,bits,ret=0,wstart,wend,window,wvalue,ts=0;
|
int i,j,bits,ret=0,wstart,wend,window,wvalue,ts=0;
|
||||||
int start=1;
|
int start=1;
|
||||||
|
|||||||
@@ -115,14 +115,13 @@
|
|||||||
|
|
||||||
#define TABLE_SIZE 32
|
#define TABLE_SIZE 32
|
||||||
|
|
||||||
int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
|
int BN_mod_exp2_mont(BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, BIGNUM *a2,
|
||||||
const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,
|
BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
|
||||||
BN_CTX *ctx, BN_MONT_CTX *in_mont)
|
|
||||||
{
|
{
|
||||||
int i,j,bits,b,bits1,bits2,ret=0,wpos1,wpos2,window1,window2,wvalue1,wvalue2;
|
int i,j,bits,b,bits1,bits2,ret=0,wpos1,wpos2,window1,window2,wvalue1,wvalue2;
|
||||||
int r_is_one=1,ts1=0,ts2=0;
|
int r_is_one=1,ts1=0,ts2=0;
|
||||||
BIGNUM *d,*r;
|
BIGNUM *d,*r;
|
||||||
const BIGNUM *a_mod_m;
|
BIGNUM *a_mod_m;
|
||||||
BIGNUM val1[TABLE_SIZE], val2[TABLE_SIZE];
|
BIGNUM val1[TABLE_SIZE], val2[TABLE_SIZE];
|
||||||
BN_MONT_CTX *mont=NULL;
|
BN_MONT_CTX *mont=NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -144,8 +144,7 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* solves ax == 1 (mod n) */
|
/* solves ax == 1 (mod n) */
|
||||||
BIGNUM *BN_mod_inverse(BIGNUM *in,
|
BIGNUM *BN_mod_inverse(BIGNUM *in, BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
|
||||||
const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
|
|
||||||
{
|
{
|
||||||
BIGNUM *A,*B,*X,*Y,*M,*D,*R=NULL;
|
BIGNUM *A,*B,*X,*Y,*M,*D,*R=NULL;
|
||||||
BIGNUM *T,*ret=NULL;
|
BIGNUM *T,*ret=NULL;
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "bn_lcl.h"
|
#include "bn_lcl.h"
|
||||||
@@ -304,35 +305,48 @@ BIGNUM *BN_new(void)
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is used both by bn_expand2() and bn_dup_expand() */
|
/* This is an internal function that should not be used in applications.
|
||||||
/* The caller MUST check that words > b->dmax before calling this */
|
* It ensures that 'b' has enough room for a 'words' word number number.
|
||||||
static BN_ULONG *internal_bn_expand(const BIGNUM *b, int words)
|
* It is mostly used by the various BIGNUM routines. If there is an error,
|
||||||
|
* NULL is returned. If not, 'b' is returned. */
|
||||||
|
|
||||||
|
BIGNUM *bn_expand2(BIGNUM *b, int words)
|
||||||
{
|
{
|
||||||
BN_ULONG *A,*a = NULL;
|
BN_ULONG *A,*a;
|
||||||
const BN_ULONG *B;
|
const BN_ULONG *B;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
bn_check_top(b);
|
bn_check_top(b);
|
||||||
if (BN_get_flags(b,BN_FLG_STATIC_DATA))
|
|
||||||
|
if (words > b->dmax)
|
||||||
{
|
{
|
||||||
BNerr(BN_F_BN_EXPAND2,BN_R_EXPAND_ON_STATIC_BIGNUM_DATA);
|
if (words > (INT_MAX/(4*BN_BITS2)))
|
||||||
return(NULL);
|
{
|
||||||
}
|
BNerr(BN_F_BN_EXPAND2,BN_R_BIGNUM_TOO_LONG);
|
||||||
a=A=(BN_ULONG *)OPENSSL_malloc(sizeof(BN_ULONG)*(words+1));
|
return NULL;
|
||||||
if (A == NULL)
|
}
|
||||||
{
|
|
||||||
BNerr(BN_F_BN_EXPAND2,ERR_R_MALLOC_FAILURE);
|
bn_check_top(b);
|
||||||
return(NULL);
|
if (BN_get_flags(b,BN_FLG_STATIC_DATA))
|
||||||
}
|
{
|
||||||
|
BNerr(BN_F_BN_EXPAND2,BN_R_EXPAND_ON_STATIC_BIGNUM_DATA);
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
|
a=A=(BN_ULONG *)OPENSSL_malloc(sizeof(BN_ULONG)*(words+1));
|
||||||
|
if (A == NULL)
|
||||||
|
{
|
||||||
|
BNerr(BN_F_BN_EXPAND2,ERR_R_MALLOC_FAILURE);
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
#if 1
|
#if 1
|
||||||
B=b->d;
|
B=b->d;
|
||||||
/* Check if the previous number needs to be copied */
|
/* Check if the previous number needs to be copied */
|
||||||
if (B != NULL)
|
if (B != NULL)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
/* This lot is an unrolled loop to copy b->top
|
/* This lot is an unrolled loop to copy b->top
|
||||||
* BN_ULONGs from B to A
|
* BN_ULONGs from B to A
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* I have nothing against unrolling but it's usually done for
|
* I have nothing against unrolling but it's usually done for
|
||||||
* several reasons, namely:
|
* several reasons, namely:
|
||||||
@@ -356,170 +370,107 @@ static BN_ULONG *internal_bn_expand(const BIGNUM *b, int words)
|
|||||||
*
|
*
|
||||||
* <appro@fy.chalmers.se>
|
* <appro@fy.chalmers.se>
|
||||||
*/
|
*/
|
||||||
for (i=b->top&(~7); i>0; i-=8)
|
for (i=b->top&(~7); i>0; i-=8)
|
||||||
{
|
{
|
||||||
A[0]=B[0]; A[1]=B[1]; A[2]=B[2]; A[3]=B[3];
|
A[0]=B[0]; A[1]=B[1]; A[2]=B[2]; A[3]=B[3];
|
||||||
A[4]=B[4]; A[5]=B[5]; A[6]=B[6]; A[7]=B[7];
|
A[4]=B[4]; A[5]=B[5]; A[6]=B[6]; A[7]=B[7];
|
||||||
A+=8;
|
A+=8;
|
||||||
B+=8;
|
B+=8;
|
||||||
}
|
}
|
||||||
switch (b->top&7)
|
switch (b->top&7)
|
||||||
{
|
{
|
||||||
case 7:
|
case 7:
|
||||||
A[6]=B[6];
|
A[6]=B[6];
|
||||||
case 6:
|
case 6:
|
||||||
A[5]=B[5];
|
A[5]=B[5];
|
||||||
case 5:
|
case 5:
|
||||||
A[4]=B[4];
|
A[4]=B[4];
|
||||||
case 4:
|
case 4:
|
||||||
A[3]=B[3];
|
A[3]=B[3];
|
||||||
case 3:
|
case 3:
|
||||||
A[2]=B[2];
|
A[2]=B[2];
|
||||||
case 2:
|
case 2:
|
||||||
A[1]=B[1];
|
A[1]=B[1];
|
||||||
case 1:
|
case 1:
|
||||||
A[0]=B[0];
|
A[0]=B[0];
|
||||||
case 0:
|
case 0:
|
||||||
/* I need the 'case 0' entry for utrix cc.
|
/* I need the 'case 0' entry for utrix cc.
|
||||||
* If the optimizer is turned on, it does the
|
* If the optimizer is turned on, it does the
|
||||||
* switch table by doing
|
* switch table by doing
|
||||||
* a=top&7
|
* a=top&7
|
||||||
* a--;
|
* a--;
|
||||||
* goto jump_table[a];
|
* goto jump_table[a];
|
||||||
* If top is 0, this makes us jump to 0xffffffc
|
* If top is 0, this makes us jump to 0xffffffc
|
||||||
* which is rather bad :-(.
|
* which is rather bad :-(.
|
||||||
* eric 23-Apr-1998
|
* eric 23-Apr-1998
|
||||||
*/
|
*/
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
for (i=b->top>>2; i>0; i--,A+=4,B+=4)
|
for (i=b->top>>2; i>0; i--,A+=4,B+=4)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* The fact that the loop is unrolled
|
* The fact that the loop is unrolled
|
||||||
* 4-wise is a tribute to Intel. It's
|
* 4-wise is a tribute to Intel. It's
|
||||||
* the one that doesn't have enough
|
* the one that doesn't have enough
|
||||||
* registers to accomodate more data.
|
* registers to accomodate more data.
|
||||||
* I'd unroll it 8-wise otherwise:-)
|
* I'd unroll it 8-wise otherwise:-)
|
||||||
*
|
*
|
||||||
* <appro@fy.chalmers.se>
|
* <appro@fy.chalmers.se>
|
||||||
*/
|
*/
|
||||||
BN_ULONG a0,a1,a2,a3;
|
BN_ULONG a0,a1,a2,a3;
|
||||||
a0=B[0]; a1=B[1]; a2=B[2]; a3=B[3];
|
a0=B[0]; a1=B[1]; a2=B[2]; a3=B[3];
|
||||||
A[0]=a0; A[1]=a1; A[2]=a2; A[3]=a3;
|
A[0]=a0; A[1]=a1; A[2]=a2; A[3]=a3;
|
||||||
}
|
}
|
||||||
switch (b->top&3)
|
switch (b->top&3)
|
||||||
{
|
{
|
||||||
case 3: A[2]=B[2];
|
case 3: A[2]=B[2];
|
||||||
case 2: A[1]=B[1];
|
case 2: A[1]=B[1];
|
||||||
case 1: A[0]=B[0];
|
case 1: A[0]=B[0];
|
||||||
case 0: ; /* ultrix cc workaround, see above */
|
case 0: ; /* ultrix cc workaround, see above */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
OPENSSL_free(b->d);
|
||||||
|
}
|
||||||
|
|
||||||
/* Now need to zero any data between b->top and b->max */
|
b->d=a;
|
||||||
|
b->dmax=words;
|
||||||
|
|
||||||
A= &(a[b->top]);
|
/* Now need to zero any data between b->top and b->max */
|
||||||
for (i=(words - b->top)>>3; i>0; i--,A+=8)
|
|
||||||
{
|
A= &(b->d[b->top]);
|
||||||
A[0]=0; A[1]=0; A[2]=0; A[3]=0;
|
for (i=(b->dmax - b->top)>>3; i>0; i--,A+=8)
|
||||||
A[4]=0; A[5]=0; A[6]=0; A[7]=0;
|
{
|
||||||
}
|
A[0]=0; A[1]=0; A[2]=0; A[3]=0;
|
||||||
for (i=(words - b->top)&7; i>0; i--,A++)
|
A[4]=0; A[5]=0; A[6]=0; A[7]=0;
|
||||||
A[0]=0;
|
}
|
||||||
|
for (i=(b->dmax - b->top)&7; i>0; i--,A++)
|
||||||
|
A[0]=0;
|
||||||
#else
|
#else
|
||||||
memset(A,0,sizeof(BN_ULONG)*(words+1));
|
memset(A,0,sizeof(BN_ULONG)*(words+1));
|
||||||
memcpy(A,b->d,sizeof(b->d[0])*b->top);
|
memcpy(A,b->d,sizeof(b->d[0])*b->top);
|
||||||
|
b->d=a;
|
||||||
|
b->max=words;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return(a);
|
/* memset(&(p[b->max]),0,((words+1)-b->max)*sizeof(BN_ULONG)); */
|
||||||
}
|
/* { int i; for (i=b->max; i<words+1; i++) p[i]=i;} */
|
||||||
|
|
||||||
/* This is an internal function that can be used instead of bn_expand2()
|
|
||||||
* when there is a need to copy BIGNUMs instead of only expanding the
|
|
||||||
* data part, while still expanding them.
|
|
||||||
* Especially useful when needing to expand BIGNUMs that are declared
|
|
||||||
* 'const' and should therefore not be changed.
|
|
||||||
* The reason to use this instead of a BN_dup() followed by a bn_expand2()
|
|
||||||
* is memory allocation overhead. A BN_dup() followed by a bn_expand2()
|
|
||||||
* will allocate new memory for the BIGNUM data twice, and free it once,
|
|
||||||
* while bn_dup_expand() makes sure allocation is made only once.
|
|
||||||
*/
|
|
||||||
|
|
||||||
BIGNUM *bn_dup_expand(const BIGNUM *b, int words)
|
|
||||||
{
|
|
||||||
BIGNUM *r = NULL;
|
|
||||||
|
|
||||||
if (words > b->dmax)
|
|
||||||
{
|
|
||||||
BN_ULONG *a = internal_bn_expand(b, words);
|
|
||||||
|
|
||||||
if (a)
|
|
||||||
{
|
|
||||||
r = BN_new();
|
|
||||||
if (r)
|
|
||||||
{
|
|
||||||
r->top = b->top;
|
|
||||||
r->dmax = words;
|
|
||||||
r->neg = b->neg;
|
|
||||||
r->d = a;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* r == NULL, BN_new failure */
|
|
||||||
OPENSSL_free(a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* If a == NULL, there was an error in allocation in
|
|
||||||
internal_bn_expand(), and NULL should be returned */
|
|
||||||
}
|
}
|
||||||
else
|
return(b);
|
||||||
{
|
|
||||||
r = BN_dup(b);
|
|
||||||
}
|
|
||||||
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is an internal function that should not be used in applications.
|
|
||||||
* It ensures that 'b' has enough room for a 'words' word number number.
|
|
||||||
* It is mostly used by the various BIGNUM routines. If there is an error,
|
|
||||||
* NULL is returned. If not, 'b' is returned. */
|
|
||||||
|
|
||||||
BIGNUM *bn_expand2(BIGNUM *b, int words)
|
|
||||||
{
|
|
||||||
if (words > b->dmax)
|
|
||||||
{
|
|
||||||
BN_ULONG *a = internal_bn_expand(b, words);
|
|
||||||
|
|
||||||
if (a)
|
|
||||||
{
|
|
||||||
OPENSSL_free(b->d);
|
|
||||||
b->d=a;
|
|
||||||
b->dmax=words;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
b = NULL;
|
|
||||||
}
|
|
||||||
return b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BIGNUM *BN_dup(const BIGNUM *a)
|
BIGNUM *BN_dup(const BIGNUM *a)
|
||||||
{
|
{
|
||||||
BIGNUM *r, *t;
|
BIGNUM *r;
|
||||||
|
|
||||||
if (a == NULL) return NULL;
|
if (a == NULL) return NULL;
|
||||||
|
|
||||||
bn_check_top(a);
|
bn_check_top(a);
|
||||||
|
|
||||||
t = BN_new();
|
r=BN_new();
|
||||||
if (t == NULL) return(NULL);
|
if (r == NULL) return(NULL);
|
||||||
r = BN_copy(t, a);
|
return((BIGNUM *)BN_copy(r,a));
|
||||||
/* now r == t || r == NULL */
|
|
||||||
if (r == NULL)
|
|
||||||
BN_free(t);
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
|
BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
|
||||||
@@ -569,7 +520,7 @@ void BN_clear(BIGNUM *a)
|
|||||||
a->neg=0;
|
a->neg=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
BN_ULONG BN_get_word(const BIGNUM *a)
|
BN_ULONG BN_get_word(BIGNUM *a)
|
||||||
{
|
{
|
||||||
int i,n;
|
int i,n;
|
||||||
BN_ULONG ret=0;
|
BN_ULONG ret=0;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
#define MONT_WORD /* use the faster word-based algorithm */
|
#define MONT_WORD /* use the faster word-based algorithm */
|
||||||
|
|
||||||
int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
|
int BN_mod_mul_montgomery(BIGNUM *r, BIGNUM *a, BIGNUM *b,
|
||||||
BN_MONT_CTX *mont, BN_CTX *ctx)
|
BN_MONT_CTX *mont, BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
BIGNUM *tmp,*tmp2;
|
BIGNUM *tmp,*tmp2;
|
||||||
|
|||||||
@@ -608,7 +608,7 @@ void bn_mul_high(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, BN_ULONG *l, int n2,
|
|||||||
}
|
}
|
||||||
#endif /* BN_RECURSION */
|
#endif /* BN_RECURSION */
|
||||||
|
|
||||||
int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
|
int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int top,al,bl;
|
int top,al,bl;
|
||||||
BIGNUM *rr;
|
BIGNUM *rr;
|
||||||
@@ -620,7 +620,6 @@ int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
|
|||||||
BIGNUM *t;
|
BIGNUM *t;
|
||||||
int j,k;
|
int j,k;
|
||||||
#endif
|
#endif
|
||||||
BIGNUM *free_a = NULL, *free_b = NULL;
|
|
||||||
|
|
||||||
#ifdef BN_COUNT
|
#ifdef BN_COUNT
|
||||||
printf("BN_mul %d * %d\n",a->top,b->top);
|
printf("BN_mul %d * %d\n",a->top,b->top);
|
||||||
@@ -678,21 +677,17 @@ int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
|
|||||||
{
|
{
|
||||||
if (i == 1 && !BN_get_flags(b,BN_FLG_STATIC_DATA))
|
if (i == 1 && !BN_get_flags(b,BN_FLG_STATIC_DATA))
|
||||||
{
|
{
|
||||||
BIGNUM *tmp_bn = free_b;
|
bn_wexpand(b,al);
|
||||||
b = free_b = bn_dup_expand(b,al);
|
b->d[bl]=0;
|
||||||
free_b->d[bl]=0;
|
|
||||||
bl++;
|
bl++;
|
||||||
i--;
|
i--;
|
||||||
if (tmp_bn) BN_free(tmp_bn);
|
|
||||||
}
|
}
|
||||||
else if (i == -1 && !BN_get_flags(a,BN_FLG_STATIC_DATA))
|
else if (i == -1 && !BN_get_flags(a,BN_FLG_STATIC_DATA))
|
||||||
{
|
{
|
||||||
BIGNUM *tmp_bn = free_a;
|
bn_wexpand(a,bl);
|
||||||
a = free_a = bn_dup_expand(a,bl);
|
a->d[al]=0;
|
||||||
free_a->d[al]=0;
|
|
||||||
al++;
|
al++;
|
||||||
i++;
|
i++;
|
||||||
if (tmp_bn) BN_free(tmp_bn);
|
|
||||||
}
|
}
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
@@ -710,17 +705,14 @@ int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BIGNUM *tmp_a = free_a,*tmp_b = free_b;
|
bn_wexpand(a,k);
|
||||||
a = free_a = bn_dup_expand(a,k);
|
bn_wexpand(b,k);
|
||||||
b = free_b = bn_dup_expand(b,k);
|
|
||||||
if (tmp_a) BN_free(tmp_a);
|
|
||||||
if (tmp_b) BN_free(tmp_b);
|
|
||||||
bn_wexpand(t,k*4);
|
bn_wexpand(t,k*4);
|
||||||
bn_wexpand(rr,k*4);
|
bn_wexpand(rr,k*4);
|
||||||
for (i=free_a->top; i<k; i++)
|
for (i=a->top; i<k; i++)
|
||||||
free_a->d[i]=0;
|
a->d[i]=0;
|
||||||
for (i=free_b->top; i<k; i++)
|
for (i=b->top; i<k; i++)
|
||||||
free_b->d[i]=0;
|
b->d[i]=0;
|
||||||
bn_mul_part_recursive(rr->d,a->d,b->d,al-j,j,t->d);
|
bn_mul_part_recursive(rr->d,a->d,b->d,al-j,j,t->d);
|
||||||
}
|
}
|
||||||
rr->top=top;
|
rr->top=top;
|
||||||
@@ -739,8 +731,6 @@ end:
|
|||||||
if (r != rr) BN_copy(r,rr);
|
if (r != rr) BN_copy(r,rr);
|
||||||
ret=1;
|
ret=1;
|
||||||
err:
|
err:
|
||||||
if (free_a) BN_free(free_a);
|
|
||||||
if (free_b) BN_free(free_b);
|
|
||||||
BN_CTX_end(ctx);
|
BN_CTX_end(ctx);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,13 +125,12 @@ static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
|
|||||||
const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
|
const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
|
||||||
static int probable_prime(BIGNUM *rnd, int bits);
|
static int probable_prime(BIGNUM *rnd, int bits);
|
||||||
static int probable_prime_dh(BIGNUM *rnd, int bits,
|
static int probable_prime_dh(BIGNUM *rnd, int bits,
|
||||||
const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
|
BIGNUM *add, BIGNUM *rem, BN_CTX *ctx);
|
||||||
static int probable_prime_dh_safe(BIGNUM *rnd, int bits,
|
static int probable_prime_dh_safe(BIGNUM *rnd, int bits,
|
||||||
const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
|
BIGNUM *add, BIGNUM *rem, BN_CTX *ctx);
|
||||||
|
|
||||||
BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,
|
BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, BIGNUM *add,
|
||||||
const BIGNUM *add, const BIGNUM *rem,
|
BIGNUM *rem, void (*callback)(int,int,void *), void *cb_arg)
|
||||||
void (*callback)(int,int,void *), void *cb_arg)
|
|
||||||
{
|
{
|
||||||
BIGNUM *rnd=NULL;
|
BIGNUM *rnd=NULL;
|
||||||
BIGNUM t;
|
BIGNUM t;
|
||||||
@@ -226,12 +225,15 @@ int BN_is_prime_fasttest(const BIGNUM *a, int checks,
|
|||||||
BN_MONT_CTX *mont = NULL;
|
BN_MONT_CTX *mont = NULL;
|
||||||
const BIGNUM *A = NULL;
|
const BIGNUM *A = NULL;
|
||||||
|
|
||||||
|
if (BN_cmp(a, BN_value_one()) <= 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (checks == BN_prime_checks)
|
if (checks == BN_prime_checks)
|
||||||
checks = BN_prime_checks_for_size(BN_num_bits(a));
|
checks = BN_prime_checks_for_size(BN_num_bits(a));
|
||||||
|
|
||||||
/* first look for small factors */
|
/* first look for small factors */
|
||||||
if (!BN_is_odd(a))
|
if (!BN_is_odd(a))
|
||||||
return(0);
|
return 0;
|
||||||
if (do_trial_division)
|
if (do_trial_division)
|
||||||
{
|
{
|
||||||
for (i = 1; i < NUMPRIMES; i++)
|
for (i = 1; i < NUMPRIMES; i++)
|
||||||
@@ -290,11 +292,8 @@ int BN_is_prime_fasttest(const BIGNUM *a, int checks,
|
|||||||
|
|
||||||
for (i = 0; i < checks; i++)
|
for (i = 0; i < checks; i++)
|
||||||
{
|
{
|
||||||
if (!BN_pseudo_rand(check, BN_num_bits(A1), 0, 0))
|
if (!BN_pseudo_rand_range(check, A1))
|
||||||
goto err;
|
goto err;
|
||||||
if (BN_cmp(check, A1) >= 0)
|
|
||||||
if (!BN_sub(check, check, A1))
|
|
||||||
goto err;
|
|
||||||
if (!BN_add_word(check, 1))
|
if (!BN_add_word(check, 1))
|
||||||
goto err;
|
goto err;
|
||||||
/* now 1 <= check < A */
|
/* now 1 <= check < A */
|
||||||
@@ -377,8 +376,8 @@ again:
|
|||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int probable_prime_dh(BIGNUM *rnd, int bits,
|
static int probable_prime_dh(BIGNUM *rnd, int bits, BIGNUM *add, BIGNUM *rem,
|
||||||
const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx)
|
BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int i,ret=0;
|
int i,ret=0;
|
||||||
BIGNUM *t1;
|
BIGNUM *t1;
|
||||||
@@ -414,8 +413,8 @@ err:
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int probable_prime_dh_safe(BIGNUM *p, int bits, const BIGNUM *padd,
|
static int probable_prime_dh_safe(BIGNUM *p, int bits, BIGNUM *padd,
|
||||||
const BIGNUM *rem, BN_CTX *ctx)
|
BIGNUM *rem, BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int i,ret=0;
|
int i,ret=0;
|
||||||
BIGNUM *t1,*qadd,*q;
|
BIGNUM *t1,*qadd,*q;
|
||||||
|
|||||||
@@ -55,6 +55,59 @@
|
|||||||
* copied and put under another distribution licence
|
* copied and put under another distribution licence
|
||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
/* ====================================================================
|
||||||
|
* Copyright (c) 1998-2001 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).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@@ -76,7 +129,7 @@ static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
|
|||||||
|
|
||||||
bytes=(bits+7)/8;
|
bytes=(bits+7)/8;
|
||||||
bit=(bits-1)%8;
|
bit=(bits-1)%8;
|
||||||
mask=0xff<<bit;
|
mask=0xff<<(bit+1);
|
||||||
|
|
||||||
buf=(unsigned char *)OPENSSL_malloc(bytes);
|
buf=(unsigned char *)OPENSSL_malloc(bytes);
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
@@ -100,25 +153,48 @@ static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (top)
|
#if 1
|
||||||
|
if (pseudorand == 2)
|
||||||
{
|
{
|
||||||
if (bit == 0)
|
/* generate patterns that are more likely to trigger BN
|
||||||
|
library bugs */
|
||||||
|
int i;
|
||||||
|
unsigned char c;
|
||||||
|
|
||||||
|
for (i = 0; i < bytes; i++)
|
||||||
{
|
{
|
||||||
buf[0]=1;
|
RAND_pseudo_bytes(&c, 1);
|
||||||
buf[1]|=0x80;
|
if (c >= 128 && i > 0)
|
||||||
|
buf[i] = buf[i-1];
|
||||||
|
else if (c < 42)
|
||||||
|
buf[i] = 0;
|
||||||
|
else if (c < 84)
|
||||||
|
buf[i] = 255;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (top != -1)
|
||||||
|
{
|
||||||
|
if (top)
|
||||||
|
{
|
||||||
|
if (bit == 0)
|
||||||
|
{
|
||||||
|
buf[0]=1;
|
||||||
|
buf[1]|=0x80;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
buf[0]|=(3<<(bit-1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buf[0]|=(3<<(bit-1));
|
buf[0]|=(1<<bit);
|
||||||
buf[0]&= ~(mask<<1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
buf[0] &= ~mask;
|
||||||
{
|
if (bottom) /* set bottom bit if requested */
|
||||||
buf[0]|=(1<<bit);
|
|
||||||
buf[0]&= ~(mask<<1);
|
|
||||||
}
|
|
||||||
if (bottom) /* set bottom bits to whatever odd is */
|
|
||||||
buf[bytes-1]|=1;
|
buf[bytes-1]|=1;
|
||||||
if (!BN_bin2bn(buf,bytes,rnd)) goto err;
|
if (!BN_bin2bn(buf,bytes,rnd)) goto err;
|
||||||
ret=1;
|
ret=1;
|
||||||
@@ -140,3 +216,75 @@ int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
|
|||||||
{
|
{
|
||||||
return bnrand(1, rnd, bits, top, bottom);
|
return bnrand(1, rnd, bits, top, bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 1
|
||||||
|
int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
|
||||||
|
{
|
||||||
|
return bnrand(2, rnd, bits, top, bottom);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* random number r: 0 <= r < range */
|
||||||
|
static int bn_rand_range(int pseudo, BIGNUM *r, BIGNUM *range)
|
||||||
|
{
|
||||||
|
int (*bn_rand)(BIGNUM *, int, int, int) = pseudo ? BN_pseudo_rand : BN_rand;
|
||||||
|
int n;
|
||||||
|
|
||||||
|
if (range->neg || BN_is_zero(range))
|
||||||
|
{
|
||||||
|
BNerr(BN_F_BN_RAND_RANGE, BN_R_INVALID_RANGE);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
n = BN_num_bits(range); /* n > 0 */
|
||||||
|
|
||||||
|
/* BN_is_bit_set(range, n - 1) always holds */
|
||||||
|
|
||||||
|
if (n == 1)
|
||||||
|
{
|
||||||
|
if (!BN_zero(r)) return 0;
|
||||||
|
}
|
||||||
|
else if (!BN_is_bit_set(range, n - 2) && !BN_is_bit_set(range, n - 3))
|
||||||
|
{
|
||||||
|
/* range = 100..._2,
|
||||||
|
* so 3*range (= 11..._2) is exactly one bit longer than range */
|
||||||
|
do
|
||||||
|
{
|
||||||
|
if (!bn_rand(r, n + 1, -1, 0)) return 0;
|
||||||
|
/* If r < 3*range, use r := r MOD range
|
||||||
|
* (which is either r, r - range, or r - 2*range).
|
||||||
|
* Otherwise, iterate once more.
|
||||||
|
* Since 3*range = 11..._2, each iteration succeeds with
|
||||||
|
* probability >= .75. */
|
||||||
|
if (BN_cmp(r ,range) >= 0)
|
||||||
|
{
|
||||||
|
if (!BN_sub(r, r, range)) return 0;
|
||||||
|
if (BN_cmp(r, range) >= 0)
|
||||||
|
if (!BN_sub(r, r, range)) return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
while (BN_cmp(r, range) >= 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
do
|
||||||
|
{
|
||||||
|
/* range = 11..._2 or range = 101..._2 */
|
||||||
|
if (!bn_rand(r, n, -1, 0)) return 0;
|
||||||
|
}
|
||||||
|
while (BN_cmp(r, range) >= 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int BN_rand_range(BIGNUM *r, BIGNUM *range)
|
||||||
|
{
|
||||||
|
return bn_rand_range(0, r, range);
|
||||||
|
}
|
||||||
|
|
||||||
|
int BN_pseudo_rand_range(BIGNUM *r, BIGNUM *range)
|
||||||
|
{
|
||||||
|
return bn_rand_range(1, r, range);
|
||||||
|
}
|
||||||
|
|||||||
@@ -100,12 +100,11 @@ int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
|
|||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
|
int BN_mod_mul_reciprocal(BIGNUM *r, BIGNUM *x, BIGNUM *y, BN_RECP_CTX *recp,
|
||||||
BN_RECP_CTX *recp, BN_CTX *ctx)
|
BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
BIGNUM *a;
|
BIGNUM *a;
|
||||||
const BIGNUM *ca;
|
|
||||||
|
|
||||||
BN_CTX_start(ctx);
|
BN_CTX_start(ctx);
|
||||||
if ((a = BN_CTX_get(ctx)) == NULL) goto err;
|
if ((a = BN_CTX_get(ctx)) == NULL) goto err;
|
||||||
@@ -115,20 +114,19 @@ int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
|
|||||||
{ if (!BN_sqr(a,x,ctx)) goto err; }
|
{ if (!BN_sqr(a,x,ctx)) goto err; }
|
||||||
else
|
else
|
||||||
{ if (!BN_mul(a,x,y,ctx)) goto err; }
|
{ if (!BN_mul(a,x,y,ctx)) goto err; }
|
||||||
ca = a;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ca=x; /* Just do the mod */
|
a=x; /* Just do the mod */
|
||||||
|
|
||||||
BN_div_recp(NULL,r,ca,recp,ctx);
|
BN_div_recp(NULL,r,a,recp,ctx);
|
||||||
ret=1;
|
ret=1;
|
||||||
err:
|
err:
|
||||||
BN_CTX_end(ctx);
|
BN_CTX_end(ctx);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
|
int BN_div_recp(BIGNUM *dv, BIGNUM *rem, BIGNUM *m, BN_RECP_CTX *recp,
|
||||||
BN_RECP_CTX *recp, BN_CTX *ctx)
|
BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int i,j,ret=0;
|
int i,j,ret=0;
|
||||||
BIGNUM *a,*b,*d,*r;
|
BIGNUM *a,*b,*d,*r;
|
||||||
@@ -203,7 +201,7 @@ err:
|
|||||||
* We actually calculate with an extra word of precision, so
|
* We actually calculate with an extra word of precision, so
|
||||||
* we can do faster division if the remainder is not required.
|
* we can do faster division if the remainder is not required.
|
||||||
*/
|
*/
|
||||||
int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx)
|
int BN_reciprocal(BIGNUM *r, BIGNUM *m, int len, BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int ret= -1;
|
int ret= -1;
|
||||||
BIGNUM t;
|
BIGNUM t;
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "bn_lcl.h"
|
#include "bn_lcl.h"
|
||||||
|
|
||||||
int BN_lshift1(BIGNUM *r, const BIGNUM *a)
|
int BN_lshift1(BIGNUM *r, BIGNUM *a)
|
||||||
{
|
{
|
||||||
register BN_ULONG *ap,*rp,t,c;
|
register BN_ULONG *ap,*rp,t,c;
|
||||||
int i;
|
int i;
|
||||||
@@ -92,7 +92,7 @@ int BN_lshift1(BIGNUM *r, const BIGNUM *a)
|
|||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int BN_rshift1(BIGNUM *r, const BIGNUM *a)
|
int BN_rshift1(BIGNUM *r, BIGNUM *a)
|
||||||
{
|
{
|
||||||
BN_ULONG *ap,*rp,t,c;
|
BN_ULONG *ap,*rp,t,c;
|
||||||
int i;
|
int i;
|
||||||
@@ -153,7 +153,7 @@ int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
|
|||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
|
int BN_rshift(BIGNUM *r, BIGNUM *a, int n)
|
||||||
{
|
{
|
||||||
int i,j,nw,lb,rb;
|
int i,j,nw,lb,rb;
|
||||||
BN_ULONG *t,*f;
|
BN_ULONG *t,*f;
|
||||||
@@ -172,6 +172,11 @@ int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
|
|||||||
r->neg=a->neg;
|
r->neg=a->neg;
|
||||||
if (bn_wexpand(r,a->top-nw+1) == NULL) return(0);
|
if (bn_wexpand(r,a->top-nw+1) == NULL) return(0);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (n == 0)
|
||||||
|
return 1; /* or the copying loop will go berserk */
|
||||||
|
}
|
||||||
|
|
||||||
f= &(a->d[nw]);
|
f= &(a->d[nw]);
|
||||||
t=r->d;
|
t=r->d;
|
||||||
|
|||||||
@@ -62,11 +62,11 @@
|
|||||||
|
|
||||||
/* r must not be a */
|
/* r must not be a */
|
||||||
/* I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96 */
|
/* I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96 */
|
||||||
int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
|
int BN_sqr(BIGNUM *r, BIGNUM *a, BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
int max,al;
|
int max,al;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
BIGNUM *tmp,*rr,*free_a = NULL;
|
BIGNUM *tmp,*rr;
|
||||||
|
|
||||||
#ifdef BN_COUNT
|
#ifdef BN_COUNT
|
||||||
printf("BN_sqr %d * %d\n",a->top,a->top);
|
printf("BN_sqr %d * %d\n",a->top,a->top);
|
||||||
@@ -124,10 +124,8 @@ printf("BN_sqr %d * %d\n",a->top,a->top);
|
|||||||
k=j+j;
|
k=j+j;
|
||||||
if (al == j)
|
if (al == j)
|
||||||
{
|
{
|
||||||
BIGNUM *tmp_bn = free_a;
|
if (bn_wexpand(a,k*2) == NULL) goto err;
|
||||||
if ((a = free_a = bn_dup_expand(a,k*2)) == NULL) goto err;
|
|
||||||
if (bn_wexpand(tmp,k*2) == NULL) goto err;
|
if (bn_wexpand(tmp,k*2) == NULL) goto err;
|
||||||
if (tmp_bn) BN_free(tmp_bn);
|
|
||||||
bn_sqr_recursive(rr->d,a->d,al,tmp->d);
|
bn_sqr_recursive(rr->d,a->d,al,tmp->d);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -147,7 +145,6 @@ printf("BN_sqr %d * %d\n",a->top,a->top);
|
|||||||
if (rr != r) BN_copy(r,rr);
|
if (rr != r) BN_copy(r,rr);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
err:
|
err:
|
||||||
if (free_a) BN_free(free_a);
|
|
||||||
BN_CTX_end(ctx);
|
BN_CTX_end(ctx);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
@@ -248,7 +245,7 @@ printf(" bn_sqr_recursive %d * %d\n",n2,n2);
|
|||||||
if (!zero)
|
if (!zero)
|
||||||
bn_sqr_recursive(&(t[n2]),t,n,p);
|
bn_sqr_recursive(&(t[n2]),t,n,p);
|
||||||
else
|
else
|
||||||
memset(&(t[n2]),0,n*sizeof(BN_ULONG));
|
memset(&(t[n2]),0,n2*sizeof(BN_ULONG));
|
||||||
bn_sqr_recursive(r,a,n,p);
|
bn_sqr_recursive(r,a,n,p);
|
||||||
bn_sqr_recursive(&(r[n2]),&(a[n]),n,p);
|
bn_sqr_recursive(&(r[n2]),&(a[n]),n,p);
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user