Compare commits
1192 Commits
OpenSSL_0_
...
OpenSSL-en
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02a473eeb9 | ||
|
|
5ec27eacf0 | ||
|
|
f0d6ee6be8 | ||
|
|
e65991f977 | ||
|
|
3e83e686ba | ||
|
|
8f06b00373 | ||
|
|
1dea1f4509 | ||
|
|
44411db8e0 | ||
|
|
23ac7a1407 | ||
|
|
30b5ce14d8 | ||
|
|
dda640835f | ||
|
|
6cc3700314 | ||
|
|
cc1489d2f2 | ||
|
|
016029c69f | ||
|
|
516b848286 | ||
|
|
c4202285ef | ||
|
|
49e045482a | ||
|
|
d8309efc72 | ||
|
|
f43acc8a50 | ||
|
|
ba47f5c9b0 | ||
|
|
4d94ae00d5 | ||
|
|
60d8bae30d | ||
|
|
0caec9e8f8 | ||
|
|
4f85a2e21e | ||
|
|
945e15a253 | ||
|
|
1fe198b6f9 | ||
|
|
78d6603aad | ||
|
|
7241ae1a0a | ||
|
|
5f58d6a5e0 | ||
|
|
acfe628b6e | ||
|
|
182d8435f0 | ||
|
|
4de920c91d | ||
|
|
3cd039dd8f | ||
|
|
ed2f196afe | ||
|
|
81269a81ee | ||
|
|
3537525e00 | ||
|
|
d38f3ad1ee | ||
|
|
e083f91497 | ||
|
|
ba2cad19cf | ||
|
|
db0a1efcc9 | ||
|
|
9074521458 | ||
|
|
f924200e1b | ||
|
|
de2f6e4dae | ||
|
|
44bdb056d4 | ||
|
|
c31bbf1e68 | ||
|
|
5e68f8ce15 | ||
|
|
b9a3ef4c6e | ||
|
|
1955b87423 | ||
|
|
b860878edc | ||
|
|
362771f880 | ||
|
|
866eedb936 | ||
|
|
f701551f36 | ||
|
|
adc4df3616 | ||
|
|
1199e2d8cf | ||
|
|
0f180d1d1d | ||
|
|
072569e0f1 | ||
|
|
88e89f9022 | ||
|
|
ba9786e4b8 | ||
|
|
613599ffff | ||
|
|
c9c21d3b89 | ||
|
|
d0d046eca2 | ||
|
|
2a81428489 | ||
|
|
7073e9e2a0 | ||
|
|
d866df33a1 | ||
|
|
b77fcddb6b | ||
|
|
f6fbd470e3 | ||
|
|
63810d8566 | ||
|
|
123c401967 | ||
|
|
a3fffd648b | ||
|
|
41aad62a78 | ||
|
|
2d57b73a50 | ||
|
|
f14845d999 | ||
|
|
80bb905d3d | ||
|
|
3964db29c4 | ||
|
|
e4f165e71e | ||
|
|
a297985f42 | ||
|
|
404dcc5e8e | ||
|
|
8242a6a9fc | ||
|
|
17bcb8d465 | ||
|
|
72165799a8 | ||
|
|
f1c2a9de45 | ||
|
|
52b66a622d | ||
|
|
273db408a8 | ||
|
|
957b6db3b1 | ||
|
|
a14e2d9dfe | ||
|
|
a8b94d6409 | ||
|
|
fe19c448f0 | ||
|
|
fcf6473199 | ||
|
|
1285221370 | ||
|
|
5dcf517d84 | ||
|
|
9b2f486c9e | ||
|
|
24995f3a10 | ||
|
|
0fc5cf0870 | ||
|
|
f78d4a35f8 | ||
|
|
df5eaa8a52 | ||
|
|
6ce46d69f5 | ||
|
|
575e664a7c | ||
|
|
7389c848d4 | ||
|
|
4d393410f3 | ||
|
|
bd69750360 | ||
|
|
c9501c223f | ||
|
|
9dd5ae6553 | ||
|
|
e1e876072d | ||
|
|
dd2589494f | ||
|
|
1cfa8a397f | ||
|
|
bdae099862 | ||
|
|
cca28b291c | ||
|
|
062d3e39e7 | ||
|
|
e29f478a7a | ||
|
|
1b58b616e3 | ||
|
|
c70d381775 | ||
|
|
508d8b1617 | ||
|
|
8c74b5e56c | ||
|
|
c59ba5b528 | ||
|
|
45d87a1ffe | ||
|
|
a3feb21bbe | ||
|
|
37530362fa | ||
|
|
fd69886aed | ||
|
|
fd795679bb | ||
|
|
e523f5f389 | ||
|
|
e4dd79bbc8 | ||
|
|
bc37d996fc | ||
|
|
31cafe53c9 | ||
|
|
dc4ddcd2bb | ||
|
|
5256b021f3 | ||
|
|
1bb68d62ab | ||
|
|
4ab1e7ceaf | ||
|
|
06623ff028 | ||
|
|
67d48c8cc8 | ||
|
|
d59fb0dd2f | ||
|
|
245f44e2ab | ||
|
|
e5d6528a12 | ||
|
|
980afccf98 | ||
|
|
9bd2cd745f | ||
|
|
015fbde807 | ||
|
|
ba1b888384 | ||
|
|
6f9079fd50 | ||
|
|
c938563a81 | ||
|
|
40928698bb | ||
|
|
138d8ab0c7 | ||
|
|
47cc5525a2 | ||
|
|
67fec850e1 | ||
|
|
82db6e1646 | ||
|
|
e7227322b3 | ||
|
|
a5595fde9a | ||
|
|
95f8c7195c | ||
|
|
dcbbf83dba | ||
|
|
3c89d78dba | ||
|
|
60a9cbdf28 | ||
|
|
84fcd6f83e | ||
|
|
d3948ca262 | ||
|
|
85939d5dd7 | ||
|
|
532fd8ee1c | ||
|
|
a92ae07091 | ||
|
|
fb3af5c813 | ||
|
|
68809d3969 | ||
|
|
6d6846417f | ||
|
|
47892635ad | ||
|
|
d6a89fcf88 | ||
|
|
5b9b38f0c9 | ||
|
|
ef5f6a08ff | ||
|
|
d8e2daf1e0 | ||
|
|
7c517a04b1 | ||
|
|
be29c93cf4 | ||
|
|
6e19a04080 | ||
|
|
d78e52987e | ||
|
|
755cc53a6e | ||
|
|
1226c472b7 | ||
|
|
4d7072f4b5 | ||
|
|
b5348a095d | ||
|
|
66df02fd98 | ||
|
|
206eb6a11d | ||
|
|
f11fd3f4e1 | ||
|
|
29b108f939 | ||
|
|
91102def2e | ||
|
|
35933d170d | ||
|
|
31106cc750 | ||
|
|
ff3fa48fc7 | ||
|
|
87166e1fb6 | ||
|
|
f3e24baddf | ||
|
|
a6977ee73d | ||
|
|
d4704d5245 | ||
|
|
8f0edcb3d2 | ||
|
|
35e25255e0 | ||
|
|
c3fbf5d9a8 | ||
|
|
55e42c93a8 | ||
|
|
6a0dec9584 | ||
|
|
21a85f1977 | ||
|
|
322de0c8c1 | ||
|
|
6a9af68b56 | ||
|
|
270c75c2b1 | ||
|
|
b6e4dac217 | ||
|
|
8a0a9392ab | ||
|
|
bcbe4e5254 | ||
|
|
9f44f4a081 | ||
|
|
47ff5c6279 | ||
|
|
37749c8872 | ||
|
|
898f856c44 | ||
|
|
883b0c2274 | ||
|
|
dae0b520a0 | ||
|
|
4f94d1a8b1 | ||
|
|
1d4581c2dd | ||
|
|
c05940edc7 | ||
|
|
c507a16e49 | ||
|
|
308f028e28 | ||
|
|
e4a6cf421a | ||
|
|
329636d6e3 | ||
|
|
9163b8fb23 | ||
|
|
f1a185a04a | ||
|
|
60f3f6ac2e | ||
|
|
595241e17f | ||
|
|
c6d14d26fd | ||
|
|
832e09cd23 | ||
|
|
879d789a42 | ||
|
|
a542db90c6 | ||
|
|
a7ce69dbd7 | ||
|
|
07ad3257fc | ||
|
|
c02efd954d | ||
|
|
b26f6ee5f2 | ||
|
|
b5719e9673 | ||
|
|
f56412e895 | ||
|
|
26e922fc7f | ||
|
|
9d93ce246c | ||
|
|
76c4336c43 | ||
|
|
e71adb85c5 | ||
|
|
033c51f0a3 | ||
|
|
452d1595a6 | ||
|
|
0d197a833c | ||
|
|
e0031b80ee | ||
|
|
b19941ab05 | ||
|
|
752938daab | ||
|
|
c78515f55e | ||
|
|
3ba1f11147 | ||
|
|
bbc206fdf7 | ||
|
|
2bd065dfbe | ||
|
|
6d7dbc12f2 | ||
|
|
83c40e7fc0 | ||
|
|
b5fe234588 | ||
|
|
e1a00d7d1d | ||
|
|
acf60ef707 | ||
|
|
c85a157854 | ||
|
|
0c5d16e4f5 | ||
|
|
bd2af5e707 | ||
|
|
58d55afa6f | ||
|
|
6343e2fac3 | ||
|
|
edcace97a8 | ||
|
|
b476df64a1 | ||
|
|
8d5c834b34 | ||
|
|
b0eda65f1c | ||
|
|
2395368e7f | ||
|
|
1d46b6b3b9 | ||
|
|
bbb35447c4 | ||
|
|
6276f1e100 | ||
|
|
5b8a57ecae | ||
|
|
817dfc18a3 | ||
|
|
0b0b2a8087 | ||
|
|
c23d16ac19 | ||
|
|
1b28ed575b | ||
|
|
135c0af1bb | ||
|
|
475918410b | ||
|
|
3102792161 | ||
|
|
a291182757 | ||
|
|
95c0f198a7 | ||
|
|
947a85d022 | ||
|
|
b26ca3408c | ||
|
|
da904c9cef | ||
|
|
83978bd37a | ||
|
|
a3790c0d01 | ||
|
|
c3970428ac | ||
|
|
63b6090f7c | ||
|
|
c5571db0c2 | ||
|
|
b1d9279a41 | ||
|
|
c7d827fc90 | ||
|
|
e0457d5f7c | ||
|
|
ae52ec9869 | ||
|
|
37fe697597 | ||
|
|
0b33bc6b72 | ||
|
|
7aa983c6db | ||
|
|
2b90b1f344 | ||
|
|
d8616888ee | ||
|
|
65123f8064 | ||
|
|
1d8634b110 | ||
|
|
29e0c30c2a | ||
|
|
cf82191d77 | ||
|
|
3a8a0a3945 | ||
|
|
c5d4ab7e35 | ||
|
|
b955dbd325 | ||
|
|
45582d1e2b | ||
|
|
60c50cbf9c | ||
|
|
3a3619b46a | ||
|
|
b83eddc578 | ||
|
|
7f558334ad | ||
|
|
6229a5607c | ||
|
|
6acc3b9689 | ||
|
|
66aa856698 | ||
|
|
f559f31bef | ||
|
|
3210b4fd14 | ||
|
|
a7b42009c4 | ||
|
|
7b5ffd6834 | ||
|
|
9b55da73ca | ||
|
|
e7156ff2e8 | ||
|
|
437db75b94 | ||
|
|
1586365835 | ||
|
|
7d5b04db4e | ||
|
|
48b0cf8b10 | ||
|
|
b693f941fd | ||
|
|
c602e7f4e8 | ||
|
|
1fc6d41bf6 | ||
|
|
a41477f92e | ||
|
|
5f68c5feef | ||
|
|
ee84a5a7fb | ||
|
|
66d3e7481e | ||
|
|
0e21156333 | ||
|
|
f533b7780e | ||
|
|
cc2f5a8022 | ||
|
|
b441bf9226 | ||
|
|
2a9aca32dc | ||
|
|
89da653fa6 | ||
|
|
af50b58c3f | ||
|
|
4d635a7001 | ||
|
|
ce15d5a9dc | ||
|
|
ba1c602281 | ||
|
|
cfc781be6e | ||
|
|
84acc3c2bc | ||
|
|
c2e4f17c1a | ||
|
|
979689aa5c | ||
|
|
a3faebd104 | ||
|
|
025c7737b2 | ||
|
|
513d4b4c16 | ||
|
|
7ef701519b | ||
|
|
50d194af4d | ||
|
|
287973746e | ||
|
|
f1558bb424 | ||
|
|
6ca487992b | ||
|
|
cf3a5cebd7 | ||
|
|
a661b65357 | ||
|
|
98e6654938 | ||
|
|
cecd263878 | ||
|
|
31fe950d2b | ||
|
|
db6a87d8cc | ||
|
|
7beb408771 | ||
|
|
51008ffce1 | ||
|
|
3811eed8d5 | ||
|
|
581f1c8494 | ||
|
|
41ebed27fa | ||
|
|
bf21446a2a | ||
|
|
e72d734d5f | ||
|
|
20d2186c87 | ||
|
|
9ba3ec9176 | ||
|
|
8f71fb8d98 | ||
|
|
48948d53b6 | ||
|
|
dbec19622e | ||
|
|
2ce15df528 | ||
|
|
681bfae499 | ||
|
|
5dd955dcd2 | ||
|
|
56fa8e69cf | ||
|
|
67d0738aba | ||
|
|
b8a61e7362 | ||
|
|
dd5e774664 | ||
|
|
6b86bad5ef | ||
|
|
712557128b | ||
|
|
3009e9f9ef | ||
|
|
b30245dae0 | ||
|
|
116daf4c2f | ||
|
|
cb40bdaf57 | ||
|
|
4b12506891 | ||
|
|
cf98440178 | ||
|
|
c500d44735 | ||
|
|
18eda73234 | ||
|
|
7526e2c043 | ||
|
|
6d52f260bf | ||
|
|
752f2b6785 | ||
|
|
e1c279b63d | ||
|
|
467889703a | ||
|
|
3a457cca86 | ||
|
|
285046ec51 | ||
|
|
f8000b9345 | ||
|
|
77a8eb352f | ||
|
|
114697bef3 | ||
|
|
2aa9043ad3 | ||
|
|
1a095560f7 | ||
|
|
f329b8d73b | ||
|
|
3d90a32429 | ||
|
|
e3a7463c5d | ||
|
|
796c6eadcb | ||
|
|
b485e5b7e3 | ||
|
|
d1cc7b8f22 | ||
|
|
1cf9d58cb4 | ||
|
|
0cff933416 | ||
|
|
c41b29e5db | ||
|
|
65fb3fa630 | ||
|
|
0b0f08dbc7 | ||
|
|
5c32657c80 | ||
|
|
07cee70258 | ||
|
|
4ba163cbf9 | ||
|
|
2bfb2398e3 | ||
|
|
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 | ||
|
|
98c2a26ea6 | ||
|
|
965b6dad44 | ||
|
|
a3d8c0fc5d | ||
|
|
a32d795aae | ||
|
|
ef3dc028ef | ||
|
|
2413a3975f | ||
|
|
3b0b5abae3 | ||
|
|
b49124f6d9 | ||
|
|
2260ad21fb | ||
|
|
6b0e9facf4 | ||
|
|
c404ff7955 | ||
|
|
8e2f6b79ea | ||
|
|
ee60d9fb28 | ||
|
|
be6d77005f | ||
|
|
b263b66746 | ||
|
|
5294dd705d | ||
|
|
2b67158673 | ||
|
|
db744f8950 | ||
|
|
e059b19ddb | ||
|
|
997a54c981 | ||
|
|
b78e502104 | ||
|
|
b6d0054a52 | ||
|
|
117df10db4 | ||
|
|
d300bcca7f | ||
|
|
d59c3e5046 | ||
|
|
6d8566f2eb | ||
|
|
4e1b0d8904 | ||
|
|
8ce2912fbc | ||
|
|
1372965e2e | ||
|
|
1a1422643b | ||
|
|
409960491d | ||
|
|
96bd6f730a | ||
|
|
c0f5dd070b | ||
|
|
9d7a8d3578 | ||
|
|
4dec4f646d | ||
|
|
2cb924b052 | ||
|
|
51ac0cfe44 | ||
|
|
16e819e1d8 | ||
|
|
1023cfe70d | ||
|
|
8e0a2d8461 | ||
|
|
e13ae96d7c | ||
|
|
9f29ec4721 | ||
|
|
b9a20b5057 | ||
|
|
c2222c2ea2 | ||
|
|
336da5642d | ||
|
|
8573fa1806 | ||
|
|
a52c2fb296 | ||
|
|
41450b27f2 | ||
|
|
e72d5983f2 | ||
|
|
5a85385387 | ||
|
|
5e54b4f364 | ||
|
|
5ba372b17c | ||
|
|
f9b0f47c0c | ||
|
|
4deeadf7dc | ||
|
|
384eff877c | ||
|
|
68dbba9817 | ||
|
|
ea7150b070 | ||
|
|
cb42ce0b67 | ||
|
|
e8330cf5ac | ||
|
|
7d34470458 | ||
|
|
f1047cebea | ||
|
|
da8a2e6f90 | ||
|
|
546ec5a9b3 | ||
|
|
e3fefbfd56 | ||
|
|
3b80e3aa9e | ||
|
|
14cfde9c83 | ||
|
|
9cabef963c | ||
|
|
ce9eab79a7 | ||
|
|
e9e202cfa8 | ||
|
|
d83ae69455 | ||
|
|
bb4f7a8d52 | ||
|
|
619b2c03dc | ||
|
|
aa4c2de10e | ||
|
|
6c36f7a9f2 | ||
|
|
78f7923580 | ||
|
|
978ebf0141 | ||
|
|
a9ed4da8eb | ||
|
|
e1a4814cd4 | ||
|
|
3cad81f6fe | ||
|
|
4450107afb | ||
|
|
908efd3b73 | ||
|
|
1a7691c059 | ||
|
|
f524ddbe04 | ||
|
|
541814c403 | ||
|
|
5013540224 | ||
|
|
94cb5ee63c | ||
|
|
fc9c61bc3b | ||
|
|
e815d3015e | ||
|
|
dc2a33d680 | ||
|
|
7ba45bf133 | ||
|
|
d98a4b7366 | ||
|
|
889a54c467 | ||
|
|
9d07fd03e3 | ||
|
|
a8a1878256 | ||
|
|
5b46eee0f5 | ||
|
|
e5e6a94fbf | ||
|
|
d9ff889073 | ||
|
|
e4decc418a | ||
|
|
cf5bfbfc21 | ||
|
|
567fef894e | ||
|
|
6ee2a1365e | ||
|
|
435037d4e4 | ||
|
|
c5de8996cc | ||
|
|
2dc5383a20 | ||
|
|
9391f97715 | ||
|
|
5b16639538 | ||
|
|
1738bb61e1 | ||
|
|
91b3f0e691 | ||
|
|
6ac4e8bd6e | ||
|
|
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 | ||
|
|
bb8aab0211 | ||
|
|
0fbf5f7102 | ||
|
|
f1b2807478 | ||
|
|
faacb092f8 | ||
|
|
b439a74620 | ||
|
|
3132ab8ce6 | ||
|
|
bfd7bb3eb6 | ||
|
|
11c8f0b79d | ||
|
|
c4068186ac | ||
|
|
0a93a68020 | ||
|
|
f2ab7d1392 | ||
|
|
c41ab9ade5 | ||
|
|
141e584998 | ||
|
|
336736ef35 | ||
|
|
df7cb13525 | ||
|
|
d93eb21c7c | ||
|
|
a403188f92 | ||
|
|
82b2230527 | ||
|
|
a8a004987c | ||
|
|
0e36019977 | ||
|
|
354c3ace73 | ||
|
|
52129c0b0b | ||
|
|
a52877a2f1 | ||
|
|
cdd7c3ce92 | ||
|
|
c1497b4d19 | ||
|
|
b2ed462934 | ||
|
|
bb766a0ad6 | ||
|
|
b65f851318 | ||
|
|
35bf35411c | ||
|
|
54fbc77dc8 | ||
|
|
9e09eebf94 | ||
|
|
45a2f93906 | ||
|
|
6982c0da4e | ||
|
|
b7727ee616 | ||
|
|
f0446ca8d7 | ||
|
|
6bc847e49e | ||
|
|
3f1c4e49a3 | ||
|
|
37a7cd1a11 | ||
|
|
3a2d9c4dd0 | ||
|
|
e51d1321fc | ||
|
|
b9fdb3eb99 | ||
|
|
d66ace9da5 | ||
|
|
db75357110 | ||
|
|
0713f8abe6 | ||
|
|
93d9121a77 | ||
|
|
92dad6cc84 | ||
|
|
61454a9f8c | ||
|
|
bb2297a41d | ||
|
|
75e98d0563 | ||
|
|
e9eb000c53 | ||
|
|
1ba01caaa3 | ||
|
|
5cd6571fae | ||
|
|
6383bbe525 | ||
|
|
06da6e4977 | ||
|
|
b72faddc47 | ||
|
|
d92f0bb6e9 | ||
|
|
710e5d5639 | ||
|
|
6da980e2b5 | ||
|
|
37f599bcec | ||
|
|
8408f4fbc7 | ||
|
|
534164ef90 | ||
|
|
e32c852e1e | ||
|
|
dbfc0f8c2b | ||
|
|
3728974460 | ||
|
|
fdc2bbcacb | ||
|
|
c2a3358b60 | ||
|
|
882e891284 | ||
|
|
05bbf78afd | ||
|
|
99ecb90a99 | ||
|
|
dbad169019 | ||
|
|
3ba5d1cf2e | ||
|
|
be2e2c3297 | ||
|
|
ed0015284b | ||
|
|
6d03b73e35 | ||
|
|
622d3d3592 | ||
|
|
0e06354402 | ||
|
|
62c271610b | ||
|
|
db089ad60d | ||
|
|
1f0c9ad7e1 | ||
|
|
06efc222f9 | ||
|
|
de3333bae4 | ||
|
|
924875e53b | ||
|
|
3a64458217 | ||
|
|
ea71c22731 | ||
|
|
dc706cd35f | ||
|
|
1241126adf | ||
|
|
19da130053 | ||
|
|
a75b191502 | ||
|
|
e5cb260365 | ||
|
|
6aecef815c | ||
|
|
daba492c3a | ||
|
|
24cff6ced5 | ||
|
|
ac7b42610f | ||
|
|
7abe76e1bd | ||
|
|
7bc03ded12 | ||
|
|
ea3b8af50a | ||
|
|
badb910f3c | ||
|
|
3866752e7e | ||
|
|
3e3dac9f97 | ||
|
|
397ba0f08a | ||
|
|
07ad8f5d17 | ||
|
|
47c3448a97 | ||
|
|
4db48ec0bd | ||
|
|
c518ade1fd | ||
|
|
acdf4afb91 | ||
|
|
6d3dec92fb | ||
|
|
2d3b6a5be7 | ||
|
|
81d1998e09 | ||
|
|
6b46ca135a | ||
|
|
fa293e4e4b | ||
|
|
24cbf3efc6 | ||
|
|
534a1ed0cb | ||
|
|
ee306a1332 | ||
|
|
45442167b0 | ||
|
|
131645ecce | ||
|
|
f1ca5f5b89 | ||
|
|
e452de9d87 | ||
|
|
a0256f462a | ||
|
|
82d5d46c14 | ||
|
|
0665dd6852 | ||
|
|
98fc09b18a | ||
|
|
192ebef8cf | ||
|
|
b01ab14338 | ||
|
|
2a96235bf7 | ||
|
|
1cf9bf00f4 | ||
|
|
a5224c3420 | ||
|
|
af436bc158 | ||
|
|
ab603c6987 | ||
|
|
9c11a0e541 | ||
|
|
8de83bf876 | ||
|
|
679df234b7 | ||
|
|
26eaab0990 | ||
|
|
7be96d7c9f | ||
|
|
d11493934c | ||
|
|
c62da732a4 | ||
|
|
a1a63a4239 | ||
|
|
103a434386 | ||
|
|
567671e291 | ||
|
|
d8a750ee7f | ||
|
|
9c10b2c8d3 | ||
|
|
56a106115f | ||
|
|
e9ad0d2c31 | ||
|
|
97639f0d73 | ||
|
|
e3a4f8b84c | ||
|
|
7e99812432 | ||
|
|
2a1ef75435 | ||
|
|
c148d70978 | ||
|
|
5aa14f636f | ||
|
|
7b24a1a33b | ||
|
|
7b6055d1af | ||
|
|
f31b12503e | ||
|
|
f82197ad75 | ||
|
|
3f37e73bae | ||
|
|
0774f470d9 | ||
|
|
d7a9e91688 | ||
|
|
601cb9be20 | ||
|
|
393a9b68cf | ||
|
|
f3229ee19a | ||
|
|
219a3580b7 | ||
|
|
d63c6bd397 | ||
|
|
fdb61e583a | ||
|
|
b8e2f83ae6 | ||
|
|
93dbd83570 | ||
|
|
5be022712a | ||
|
|
43f9391bcc | ||
|
|
c1c971654b | ||
|
|
72b1072fbd | ||
|
|
3bfd99bfbb | ||
|
|
a169e82065 | ||
|
|
c80410c50c | ||
|
|
dc01b6b1f2 | ||
|
|
b7a26e6daf | ||
|
|
ce16450a89 | ||
|
|
9d2e51c199 | ||
|
|
1e325f6149 | ||
|
|
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 | ||
|
|
3cc1f498a1 | ||
|
|
c6c0035ea5 | ||
|
|
531d630b5c | ||
|
|
853b1eb424 | ||
|
|
09a2615fb2 | ||
|
|
285b42756a | ||
|
|
508f15cdab | ||
|
|
52c0d30078 | ||
|
|
10997ee8ab | ||
|
|
8a774dc9a6 | ||
|
|
200bc9e3e8 | ||
|
|
7dd0ee0495 | ||
|
|
76569fc662 | ||
|
|
f2a253e0dd | ||
|
|
0ad0eaf61c | ||
|
|
47b0f48dd9 | ||
|
|
44e48abc44 | ||
|
|
f420de027f | ||
|
|
ecf186065c | ||
|
|
20e021bf41 | ||
|
|
8ca2ae775d | ||
|
|
ee8aa8217a | ||
|
|
2b49dd1e8f | ||
|
|
30a54b9085 | ||
|
|
1e7e62f8cd | ||
|
|
4ae5099856 | ||
|
|
5352823fbf | ||
|
|
20251f01ea | ||
|
|
528f6b81db | ||
|
|
27bfba299e | ||
|
|
1690863acc | ||
|
|
397211323c | ||
|
|
5c36f01000 | ||
|
|
a87f50fb5a | ||
|
|
31bc51c8cf | ||
|
|
be487c429e | ||
|
|
80340f1fe9 | ||
|
|
d918f85146 | ||
|
|
a95541d61e | ||
|
|
30b4c2724e | ||
|
|
2adc929367 | ||
|
|
7e97837274 | ||
|
|
4cb73bf8e4 | ||
|
|
79bb8d0077 | ||
|
|
6c1a3e4f58 | ||
|
|
76c919c1a3 | ||
|
|
98405f240b | ||
|
|
181355616e | ||
|
|
b49a5b2dc0 | ||
|
|
713f226114 | ||
|
|
d57d85ff35 | ||
|
|
74daa124c2 | ||
|
|
b8e35bd66e | ||
|
|
e8734731d3 | ||
|
|
9e0fcabeca | ||
|
|
6482dec1bb | ||
|
|
81b5eeed6a | ||
|
|
365359dd79 | ||
|
|
2757be06de | ||
|
|
d0afe49d3e | ||
|
|
81b31b7087 | ||
|
|
2643b122fc | ||
|
|
88db657ac2 | ||
|
|
1f0af2c073 | ||
|
|
2ed2d1515e | ||
|
|
bb5b16a36c | ||
|
|
5892855c5f | ||
|
|
a6e859e9ec | ||
|
|
99c65cef0f | ||
|
|
496da8b918 | ||
|
|
739862384c | ||
|
|
0a647c2b8b | ||
|
|
429e4f0de8 | ||
|
|
2d10c7156c | ||
|
|
299053becd | ||
|
|
1449bda052 | ||
|
|
56bb1a7c83 | ||
|
|
96aaf806d8 | ||
|
|
d70e5100c0 | ||
|
|
4831e626aa | ||
|
|
33ab4699ba | ||
|
|
595cc5b4b8 | ||
|
|
29fb08c2de | ||
|
|
7babdf2029 | ||
|
|
4b3270f78e | ||
|
|
3351b8d007 | ||
|
|
4b49bf6a93 | ||
|
|
926a56bfe3 | ||
|
|
d6f188be71 | ||
|
|
016cadfb54 | ||
|
|
bdee69f718 | ||
|
|
ff43e2e155 | ||
|
|
f53948856e | ||
|
|
14056ee2ee | ||
|
|
b545dc6775 | ||
|
|
027902999e | ||
|
|
9a310a5d4e | ||
|
|
a63d5eaab2 | ||
|
|
6af59bc095 | ||
|
|
24cc290b85 | ||
|
|
8e264a933f | ||
|
|
f0b54fefe9 | ||
|
|
cf2d9e09b3 | ||
|
|
6ef9d8328b | ||
|
|
d02408ad8a | ||
|
|
7ae551fd03 | ||
|
|
c2e45f6ddf | ||
|
|
f9a4ad4fa6 | ||
|
|
10645a4f13 | ||
|
|
06cb0353e5 | ||
|
|
b41f836e5f | ||
|
|
26a81abffc | ||
|
|
ab03b0df4c | ||
|
|
e5a77633cf | ||
|
|
6f8a82c7af | ||
|
|
7a7f47ea80 | ||
|
|
0ce5f3e4f5 | ||
|
|
21023745e2 | ||
|
|
a679116f6f | ||
|
|
3988bb34aa | ||
|
|
9e78e6c3f8 | ||
|
|
3caff6092a | ||
|
|
0d96bf8950 | ||
|
|
91dc71f98d | ||
|
|
b7b6c047ca | ||
|
|
0ea659475c | ||
|
|
1e20bb0648 | ||
|
|
c962479bdf | ||
|
|
b31ccc362c | ||
|
|
0cd5866726 | ||
|
|
2a8a10eda6 | ||
|
|
f11bc84080 | ||
|
|
e2f3ae1252 | ||
|
|
40fcda292f | ||
|
|
59bc3126c5 | ||
|
|
4d6115a5cc | ||
|
|
3a25b96caf | ||
|
|
6e6d04e29a | ||
|
|
48ff225300 | ||
|
|
a4a9d97a3e | ||
|
|
404f952aa3 | ||
|
|
dcd87618ab | ||
|
|
d54bf14559 | ||
|
|
ea3a429efe | ||
|
|
e3f1223fe4 | ||
|
|
7ef6e3fe2f | ||
|
|
197322455d | ||
|
|
4f19a0672b | ||
|
|
854e076df8 | ||
|
|
cb2a0e1319 | ||
|
|
638b0d4277 | ||
|
|
f2346808de | ||
|
|
d7818facb9 | ||
|
|
bcf95a2183 | ||
|
|
f7181a9179 | ||
|
|
9237ba8b66 | ||
|
|
95874603b0 | ||
|
|
ed2e24d564 | ||
|
|
c9fd77e9dd | ||
|
|
a9d2bc4902 | ||
|
|
c3bdbcf639 | ||
|
|
d9a770e6ea | ||
|
|
35feed50f0 | ||
|
|
a116afa42e | ||
|
|
b4542fb307 | ||
|
|
1f224bf029 | ||
|
|
4d231b4359 | ||
|
|
ac0f1d0b14 | ||
|
|
124d8cf701 | ||
|
|
7d0d0996aa | ||
|
|
9cddbf14db | ||
|
|
5f1fddbbe7 | ||
|
|
027e257b1d | ||
|
|
93f117003e | ||
|
|
42748c084e | ||
|
|
77dd9c1850 | ||
|
|
5a9c441c6e | ||
|
|
83d968df60 | ||
|
|
d69d8b5ffa | ||
|
|
4ac881ede3 | ||
|
|
ccd2cd3e64 | ||
|
|
9aef355cf0 | ||
|
|
6186ef9338 | ||
|
|
6bcac6e578 | ||
|
|
967d95f096 | ||
|
|
26c7750827 | ||
|
|
5a16d270ab | ||
|
|
3a465d5ec9 | ||
|
|
413a4a0461 | ||
|
|
a95d2c5133 | ||
|
|
1876cc32ae | ||
|
|
4e2a08ddd4 | ||
|
|
61e2c34a10 | ||
|
|
e56b54a376 | ||
|
|
0da945bb20 | ||
|
|
69443d0da0 | ||
|
|
11f3f9f4a1 | ||
|
|
e4dc18d7e5 | ||
|
|
3f86a2b147 | ||
|
|
fd664b9fc6 | ||
|
|
722ca2781c | ||
|
|
1c72eebf89 | ||
|
|
69ce8bb952 | ||
|
|
50b8ba0201 | ||
|
|
c9fd9152bd | ||
|
|
f891abccf2 | ||
|
|
e2effdbc6b | ||
|
|
ef9088c9ec | ||
|
|
422830e17b | ||
|
|
ac0d075faa | ||
|
|
b10ae320f7 | ||
|
|
53195ba215 | ||
|
|
6b4580887e | ||
|
|
5d3ab9b096 | ||
|
|
4fea8145e2 | ||
|
|
884e26080f | ||
|
|
9946491fcc | ||
|
|
4c37da8051 | ||
|
|
ae6dfff5bf | ||
|
|
307bf4dae2 | ||
|
|
96d65fc022 | ||
|
|
080b8cadfa | ||
|
|
7cdd2aa128 | ||
|
|
7d7672f119 | ||
|
|
6a5b52efa0 | ||
|
|
6d864b7030 | ||
|
|
381798377e | ||
|
|
71a39dd4be | ||
|
|
500230ee94 | ||
|
|
347177e052 | ||
|
|
ffade5fb96 | ||
|
|
b7883fbb6e | ||
|
|
0294674b44 | ||
|
|
a77e023ab4 | ||
|
|
812cb5638c | ||
|
|
77a0f1d727 | ||
|
|
b9a18f3b8d | ||
|
|
73aeb61c3f | ||
|
|
3041903844 | ||
|
|
ad8ee98617 | ||
|
|
bc29d0e5d4 | ||
|
|
f89aebb1c4 | ||
|
|
1d7fb4f0c5 | ||
|
|
81a6c7817f | ||
|
|
771c8a7ce5 | ||
|
|
a307eeba84 | ||
|
|
1fbc936cca | ||
|
|
5238fccc15 | ||
|
|
ac63f88790 | ||
|
|
fba9046490 | ||
|
|
8a2908a24a | ||
|
|
e8b12f7a6f | ||
|
|
271da5a2e0 | ||
|
|
26fbabf3d1 | ||
|
|
37cdcb4d8a | ||
|
|
57b6534e53 | ||
|
|
8bf49ea170 | ||
|
|
02ee8626fb | ||
|
|
6276e5b41b | ||
|
|
51740b12ae | ||
|
|
6e6783056e | ||
|
|
791bd0cd2b | ||
|
|
e890dcdb19 | ||
|
|
5ddcb8664a | ||
|
|
09c4b4e0b7 | ||
|
|
368101778e | ||
|
|
535d79da63 | ||
|
|
4f69172d25 | ||
|
|
ecfb406f1e | ||
|
|
df9badad4c | ||
|
|
c4af8daf34 | ||
|
|
b4ac8b1e0a | ||
|
|
adccc4cc7e | ||
|
|
bbc89d2e1f | ||
|
|
1e6c9fc26f | ||
|
|
3d4bb90138 | ||
|
|
c540bd2851 | ||
|
|
6ad0776236 | ||
|
|
ca7fcc65ef | ||
|
|
cd9bed6d1d | ||
|
|
c80abb148d | ||
|
|
757ab9b506 | ||
|
|
868af8e4be | ||
|
|
e100946038 | ||
|
|
5209202f3b | ||
|
|
73701c27b3 | ||
|
|
4ef897d1fc | ||
|
|
19a5e404cb | ||
|
|
e3f527177b | ||
|
|
f09a419c6a | ||
|
|
f4bdbfea66 | ||
|
|
f00ba75c69 | ||
|
|
47dc5a1321 | ||
|
|
3476515195 | ||
|
|
e1db7a5e30 | ||
|
|
4839df4061 | ||
|
|
9cfb6bbd29 | ||
|
|
27f00db152 | ||
|
|
a9c33b529e | ||
|
|
5deb47f12a | ||
|
|
775c289db5 | ||
|
|
099f5bfeba | ||
|
|
103a604932 | ||
|
|
12f49bd79d | ||
|
|
4b250a3d25 | ||
|
|
c200ff0446 | ||
|
|
a7ce1f0514 | ||
|
|
4cae3ac371 | ||
|
|
63ccddf717 | ||
|
|
ce6990739e | ||
|
|
42cc160301 | ||
|
|
0e61cfff53 | ||
|
|
f77600524f | ||
|
|
ebcdd0c43e | ||
|
|
8de7587e02 | ||
|
|
90ac586317 | ||
|
|
15c0fb18a2 | ||
|
|
f30839ecaa | ||
|
|
eb31944f81 | ||
|
|
0dcf7fd543 | ||
|
|
02539402af | ||
|
|
2be9694116 | ||
|
|
b46ba9b1bc | ||
|
|
8e1ec9fb37 | ||
|
|
dc005a7367 | ||
|
|
da867a51a0 | ||
|
|
25814b9690 | ||
|
|
0fc7c5010d | ||
|
|
166e1f304b | ||
|
|
ef413a7ee8 | ||
|
|
dcd4d341e1 | ||
|
|
61b337bd22 | ||
|
|
06b71aec85 | ||
|
|
527cc9841c | ||
|
|
6901ba7dc8 | ||
|
|
ab13064406 | ||
|
|
192295a094 | ||
|
|
7dfded5c26 | ||
|
|
28b3b4c6e6 | ||
|
|
acab12fbe3 | ||
|
|
1ba5b1b530 | ||
|
|
d786112124 | ||
|
|
bdecf23415 | ||
|
|
03ef63ba69 | ||
|
|
cb9c5dc571 | ||
|
|
a6f8bbcad9 | ||
|
|
9f10f9beeb | ||
|
|
a46229b43f | ||
|
|
c7a48d3d00 | ||
|
|
9188480827 | ||
|
|
2b912846b9 | ||
|
|
854067e8e4 | ||
|
|
eb2f937b93 | ||
|
|
64c4f5732d | ||
|
|
f3052a9eee | ||
|
|
e1e9ead6fb | ||
|
|
5ac85984ec | ||
|
|
e11b297730 | ||
|
|
48555cf0fc | ||
|
|
ae02fc5348 | ||
|
|
93e147dd32 | ||
|
|
3257904c56 | ||
|
|
2a7619d762 | ||
|
|
70d03c4f59 | ||
|
|
5971d37400 | ||
|
|
d813a428a7 | ||
|
|
3b2972d8d9 | ||
|
|
2165d91196 | ||
|
|
fc99c92835 | ||
|
|
1dde74f229 | ||
|
|
665b5ab5a7 | ||
|
|
13232559fc | ||
|
|
1b2f8b6e2a | ||
|
|
ccd98b43ed | ||
|
|
d32e8acf08 | ||
|
|
d8c4d0e819 | ||
|
|
b215f70a0e | ||
|
|
7ed20a2158 | ||
|
|
6c62150674 | ||
|
|
aa23a57918 | ||
|
|
8e2c277353 | ||
|
|
f18ef82a9f | ||
|
|
cc015c48db | ||
|
|
9a4051050c | ||
|
|
4c4ea428cc | ||
|
|
28e94dc70d | ||
|
|
f812743544 | ||
|
|
87f3435f78 | ||
|
|
86787f93d6 | ||
|
|
05d909c549 | ||
|
|
d44c7dcf00 | ||
|
|
5decfb7002 | ||
|
|
50008364a6 | ||
|
|
6a1129837a | ||
|
|
20ca3d49e7 | ||
|
|
f156d5495d | ||
|
|
96d7e0ece7 | ||
|
|
974e22704d | ||
|
|
835475a2d6 | ||
|
|
a26f2b5e62 | ||
|
|
67e08eb185 | ||
|
|
0b4cb28f39 | ||
|
|
9c5ed502ee | ||
|
|
6111f7408b | ||
|
|
b6577e040e | ||
|
|
bb51f21728 | ||
|
|
0e0e569cbf | ||
|
|
71c8e9f1c3 | ||
|
|
e759b095d4 | ||
|
|
afa0598f06 |
438
CHANGES
438
CHANGES
@@ -2,7 +2,403 @@
|
|||||||
OpenSSL CHANGES
|
OpenSSL CHANGES
|
||||||
_______________
|
_______________
|
||||||
|
|
||||||
Changes between 0.9.6 and 0.9.6a [xx XXX 2001]
|
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.
|
||||||
|
[Albert Chin-A-Young <china@thewrittenword.com>]
|
||||||
|
|
||||||
|
*) Add configuration option to build on Linux on both big-endian and
|
||||||
|
little-endian MIPS.
|
||||||
|
[Ralf Baechle <ralf@uni-koblenz.de>]
|
||||||
|
|
||||||
|
*) Add the possibility to create shared libraries on HP-UX.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
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]
|
||||||
|
|
||||||
|
*) 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]
|
||||||
|
|
||||||
|
*) Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton:
|
||||||
|
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]
|
||||||
|
|
||||||
|
*) Disabled incorrect Alpha assembler code.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
|
*) Fix PKCS#7 decode routines so they correctly update the length
|
||||||
|
after reading an EOC for the EXPLICIT tag.
|
||||||
|
[Steve Henson]
|
||||||
|
[This change does not apply to 0.9.7.]
|
||||||
|
|
||||||
*) Fix bug in PKCS#12 key generation routines. This was triggered
|
*) Fix bug in PKCS#12 key generation routines. This was triggered
|
||||||
if a 3DES key was generated with a 0 initial byte. Include
|
if a 3DES key was generated with a 0 initial byte. Include
|
||||||
@@ -10,6 +406,10 @@
|
|||||||
(but broken) behaviour.
|
(but broken) behaviour.
|
||||||
[Steve Henson]
|
[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;
|
*) Fix memory leaks in err.c: free err_data string if necessary;
|
||||||
don't write to the wrong index in ERR_set_error_data.
|
don't write to the wrong index in ERR_set_error_data.
|
||||||
[Bodo Moeller]
|
[Bodo Moeller]
|
||||||
@@ -28,15 +428,6 @@
|
|||||||
X509_NAME_get_index_by_NID() since 0 is a valid index.
|
X509_NAME_get_index_by_NID() since 0 is a valid index.
|
||||||
[Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>]
|
[Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>]
|
||||||
|
|
||||||
*) Use better test patterns in bntest.
|
|
||||||
[Ulf M<>ller]
|
|
||||||
|
|
||||||
*) 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]
|
|
||||||
|
|
||||||
*) Avoid coredump with unsupported or invalid public keys by checking if
|
*) Avoid coredump with unsupported or invalid public keys by checking if
|
||||||
X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when
|
X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when
|
||||||
PKCS7_verify() fails with non detached data.
|
PKCS7_verify() fails with non detached data.
|
||||||
@@ -69,6 +460,7 @@
|
|||||||
*) Fix X509_NAME bug which produced incorrect encoding if X509_NAME
|
*) Fix X509_NAME bug which produced incorrect encoding if X509_NAME
|
||||||
was empty.
|
was empty.
|
||||||
[Steve Henson]
|
[Steve Henson]
|
||||||
|
[This change does not apply to 0.9.7.]
|
||||||
|
|
||||||
*) Use the cached encoding of an X509_NAME structure rather than
|
*) Use the cached encoding of an X509_NAME structure rather than
|
||||||
copying it. This is apparently the reason for the libsafe "errors"
|
copying it. This is apparently the reason for the libsafe "errors"
|
||||||
@@ -80,7 +472,7 @@
|
|||||||
Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits
|
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
|
to be set and top=0 forces the highest bit to be set; top=-1 is new
|
||||||
and leaves the highest bit random.
|
and leaves the highest bit random.
|
||||||
[Ulf Moeller]
|
[Ulf Moeller, Bodo Moeller]
|
||||||
|
|
||||||
*) In the NCONF_...-based implementations for CONF_... queries
|
*) In the NCONF_...-based implementations for CONF_... queries
|
||||||
(crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using
|
(crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using
|
||||||
@@ -109,6 +501,7 @@
|
|||||||
macros previously used would not encode an empty SEQUENCE OF
|
macros previously used would not encode an empty SEQUENCE OF
|
||||||
and break the signature.
|
and break the signature.
|
||||||
[Steve Henson]
|
[Steve Henson]
|
||||||
|
[This change does not apply to 0.9.7.]
|
||||||
|
|
||||||
*) Zero the premaster secret after deriving the master secret in
|
*) Zero the premaster secret after deriving the master secret in
|
||||||
DH ciphersuites.
|
DH ciphersuites.
|
||||||
@@ -161,12 +554,19 @@
|
|||||||
*) Fix a deadlock in CRYPTO_mem_leaks().
|
*) Fix a deadlock in CRYPTO_mem_leaks().
|
||||||
[Bodo Moeller]
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) Use better test patterns in bntest.
|
||||||
|
[Ulf M<>ller]
|
||||||
|
|
||||||
*) rand_win.c fix for Borland C.
|
*) rand_win.c fix for Borland C.
|
||||||
[Ulf M<>ller]
|
[Ulf M<>ller]
|
||||||
|
|
||||||
*) BN_rshift bugfix for n == 0.
|
*) BN_rshift bugfix for n == 0.
|
||||||
[Bodo Moeller]
|
[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
|
*) Store verify_result within SSL_SESSION also for client side to
|
||||||
avoid potential security hole. (Re-used sessions on the client side
|
avoid potential security hole. (Re-used sessions on the client side
|
||||||
always resulted in verify_result==X509_V_OK, not using the original
|
always resulted in verify_result==X509_V_OK, not using the original
|
||||||
@@ -189,10 +589,22 @@
|
|||||||
does the actual work for ssl3_read_internal.
|
does the actual work for ssl3_read_internal.
|
||||||
[Bodo Moeller]
|
[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]
|
||||||
|
|
||||||
*) Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16.
|
*) Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16.
|
||||||
The previous value, 12, was not always sufficient for BN_mod_exp().
|
The previous value, 12, was not always sufficient for BN_mod_exp().
|
||||||
[Bodo Moeller]
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) 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]
|
||||||
|
|
||||||
*) Fix typo in get_cert_by_subject() in by_dir.c
|
*) Fix typo in get_cert_by_subject() in by_dir.c
|
||||||
[Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>]
|
[Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>]
|
||||||
|
|
||||||
@@ -576,7 +988,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:
|
||||||
@@ -2303,7 +2715,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.
|
||||||
|
|||||||
183
Configure
183
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] [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] [no-hw-xxx|no-hw] [rsaref] [no-threads] [no-asm] [no-dso] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] os/compiler[:flags]\n";
|
||||||
|
|
||||||
# Options:
|
# Options:
|
||||||
#
|
#
|
||||||
@@ -23,11 +23,20 @@ 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.
|
||||||
|
# Generic OpenSSL-style methods relating to this support
|
||||||
|
# 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
|
||||||
# know how to do it)
|
# know how to do it)
|
||||||
# [no-]shared [don't] try to create shared libraries when supported.
|
# [no-]shared [don't] try to create shared libraries when supported.
|
||||||
|
# IT IS NOT RECOMMENDED TO USE "shared"! Since this is a
|
||||||
|
# development branch, the positions of the ENGINE symbols
|
||||||
|
# in the transfer vector are constantly moving, so binary
|
||||||
|
# backward compatibility can't be guaranteed in any way.
|
||||||
# no-asm do not use assembler
|
# no-asm do not use assembler
|
||||||
# no-dso do not compile in any native shared-library methods. This
|
# no-dso do not compile in any native shared-library methods. This
|
||||||
# will ensure that all methods just return NULL.
|
# will ensure that all methods just return NULL.
|
||||||
@@ -89,6 +98,11 @@ 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
|
||||||
|
|
||||||
@@ -111,10 +125,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
|
||||||
@@ -129,6 +143,9 @@ my %table=(
|
|||||||
# 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)",
|
||||||
@@ -172,17 +189,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:::",
|
"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:::",
|
"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::",
|
"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::",
|
"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::",
|
"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::",
|
"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:
|
||||||
@@ -214,41 +231,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-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:::-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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-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:-ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dl",
|
"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:-ldld:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:asm/pa-risc2.o:::::::::dl",
|
"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-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:-ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::::::::::dl",
|
"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):-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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):-ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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):-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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):-ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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:-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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:-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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:-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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:-ldld:DES_PTR DES_UNROLL DES_RISC1::::::::::dl",
|
"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?
|
||||||
@@ -259,12 +279,39 @@ 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
|
# Dec Alpha, OSF/1 - the alpha164-cc is historical, for the conversion
|
||||||
# the new compiler
|
# 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:true64-shared::.so",
|
#
|
||||||
"alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown)::SIXTY_FOUR_BIT_LONG RC4_CHUNK:asm/alpha.o:::::::::dlfcn:true64-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:true64-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",
|
||||||
|
"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)",
|
"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
|
||||||
@@ -280,13 +327,13 @@ 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.
|
||||||
@@ -294,15 +341,16 @@ my %table=(
|
|||||||
"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",
|
||||||
"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-mips", "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-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::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:-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-s390", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::",
|
"linux-s390", "gcc:-DB_ENDIAN -DTERMIO -O3 -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-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-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)",
|
"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)",
|
||||||
"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-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)",
|
"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::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}: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):-ldl: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)",
|
||||||
@@ -314,12 +362,15 @@ 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}:",
|
||||||
|
|
||||||
|
# QNX 6
|
||||||
|
"qnx6", "cc:-DL_ENDIAN -DTERMIOS::(unknown):-lsocket:${x86_gcc_des} ${x86_gcc_opts}:",
|
||||||
|
|
||||||
# Linux on ARM
|
# Linux on ARM
|
||||||
"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)",
|
"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.0x fails destest with -O
|
# 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","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.0-pentium","cc:-DFILIO_H -Kpentium::-Kthread:-lsocket -lnsl -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||||
|
|
||||||
# UnixWare 2.1
|
# UnixWare 2.1
|
||||||
"unixware-2.1","cc:-O -DFILIO_H::-Kthread:-lsocket -lnsl -lx:${x86_gcc_des} ${x86_gcc_opts}:::",
|
"unixware-2.1","cc:-O -DFILIO_H::-Kthread:-lsocket -lnsl -lx:${x86_gcc_des} ${x86_gcc_opts}:::",
|
||||||
@@ -327,7 +378,18 @@ my %table=(
|
|||||||
"unixware-2.1-p6","cc:-O -DFILIO_H -Kp6::-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:::",
|
||||||
@@ -360,11 +422,11 @@ 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>
|
# 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 ...
|
"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.
|
||||||
@@ -381,6 +443,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",
|
||||||
@@ -414,8 +482,9 @@ my %table=(
|
|||||||
"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 -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::",
|
||||||
|
|
||||||
##### Sony NEWS-OS 4.x
|
##### Sony NEWS-OS 4.x
|
||||||
"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
|
"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
|
||||||
@@ -427,6 +496,7 @@ my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32
|
|||||||
|
|
||||||
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;
|
||||||
@@ -502,6 +572,18 @@ PROCESS_ARGS:
|
|||||||
$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,6 +713,7 @@ print "Configuring for $target\n";
|
|||||||
|
|
||||||
my $IsWindows=scalar grep /^$target$/,@WinTargets;
|
my $IsWindows=scalar grep /^$target$/,@WinTargets;
|
||||||
|
|
||||||
|
$exe_ext=".exe" if ($target eq "CygWin32");
|
||||||
$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 "";
|
||||||
|
|
||||||
@@ -833,6 +916,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/;
|
||||||
@@ -848,7 +932,16 @@ while (<IN>)
|
|||||||
s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
|
s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
|
||||||
s/^SHLIB_MARK=.*/SHLIB_MARK=$shared_mark/;
|
s/^SHLIB_MARK=.*/SHLIB_MARK=$shared_mark/;
|
||||||
s/^SHARED_LIBS=.*/SHARED_LIBS=\$(SHARED_CRYPTO) \$(SHARED_SSL)/ if (!$no_shared);
|
s/^SHARED_LIBS=.*/SHARED_LIBS=\$(SHARED_CRYPTO) \$(SHARED_SSL)/ if (!$no_shared);
|
||||||
s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.so.\$(SHLIB_MAJOR) .so/ if ($shared_extension ne "" && $shared_extension !~ /^\.s[ol]$/);
|
if ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*$/)
|
||||||
|
{
|
||||||
|
my $sotmp = $1;
|
||||||
|
s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp/
|
||||||
|
}
|
||||||
|
elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/)
|
||||||
|
{
|
||||||
|
my $sotmp = $1;
|
||||||
|
s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
|
||||||
|
}
|
||||||
print OUT $_."\n";
|
print OUT $_."\n";
|
||||||
}
|
}
|
||||||
close(IN);
|
close(IN);
|
||||||
|
|||||||
598
FAQ
598
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,17 +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++?
|
||||||
|
|
||||||
|
[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:
|
||||||
@@ -78,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
|
||||||
@@ -89,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?
|
||||||
|
|
||||||
@@ -108,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
|
||||||
@@ -117,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
|
||||||
@@ -138,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
|
||||||
@@ -162,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?
|
||||||
@@ -259,174 +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).
|
|
||||||
|
|
||||||
|
|||||||
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.
|
||||||
|
|
||||||
@@ -57,7 +57,10 @@
|
|||||||
|
|
||||||
shared In addition to the usual static libraries, create shared
|
shared In addition to the usual static libraries, create shared
|
||||||
libraries on platforms where it's supported. See "Note on
|
libraries on platforms where it's supported. See "Note on
|
||||||
shared libraries" below.
|
shared libraries" below. THIS IS NOT RECOMMENDED! Since
|
||||||
|
this is a development branch, the positions of the ENGINE
|
||||||
|
symbols in the transfer vector are constantly moving, so
|
||||||
|
binary backward compatibility can't be guaranteed in any way.
|
||||||
|
|
||||||
no-asm Do not use assembler code.
|
no-asm Do not use assembler code.
|
||||||
|
|
||||||
@@ -125,7 +128,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
|
||||||
|
|||||||
@@ -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:
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
|
|||||||
210
Makefile.org
210
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,7 +162,7 @@ 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 \
|
bn rsa dsa dh dso engine \
|
||||||
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
|
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp
|
||||||
|
|
||||||
@@ -201,13 +202,13 @@ 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; \
|
||||||
done; \
|
done; \
|
||||||
if echo "$(DIRS)" | \
|
if echo "$(DIRS)" | \
|
||||||
grep '\(^\| \)\(crypto\|ssl\)\( \|$$\)' > /dev/null 2>&1 && \
|
egrep '(^| )(crypto|ssl)( |$$)' > /dev/null 2>&1 && \
|
||||||
[ -n "$(SHARED_LIBS)" ]; then \
|
[ -n "$(SHARED_LIBS)" ]; then \
|
||||||
$(MAKE) $(SHARED_LIBS); \
|
$(MAKE) $(SHARED_LIBS); \
|
||||||
fi
|
fi
|
||||||
@@ -242,7 +243,7 @@ link-shared:
|
|||||||
if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
|
if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
|
||||||
tmp="$(SHARED_LIBS_LINK_EXTS)"; \
|
tmp="$(SHARED_LIBS_LINK_EXTS)"; \
|
||||||
for j in $${tmp:-x}; do \
|
for j in $${tmp:-x}; do \
|
||||||
( set -x; ln -s -f $$prev lib$$i$$j ); \
|
( set -x; ln -f -s $$prev lib$$i$$j ); \
|
||||||
prev=lib$$i$$j; \
|
prev=lib$$i$$j; \
|
||||||
done; \
|
done; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -250,31 +251,174 @@ link-shared:
|
|||||||
|
|
||||||
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
|
||||||
|
do_gnu-shared:
|
||||||
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
-Wl,-S,-soname=lib$$i.so.${SHLIB_MAJOR} \
|
-Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
-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$$i"; \
|
libs="$$libs -l$$i"; \
|
||||||
done
|
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
|
||||||
|
|
||||||
# This assumes that GNU utilities are *not* used
|
# This assumes that GNU utilities are *not* used
|
||||||
do_true64-shared:
|
do_alpha-osf1-shared:
|
||||||
libs='-L. ${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$$i"; \
|
( set -x; ${CC} -shared -o lib$$i.so \
|
||||||
done
|
-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:
|
||||||
|
if ${DETECT_GNU_LD}; then \
|
||||||
|
$(MAKE) do_gnu-shared; \
|
||||||
|
else \
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; ${CC} -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 -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:
|
||||||
|
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; \
|
||||||
|
set -x; ${CC} -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
|
||||||
|
|
||||||
|
# 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} -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
|
||||||
|
do_irix-shared:
|
||||||
|
if ${DETECT_GNU_LD}; then \
|
||||||
|
$(MAKE) do_gnu-shared; \
|
||||||
|
else \
|
||||||
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; ${CC} -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
|
||||||
|
do_hpux-shared:
|
||||||
|
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; /usr/ccs/bin/ld +vnocompatwarnings \
|
||||||
|
-b -z -o 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; \
|
||||||
|
libs="$$libs -L. -l$$i"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# This assumes that GNU utilities are *not* used
|
||||||
|
do_hpux64-shared:
|
||||||
|
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
|
( set -x; /usr/ccs/bin/ld -b -z -o 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; \
|
||||||
|
libs="$$libs -L. -l$$i"; \
|
||||||
|
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=-G -bE:lib$$i.exp -bM:SRE
|
||||||
|
SHAREDCMD=$(CC)
|
||||||
|
do_aix-shared:
|
||||||
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
( set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
( set -x; \
|
||||||
-h lib$$i.so.${SHLIB_MAJOR} \
|
ld -r -o $$i.o $(ALLSYMSFLAG) lib$$i.a && \
|
||||||
-z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
( 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"; \
|
libs="$$libs -l$$i"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -347,7 +491,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:
|
||||||
@@ -381,25 +525,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
|
||||||
|
|
||||||
@@ -438,7 +582,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) ;\
|
||||||
@@ -456,8 +600,8 @@ install: all install_docs
|
|||||||
do \
|
do \
|
||||||
if [ -f "$$i" ]; then \
|
if [ -f "$$i" ]; then \
|
||||||
( echo installing $$i; \
|
( echo installing $$i; \
|
||||||
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
cp -f $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
||||||
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
|
chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
|
||||||
fi \
|
fi \
|
||||||
done; \
|
done; \
|
||||||
( here="`pwd`"; \
|
( here="`pwd`"; \
|
||||||
@@ -471,19 +615,19 @@ install_docs:
|
|||||||
$(INSTALL_PREFIX)$(MANDIR)/man3 \
|
$(INSTALL_PREFIX)$(MANDIR)/man3 \
|
||||||
$(INSTALL_PREFIX)$(MANDIR)/man5 \
|
$(INSTALL_PREFIX)$(MANDIR)/man5 \
|
||||||
$(INSTALL_PREFIX)$(MANDIR)/man7
|
$(INSTALL_PREFIX)$(MANDIR)/man7
|
||||||
@echo installing man 1 and man 5
|
|
||||||
@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"; \
|
||||||
(cd `dirname $$i`; \
|
(cd `dirname $$i`; \
|
||||||
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
||||||
--release=$(VERSION) `basename $$i`) \
|
--release=$(VERSION) `basename $$i`) \
|
||||||
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
|
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
|
||||||
done
|
done
|
||||||
@echo installing man 3 and man 7
|
|
||||||
@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"; \
|
||||||
(cd `dirname $$i`; \
|
(cd `dirname $$i`; \
|
||||||
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
$(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
|
||||||
--release=$(VERSION) `basename $$i`) \
|
--release=$(VERSION) `basename $$i`) \
|
||||||
|
|||||||
55
NEWS
55
NEWS
@@ -5,6 +5,61 @@
|
|||||||
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.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.6a-beta2 21 Mar 2001
|
OpenSSL 0.9.6c [engine] 21 dec 2001
|
||||||
|
|
||||||
Copyright (c) 1998-2000 The OpenSSL Project
|
Copyright (c) 1998-2001 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:
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
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.
|
||||||
|
|
||||||
@@ -56,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.
|
||||||
|
|||||||
75
STATUS
75
STATUS
@@ -1,41 +1,12 @@
|
|||||||
|
|
||||||
OpenSSL STATUS Last modified at
|
OpenSSL STATUS Last modified at
|
||||||
______________ $Date: 2001/03/15 22:11:54 $
|
______________ $Date: 2001/11/15 08:15:00 $
|
||||||
|
|
||||||
DEVELOPMENT STATE
|
DEVELOPMENT STATE
|
||||||
|
|
||||||
o OpenSSL 0.9.6a: In development...
|
o OpenSSL 0.9.7: Under development...
|
||||||
Beta 1 released on March 13th, 2001
|
o OpenSSL 0.9.6b: Released on July 9th, 2001
|
||||||
HP-UX 10.20 (hpux-parisc-cc) - PASSED [normal+engine]
|
o OpenSSL 0.9.6a: Released on April 5th, 2001
|
||||||
HP-UX 10.20 (hpux-parisc-gcc) - PASSED [normal+engine]
|
|
||||||
HP-UX 11.00 32bit (hpux-parisc-gcc) - FAILED [engine]
|
|
||||||
"openssl speed rsa1024 -engine cswift" fails unless
|
|
||||||
libswift.sl is renamed to libswift.so.
|
|
||||||
[CORRECTED]
|
|
||||||
HP MPE/iX - PASSED [presumed normal]
|
|
||||||
Linux 2.2.17 SMP (linux-elf) - PASSED [normal+engine]
|
|
||||||
Windows (VC-WIN32) - FAILED [presumed normal]
|
|
||||||
Missing line in ms/32all.bat:
|
|
||||||
perl util\mkfiles.pl >MINFO
|
|
||||||
[CORRECTED]
|
|
||||||
In randfile.c, line 214, signed and unsigned int are mixed.
|
|
||||||
[CORRECTED]
|
|
||||||
In s_client.c and s_server.c, RAND_status() needs to get
|
|
||||||
declared (#include <openssl/rand.h>)
|
|
||||||
[CORRECTED]
|
|
||||||
OpenVMS (any version) - FAILED [normal+engine]
|
|
||||||
Missing instructions in building script.
|
|
||||||
[CORRECTED]
|
|
||||||
AIX 4.3 - FAILED [engine]
|
|
||||||
Needs -DDSO_DLFCN and -DHAVE_DLFCN_H to work.
|
|
||||||
[CORRECTED] (but will not be automagically configured)
|
|
||||||
Irix 6.5.11 - FAILED [presumed normal]
|
|
||||||
BN_sqr test fails.
|
|
||||||
solaris64-sparcv9-cc (SunOS 5.8) - PASSED [normal+engine]
|
|
||||||
BSDI 4.0.1 (bsdi-elf-gcc) - FAILED [engine]
|
|
||||||
Needs -DDSO_DLFCN, -DHAVE_DLFCN_H and -ldl to work.
|
|
||||||
[CORRECTED]
|
|
||||||
mingw32 w/ gcc 2.95.2 - PASSED [presumed normal]
|
|
||||||
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
|
||||||
@@ -49,36 +20,44 @@
|
|||||||
|
|
||||||
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 OpenSSL_0_9_6-stable:
|
||||||
|
#include <openssl/e_os.h> in exported header files is illegal since
|
||||||
|
e_os.h is suitable only for library-internal use.
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
o internal_verify doesn't know about X509.v3 (basicConstraints
|
|
||||||
CA flag ...)
|
|
||||||
|
|
||||||
o The Makefile hierarchy and build mechanism is still not a round thing:
|
o The Makefile hierarchy and build mechanism is still not a round thing:
|
||||||
|
|
||||||
1. The config vs. Configure scripts
|
1. The config vs. Configure scripts
|
||||||
@@ -121,4 +100,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.
|
||||||
|
|||||||
577
TABLE
577
TABLE
@@ -1,4 +1,3 @@
|
|||||||
Output of `Configure TABLE':
|
|
||||||
|
|
||||||
*** BC-16
|
*** BC-16
|
||||||
$cc = bcc
|
$cc = bcc
|
||||||
@@ -136,7 +135,7 @@ $ranlib =
|
|||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall
|
$cflags = -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = -pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE
|
||||||
$lflags =
|
$lflags =
|
||||||
$bn_ops = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
|
$bn_ops = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
|
||||||
$bn_obj = asm/bn86-elf.o asm/co86-elf.o
|
$bn_obj = asm/bn86-elf.o asm/co86-elf.o
|
||||||
@@ -264,6 +263,28 @@ $shared_cflag = -fPIC
|
|||||||
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
|
*** OS390-Unix
|
||||||
|
$cc = c89.sh
|
||||||
|
$cflags = -O -DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H -D_ALL_SOURCE
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags =
|
||||||
|
$bn_ops = THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme =
|
||||||
|
$shared_target=
|
||||||
|
$shared_cflag =
|
||||||
|
$shared_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
*** OpenBSD
|
*** OpenBSD
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DTERMIOS -O3 -fomit-frame-pointer
|
$cflags = -DTERMIOS -O3 -fomit-frame-pointer
|
||||||
@@ -352,6 +373,138 @@ $shared_cflag = -fPIC
|
|||||||
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
|
*** OpenUNIX-8
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -O -DFILIO_H -Kalloca
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -Kthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** OpenUNIX-8-gcc
|
||||||
|
$cc = gcc
|
||||||
|
$cflags = -O -DFILIO_H -fomit-frame-pointer
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -pthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** OpenUNIX-8-gcc-shared
|
||||||
|
$cc = gcc
|
||||||
|
$cflags = -O3 -DFILIO_H -fomit-frame-pointer
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -pthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
|
||||||
|
$bn_obj = asm/bn86-elf.o asm/co86-elf.o
|
||||||
|
$des_obj = asm/dx86-elf.o asm/yx86-elf.o
|
||||||
|
$bf_obj = asm/bx86-elf.o
|
||||||
|
$md5_obj = asm/mx86-elf.o
|
||||||
|
$sha1_obj = asm/sx86-elf.o
|
||||||
|
$cast_obj = asm/cx86-elf.o
|
||||||
|
$rc4_obj = asm/rx86-elf.o
|
||||||
|
$rmd160_obj = asm/rm86-elf.o
|
||||||
|
$rc5_obj = asm/r586-elf.o
|
||||||
|
$dso_scheme = dlfcn
|
||||||
|
$shared_target= svr5-shared
|
||||||
|
$shared_cflag = -fPIC
|
||||||
|
$shared_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** OpenUNIX-8-pentium
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -O -DFILIO_H -Kalloca -Kpentium
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -Kthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** OpenUNIX-8-pentium_pro
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -O -DFILIO_H -Kalloca -Kpentium_pro
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -Kthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** OpenUNIX-8-shared
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -O -DFILIO_H -Kalloca
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -Kthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme = dlfcn
|
||||||
|
$shared_target= svr5-shared
|
||||||
|
$shared_cflag = -Kpic
|
||||||
|
$shared_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
*** ReliantUNIX
|
*** ReliantUNIX
|
||||||
$cc = cc
|
$cc = cc
|
||||||
$cflags = -KPIC -g -DSNI -DTERMIOS -DB_ENDIAN
|
$cflags = -KPIC -g -DSNI -DTERMIOS -DB_ENDIAN
|
||||||
@@ -640,12 +793,12 @@ $ranlib =
|
|||||||
|
|
||||||
*** alpha-cc
|
*** alpha-cc
|
||||||
$cc = cc
|
$cc = cc
|
||||||
$cflags = -std1 -tune host -O4 -readonly_strings
|
$cflags = -std1 -tune host -fast -readonly_strings
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = -pthread
|
||||||
$lflags =
|
$lflags =
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK
|
||||||
$bn_obj = asm/alpha.o
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -655,7 +808,29 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dlfcn
|
$dso_scheme = dlfcn
|
||||||
$shared_target= true64-shared
|
$shared_target= tru64-shared
|
||||||
|
$shared_cflag =
|
||||||
|
$shared_extension = .so
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** alpha-cc-rpath
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -std1 -tune host -fast -readonly_strings
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -pthread
|
||||||
|
$lflags =
|
||||||
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme = dlfcn
|
||||||
|
$shared_target= tru64-shared-rpath
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension = .so
|
$shared_extension = .so
|
||||||
$ranlib =
|
$ranlib =
|
||||||
@@ -667,7 +842,7 @@ $unistd =
|
|||||||
$thread_cflag = (unknown)
|
$thread_cflag = (unknown)
|
||||||
$lflags =
|
$lflags =
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_RISC1
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_RISC1
|
||||||
$bn_obj = asm/alpha.o
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -677,7 +852,7 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dlfcn
|
$dso_scheme = dlfcn
|
||||||
$shared_target= true64-shared
|
$shared_target= alpha-osf1-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension = .so
|
$shared_extension = .so
|
||||||
$ranlib =
|
$ranlib =
|
||||||
@@ -686,10 +861,10 @@ $ranlib =
|
|||||||
$cc = cc
|
$cc = cc
|
||||||
$cflags = -std1 -tune host -fast -readonly_strings
|
$cflags = -std1 -tune host -fast -readonly_strings
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = -pthread
|
||||||
$lflags =
|
$lflags =
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK
|
||||||
$bn_obj = asm/alpha.o
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -699,7 +874,29 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dlfcn
|
$dso_scheme = dlfcn
|
||||||
$shared_target= true64-shared
|
$shared_target= tru64-shared
|
||||||
|
$shared_cflag =
|
||||||
|
$shared_extension = .so
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** alphaold-cc
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -std1 -tune host -O4 -readonly_strings
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags =
|
||||||
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme = dlfcn
|
||||||
|
$shared_target= alpha-osf1-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension = .so
|
$shared_extension = .so
|
||||||
$ranlib =
|
$ranlib =
|
||||||
@@ -814,6 +1011,28 @@ $shared_cflag =
|
|||||||
$shared_extension =
|
$shared_extension =
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
|
*** darwin-ppc-cc
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -O3 -DB_ENDIAN
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags =
|
||||||
|
$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme =
|
||||||
|
$shared_target=
|
||||||
|
$shared_cflag =
|
||||||
|
$shared_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
*** debug
|
*** debug
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror
|
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror
|
||||||
@@ -904,7 +1123,7 @@ $ranlib =
|
|||||||
|
|
||||||
*** debug-bodo
|
*** debug-bodo
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DL_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DBIO_PAIR_DEBUG -g -m486 -pedantic -Wshadow -Wall
|
$cflags = -DL_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -DBIO_PAIR_DEBUG -g -m486 -pedantic -Wshadow -Wall
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags =
|
$lflags =
|
||||||
@@ -926,7 +1145,7 @@ $ranlib =
|
|||||||
|
|
||||||
*** debug-levitte-linux-elf
|
*** debug-levitte-linux-elf
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe
|
$cflags = -DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags = -ldl
|
$lflags = -ldl
|
||||||
@@ -1124,7 +1343,7 @@ $ranlib =
|
|||||||
|
|
||||||
*** debug-ulf
|
*** debug-ulf
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -g -O2 -m486 -Wall -Werror -Wshadow -pipe
|
$cflags = -DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -Wall -Werror -Wshadow -pipe
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags =
|
$lflags =
|
||||||
@@ -1172,8 +1391,8 @@ $cflags = -O3 -fomit-frame-pointer
|
|||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = (unknown)
|
||||||
$lflags = -lnsl -lsocket
|
$lflags = -lnsl -lsocket
|
||||||
$bn_ops = RC4_INDEX
|
$bn_ops = RC4_INDEX DES_UNROLL
|
||||||
$bn_obj = RC4_INDEX DES_UNROLL
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -1271,9 +1490,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux-brokengcc
|
*** hpux-brokengcc
|
||||||
@@ -1293,9 +1512,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = -fPIC
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux-cc
|
*** hpux-cc
|
||||||
@@ -1315,9 +1534,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux-gcc
|
*** hpux-gcc
|
||||||
@@ -1337,6 +1556,28 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
|
$shared_target= hpux-shared
|
||||||
|
$shared_cflag = -fPIC
|
||||||
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** hpux-m68k-gcc
|
||||||
|
$cc = gcc
|
||||||
|
$cflags = -DB_ENDIAN -DBN_DIV2W -O3
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags =
|
||||||
|
$bn_ops = BN_LLONG DES_PTR DES_UNROLL
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme =
|
||||||
$shared_target=
|
$shared_target=
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension =
|
$shared_extension =
|
||||||
@@ -1359,9 +1600,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux-parisc-cc-o4
|
*** hpux-parisc-cc-o4
|
||||||
@@ -1381,9 +1622,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux-parisc-gcc
|
*** hpux-parisc-gcc
|
||||||
@@ -1403,9 +1644,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = -fPIC
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux-parisc1_1-cc
|
*** hpux-parisc1_1-cc
|
||||||
@@ -1425,9 +1666,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux-parisc2-cc
|
*** hpux-parisc2-cc
|
||||||
@@ -1447,9 +1688,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux10-brokencc
|
*** hpux10-brokencc
|
||||||
@@ -1469,9 +1710,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux10-brokengcc
|
*** hpux10-brokengcc
|
||||||
@@ -1491,9 +1732,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = -fPIC
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux10-cc
|
*** hpux10-cc
|
||||||
@@ -1513,9 +1754,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux10-gcc
|
*** hpux10-gcc
|
||||||
@@ -1535,9 +1776,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dl
|
$dso_scheme = dl
|
||||||
$shared_target=
|
$shared_target= hpux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = -fPIC
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux64-parisc-cc
|
*** hpux64-parisc-cc
|
||||||
@@ -1557,9 +1798,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dlfcn
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= hpux64-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** hpux64-parisc2-cc
|
*** hpux64-parisc2-cc
|
||||||
@@ -1579,9 +1820,9 @@ $rc4_obj =
|
|||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme = dlfcn
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= hpux64-shared
|
||||||
$shared_cflag =
|
$shared_cflag = +Z
|
||||||
$shared_extension =
|
$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** irix-cc
|
*** irix-cc
|
||||||
@@ -1600,10 +1841,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= irix-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** irix-gcc
|
*** irix-gcc
|
||||||
@@ -1622,10 +1863,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= irix-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** irix-mips3-cc
|
*** irix-mips3-cc
|
||||||
@@ -1644,10 +1885,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= irix-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** irix-mips3-gcc
|
*** irix-mips3-gcc
|
||||||
@@ -1666,10 +1907,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= irix-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** irix64-mips4-cc
|
*** irix64-mips4-cc
|
||||||
@@ -1688,10 +1929,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= irix-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** irix64-mips4-gcc
|
*** irix64-mips4-gcc
|
||||||
@@ -1710,10 +1951,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= irix-shared
|
||||||
$shared_cflag =
|
$shared_cflag =
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** linux-alpha+bwx-ccc
|
*** linux-alpha+bwx-ccc
|
||||||
@@ -1723,7 +1964,7 @@ $unistd =
|
|||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags =
|
$lflags =
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL
|
||||||
$bn_obj = asm/alpha.o
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -1745,7 +1986,7 @@ $unistd =
|
|||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags = -ldl
|
$lflags = -ldl
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL
|
||||||
$bn_obj = asm/alpha.o
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -1767,7 +2008,7 @@ $unistd =
|
|||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags =
|
$lflags =
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL
|
||||||
$bn_obj = asm/alpha.o
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -1789,7 +2030,7 @@ $unistd =
|
|||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags = -ldl
|
$lflags = -ldl
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL
|
||||||
$bn_obj = asm/alpha.o
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -1874,10 +2115,10 @@ $ranlib =
|
|||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
|
$cflags = -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags =
|
$lflags = -ldl
|
||||||
$bn_ops = SIXTY_FOUR_BIT_LONG
|
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR
|
||||||
$bn_obj =
|
$bn_obj = asm/ia64.o
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -1886,10 +2127,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= linux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = -fPIC
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** linux-m68k
|
*** linux-m68k
|
||||||
@@ -1916,6 +2157,28 @@ $ranlib =
|
|||||||
|
|
||||||
*** linux-mips
|
*** linux-mips
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
|
$cflags = -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags =
|
||||||
|
$bn_ops = BN_LLONG
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** linux-mipsel
|
||||||
|
$cc = gcc
|
||||||
$cflags = -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
|
$cflags = -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = (unknown)
|
||||||
@@ -1941,8 +2204,8 @@ $cc = gcc
|
|||||||
$cflags = -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
|
$cflags = -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = -D_REENTRANT
|
$thread_cflag = -D_REENTRANT
|
||||||
$lflags =
|
$lflags = -ldl
|
||||||
$bn_ops = BN_LLONG
|
$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL
|
||||||
$bn_obj =
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
@@ -1952,10 +2215,10 @@ $cast_obj =
|
|||||||
$rc4_obj =
|
$rc4_obj =
|
||||||
$rmd160_obj =
|
$rmd160_obj =
|
||||||
$rc5_obj =
|
$rc5_obj =
|
||||||
$dso_scheme =
|
$dso_scheme = dlfcn
|
||||||
$shared_target=
|
$shared_target= linux-shared
|
||||||
$shared_cflag =
|
$shared_cflag = -fPIC
|
||||||
$shared_extension =
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
*** linux-s390
|
*** linux-s390
|
||||||
@@ -2178,6 +2441,28 @@ $shared_cflag =
|
|||||||
$shared_extension =
|
$shared_extension =
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
|
*** qnx6
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -DL_ENDIAN -DTERMIOS
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = (unknown)
|
||||||
|
$lflags = -lsocket
|
||||||
|
$bn_ops = DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
*** rhapsody-ppc-cc
|
*** rhapsody-ppc-cc
|
||||||
$cc = cc
|
$cc = cc
|
||||||
$cflags = -O3 -DB_ENDIAN
|
$cflags = -O3 -DB_ENDIAN
|
||||||
@@ -2205,9 +2490,9 @@ $cc = gcc
|
|||||||
$cflags = -O3 -fomit-frame-pointer -Dssize_t=int -DNO_SYS_UN_H
|
$cflags = -O3 -fomit-frame-pointer -Dssize_t=int -DNO_SYS_UN_H
|
||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = (unknown)
|
$thread_cflag = (unknown)
|
||||||
$lflags =
|
$lflags = -lsocket
|
||||||
$bn_ops = -lsocket
|
$bn_ops = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
|
||||||
$bn_obj = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
$md5_obj =
|
$md5_obj =
|
||||||
@@ -2464,6 +2749,28 @@ $shared_cflag = -fPIC
|
|||||||
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
$ranlib =
|
$ranlib =
|
||||||
|
|
||||||
|
*** solaris-x86-cc
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -fast -O -Xa
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -D_REENTRANT
|
||||||
|
$lflags = -lsocket -lnsl -ldl
|
||||||
|
$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme = dlfcn
|
||||||
|
$shared_target= solaris-shared
|
||||||
|
$shared_cflag = -KPIC
|
||||||
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
*** solaris-x86-gcc
|
*** solaris-x86-gcc
|
||||||
$cc = gcc
|
$cc = gcc
|
||||||
$cflags = -O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN -DNO_INLINE_ASM
|
$cflags = -O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN -DNO_INLINE_ASM
|
||||||
@@ -2599,10 +2906,10 @@ $ranlib =
|
|||||||
*** unixware-2.0-pentium
|
*** unixware-2.0-pentium
|
||||||
$cc = cc
|
$cc = cc
|
||||||
$cflags = -DFILIO_H -Kpentium
|
$cflags = -DFILIO_H -Kpentium
|
||||||
$unistd = -Kthread
|
$unistd =
|
||||||
$thread_cflag = -lsocket -lnsl -lx
|
$thread_cflag = -Kthread
|
||||||
$lflags = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
$lflags = -lsocket -lnsl -lx
|
||||||
$bn_ops =
|
$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
$bn_obj =
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
@@ -2690,7 +2997,73 @@ $cflags = -O -DFILIO_H -Kalloca
|
|||||||
$unistd =
|
$unistd =
|
||||||
$thread_cflag = -Kthread
|
$thread_cflag = -Kthread
|
||||||
$lflags = -lsocket -lnsl
|
$lflags = -lsocket -lnsl
|
||||||
$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
$bn_ops = BN_LLONG MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** unixware-7-gcc
|
||||||
|
$cc = gcc
|
||||||
|
$cflags = -DL_ENDIAN -DFILIO_H -O3 -fomit-frame-pointer -m486 -Wall
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -D_REENTRANT
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
|
||||||
|
$bn_obj =
|
||||||
|
$des_obj =
|
||||||
|
$bf_obj =
|
||||||
|
$md5_obj =
|
||||||
|
$sha1_obj =
|
||||||
|
$cast_obj =
|
||||||
|
$rc4_obj =
|
||||||
|
$rmd160_obj =
|
||||||
|
$rc5_obj =
|
||||||
|
$dso_scheme = dlfcn
|
||||||
|
$shared_target= gnu-shared
|
||||||
|
$shared_cflag = -fPIC
|
||||||
|
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** unixware-7-pentium
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -O -DFILIO_H -Kalloca -Kpentium
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -Kthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
|
$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_extension =
|
||||||
|
$ranlib =
|
||||||
|
|
||||||
|
*** unixware-7-pentium_pro
|
||||||
|
$cc = cc
|
||||||
|
$cflags = -O -DFILIO_H -Kalloca -Kpentium_pro
|
||||||
|
$unistd =
|
||||||
|
$thread_cflag = -Kthread
|
||||||
|
$lflags = -lsocket -lnsl
|
||||||
|
$bn_ops = BN_LLONG MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
|
||||||
$bn_obj =
|
$bn_obj =
|
||||||
$des_obj =
|
$des_obj =
|
||||||
$bf_obj =
|
$bf_obj =
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ RM= rm -f
|
|||||||
|
|
||||||
PEX_LIBS=
|
PEX_LIBS=
|
||||||
EX_LIBS=
|
EX_LIBS=
|
||||||
|
EXE_EXT=
|
||||||
|
|
||||||
CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG)
|
CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG)
|
||||||
|
|
||||||
@@ -32,7 +33,7 @@ PROGRAM= openssl
|
|||||||
|
|
||||||
SCRIPTS=CA.sh CA.pl der_chop
|
SCRIPTS=CA.sh CA.pl der_chop
|
||||||
|
|
||||||
EXE= $(PROGRAM)
|
EXE= $(PROGRAM)$(EXE_EXT)
|
||||||
|
|
||||||
E_EXE= verify asn1pars req dgst dh dhparam enc passwd gendh errstr \
|
E_EXE= verify asn1pars req dgst dh dhparam enc passwd gendh errstr \
|
||||||
ca crl rsa rsautl dsa dsaparam \
|
ca crl rsa rsautl dsa dsaparam \
|
||||||
@@ -77,7 +78,7 @@ top:
|
|||||||
|
|
||||||
all: exe
|
all: exe
|
||||||
|
|
||||||
exe: $(EXE)
|
exe: $(PROGRAM)
|
||||||
|
|
||||||
req: sreq.o $(A_OBJ) $(DLIBCRYPTO)
|
req: sreq.o $(A_OBJ) $(DLIBCRYPTO)
|
||||||
$(CC) -o req $(CFLAG) sreq.o $(A_OBJ) $(RAND_OBJ) $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS)
|
$(CC) -o req $(CFLAG) sreq.o $(A_OBJ) $(RAND_OBJ) $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS)
|
||||||
@@ -209,14 +210,15 @@ ca.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
|||||||
ca.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
ca.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
||||||
ca.o: ../include/openssl/des.h ../include/openssl/dh.h ../include/openssl/dsa.h
|
ca.o: ../include/openssl/des.h ../include/openssl/dh.h ../include/openssl/dsa.h
|
||||||
ca.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
ca.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
||||||
ca.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
ca.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
||||||
ca.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
ca.o: ../include/openssl/err.h ../include/openssl/evp.h
|
||||||
ca.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
ca.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
||||||
ca.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
ca.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
||||||
ca.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
ca.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
||||||
ca.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
ca.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
||||||
ca.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
ca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
||||||
ca.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
ca.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
||||||
|
ca.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
||||||
ca.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
ca.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
||||||
ca.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
ca.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
||||||
ca.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
ca.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
||||||
@@ -295,14 +297,15 @@ dgst.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
dgst.o: ../include/openssl/des.h ../include/openssl/dh.h
|
dgst.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
dgst.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
dgst.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
dgst.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
dgst.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
dgst.o: ../include/openssl/err.h ../include/openssl/evp.h
|
dgst.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
dgst.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
dgst.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
dgst.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
dgst.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
dgst.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
dgst.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
dgst.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
dgst.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
dgst.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
dgst.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
dgst.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
dgst.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
dgst.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
dgst.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
dgst.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
dgst.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
dgst.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
dgst.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
dgst.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
dgst.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
dgst.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -314,14 +317,15 @@ dh.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
|||||||
dh.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
dh.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
||||||
dh.o: ../include/openssl/des.h ../include/openssl/dh.h ../include/openssl/dsa.h
|
dh.o: ../include/openssl/des.h ../include/openssl/dh.h ../include/openssl/dsa.h
|
||||||
dh.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
dh.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
||||||
dh.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
dh.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
||||||
dh.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
dh.o: ../include/openssl/err.h ../include/openssl/evp.h
|
||||||
dh.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
dh.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
||||||
dh.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
dh.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
||||||
dh.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
dh.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
||||||
dh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
dh.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
||||||
dh.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
dh.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
||||||
dh.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
dh.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
||||||
|
dh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
||||||
dh.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
dh.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
||||||
dh.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
dh.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
||||||
dh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
dh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
||||||
@@ -335,14 +339,15 @@ dsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
dsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
dsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
dsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
dsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
dsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
dsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
dsa.o: ../include/openssl/err.h ../include/openssl/evp.h
|
dsa.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
dsa.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
dsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
dsa.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
dsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
dsa.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
dsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
dsa.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
dsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
dsa.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
dsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
dsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
dsa.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
dsa.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
dsa.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
dsa.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
dsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
dsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
dsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
dsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
dsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
dsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -375,20 +380,20 @@ enc.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
enc.o: ../include/openssl/des.h ../include/openssl/dh.h
|
enc.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
enc.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
enc.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
enc.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
enc.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
enc.o: ../include/openssl/err.h ../include/openssl/evp.h
|
enc.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
enc.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
enc.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
enc.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
enc.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
enc.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
enc.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
enc.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
enc.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
enc.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
enc.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
enc.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
enc.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
enc.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
enc.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
enc.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
enc.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
enc.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
enc.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
enc.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
enc.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
enc.o: ../include/openssl/sha.h ../include/openssl/stack.h
|
enc.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
enc.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
|
enc.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
||||||
enc.o: ../include/openssl/x509_vfy.h apps.h
|
enc.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
|
||||||
errstr.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
errstr.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
||||||
errstr.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
errstr.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
||||||
errstr.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
errstr.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
||||||
@@ -419,20 +424,20 @@ gendh.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
gendh.o: ../include/openssl/des.h ../include/openssl/dh.h
|
gendh.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
gendh.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
gendh.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
gendh.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
gendh.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
gendh.o: ../include/openssl/err.h ../include/openssl/evp.h
|
gendh.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
gendh.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
gendh.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
gendh.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
gendh.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
gendh.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
gendh.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
gendh.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
gendh.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
gendh.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
gendh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
gendh.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
gendh.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
gendh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
gendh.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
gendh.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
gendh.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
gendh.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
gendh.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
gendh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
gendh.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
gendh.o: ../include/openssl/sha.h ../include/openssl/stack.h
|
gendh.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
gendh.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
|
gendh.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
||||||
gendh.o: ../include/openssl/x509_vfy.h apps.h
|
gendh.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
|
||||||
gendsa.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
gendsa.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
||||||
gendsa.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
gendsa.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
||||||
gendsa.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
gendsa.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
||||||
@@ -440,14 +445,15 @@ gendsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
gendsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
gendsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
gendsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
gendsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
gendsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
gendsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
gendsa.o: ../include/openssl/err.h ../include/openssl/evp.h
|
gendsa.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
gendsa.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
gendsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
gendsa.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
gendsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
gendsa.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
gendsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
gendsa.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
gendsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
gendsa.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
gendsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
gendsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
gendsa.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
gendsa.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
gendsa.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
gendsa.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
gendsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
gendsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
gendsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
gendsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
gendsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
gendsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -460,14 +466,15 @@ genrsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
genrsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
genrsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
genrsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
genrsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
genrsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
genrsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
genrsa.o: ../include/openssl/err.h ../include/openssl/evp.h
|
genrsa.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
genrsa.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
genrsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
genrsa.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
genrsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
genrsa.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
genrsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
genrsa.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
genrsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
genrsa.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
genrsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
genrsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
genrsa.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
genrsa.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
genrsa.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
genrsa.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
genrsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
genrsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
genrsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
genrsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
genrsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
genrsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -544,14 +551,15 @@ pkcs12.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
pkcs12.o: ../include/openssl/des.h ../include/openssl/dh.h
|
pkcs12.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
pkcs12.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
pkcs12.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
pkcs12.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
pkcs12.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
pkcs12.o: ../include/openssl/err.h ../include/openssl/evp.h
|
pkcs12.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
pkcs12.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
pkcs12.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
pkcs12.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
pkcs12.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
pkcs12.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
pkcs12.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
pkcs12.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
pkcs12.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
pkcs12.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
pkcs12.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
pkcs12.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
pkcs12.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
pkcs12.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h
|
pkcs12.o: ../include/openssl/pem2.h ../include/openssl/pkcs12.h
|
||||||
|
pkcs12.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
||||||
pkcs12.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
pkcs12.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
||||||
pkcs12.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
pkcs12.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
||||||
pkcs12.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
pkcs12.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
||||||
@@ -565,14 +573,15 @@ pkcs7.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
pkcs7.o: ../include/openssl/des.h ../include/openssl/dh.h
|
pkcs7.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
pkcs7.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
pkcs7.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
pkcs7.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
pkcs7.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
pkcs7.o: ../include/openssl/err.h ../include/openssl/evp.h
|
pkcs7.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
pkcs7.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
pkcs7.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
pkcs7.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
pkcs7.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
pkcs7.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
pkcs7.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
pkcs7.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
pkcs7.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
pkcs7.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
pkcs7.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
pkcs7.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
pkcs7.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
pkcs7.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
pkcs7.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
pkcs7.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
pkcs7.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
pkcs7.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
pkcs7.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
pkcs7.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
pkcs7.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
pkcs7.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -585,14 +594,15 @@ pkcs8.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
pkcs8.o: ../include/openssl/des.h ../include/openssl/dh.h
|
pkcs8.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
pkcs8.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
pkcs8.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
pkcs8.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
pkcs8.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
pkcs8.o: ../include/openssl/err.h ../include/openssl/evp.h
|
pkcs8.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
pkcs8.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
pkcs8.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
pkcs8.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
pkcs8.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
pkcs8.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
pkcs8.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
pkcs8.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
pkcs8.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
pkcs8.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
pkcs8.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
pkcs8.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
pkcs8.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
pkcs8.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h
|
pkcs8.o: ../include/openssl/pem2.h ../include/openssl/pkcs12.h
|
||||||
|
pkcs8.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
||||||
pkcs8.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
pkcs8.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
||||||
pkcs8.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
pkcs8.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
||||||
pkcs8.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
pkcs8.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
||||||
@@ -606,19 +616,19 @@ rand.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
rand.o: ../include/openssl/des.h ../include/openssl/dh.h
|
rand.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
rand.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
rand.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
rand.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
rand.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
rand.o: ../include/openssl/err.h ../include/openssl/evp.h
|
rand.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
rand.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
rand.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
rand.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
rand.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
rand.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
rand.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
rand.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
rand.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
rand.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
rand.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
rand.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
rand.o: ../include/openssl/opensslv.h ../include/openssl/pkcs7.h
|
||||||
rand.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
rand.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
rand.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
rand.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
rand.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
rand.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
rand.o: ../include/openssl/sha.h ../include/openssl/stack.h
|
rand.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
rand.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
|
rand.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
||||||
rand.o: ../include/openssl/x509_vfy.h apps.h
|
rand.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
|
||||||
req.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
req.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
||||||
req.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
req.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
||||||
req.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
req.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
||||||
@@ -626,14 +636,15 @@ req.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
req.o: ../include/openssl/des.h ../include/openssl/dh.h
|
req.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
req.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
req.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
req.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
req.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
req.o: ../include/openssl/err.h ../include/openssl/evp.h
|
req.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
req.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
req.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
req.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
req.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
req.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
req.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
req.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
req.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
req.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
req.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
req.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
req.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
req.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
req.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
req.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
req.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
req.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
req.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
req.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
req.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
req.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -647,14 +658,15 @@ rsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
rsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
rsa.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
rsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
rsa.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
rsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
rsa.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
rsa.o: ../include/openssl/err.h ../include/openssl/evp.h
|
rsa.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
rsa.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
rsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
rsa.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
rsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
rsa.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
rsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
rsa.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
rsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
rsa.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
rsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
rsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
rsa.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
rsa.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
rsa.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
rsa.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
rsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
rsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
rsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
rsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
rsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
rsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -667,14 +679,15 @@ rsautl.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
rsautl.o: ../include/openssl/des.h ../include/openssl/dh.h
|
rsautl.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
rsautl.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
rsautl.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
rsautl.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
rsautl.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
rsautl.o: ../include/openssl/err.h ../include/openssl/evp.h
|
rsautl.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
rsautl.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
rsautl.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
rsautl.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
rsautl.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
rsautl.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
rsautl.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
rsautl.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
rsautl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
rsautl.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
rsautl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
rsautl.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
rsautl.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
rsautl.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
rsautl.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
rsautl.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
rsautl.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
rsautl.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
rsautl.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
rsautl.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
rsautl.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
rsautl.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -710,23 +723,24 @@ s_client.o: ../include/openssl/comp.h ../include/openssl/conf.h
|
|||||||
s_client.o: ../include/openssl/crypto.h ../include/openssl/des.h
|
s_client.o: ../include/openssl/crypto.h ../include/openssl/des.h
|
||||||
s_client.o: ../include/openssl/dh.h ../include/openssl/dsa.h
|
s_client.o: ../include/openssl/dh.h ../include/openssl/dsa.h
|
||||||
s_client.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
s_client.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
||||||
s_client.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
s_client.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
||||||
s_client.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
s_client.o: ../include/openssl/err.h ../include/openssl/evp.h
|
||||||
s_client.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
s_client.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
||||||
s_client.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
s_client.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
||||||
s_client.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
s_client.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
||||||
s_client.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
s_client.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
||||||
s_client.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
s_client.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
||||||
s_client.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
s_client.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
||||||
s_client.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
s_client.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
||||||
s_client.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
s_client.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
||||||
s_client.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
s_client.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
||||||
s_client.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
s_client.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
||||||
s_client.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h
|
s_client.o: ../include/openssl/sha.h ../include/openssl/ssl.h
|
||||||
s_client.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h
|
s_client.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
|
||||||
s_client.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
s_client.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
|
||||||
s_client.o: ../include/openssl/tls1.h ../include/openssl/x509.h
|
s_client.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
|
||||||
s_client.o: ../include/openssl/x509_vfy.h apps.h s_apps.h
|
s_client.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
|
||||||
|
s_client.o: s_apps.h
|
||||||
s_server.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
s_server.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
||||||
s_server.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
s_server.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
||||||
s_server.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
s_server.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
||||||
@@ -734,23 +748,24 @@ s_server.o: ../include/openssl/comp.h ../include/openssl/conf.h
|
|||||||
s_server.o: ../include/openssl/crypto.h ../include/openssl/des.h
|
s_server.o: ../include/openssl/crypto.h ../include/openssl/des.h
|
||||||
s_server.o: ../include/openssl/dh.h ../include/openssl/dsa.h
|
s_server.o: ../include/openssl/dh.h ../include/openssl/dsa.h
|
||||||
s_server.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
s_server.o: ../include/openssl/e_os.h ../include/openssl/e_os.h
|
||||||
s_server.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
s_server.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
|
||||||
s_server.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
s_server.o: ../include/openssl/err.h ../include/openssl/evp.h
|
||||||
s_server.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
s_server.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
||||||
s_server.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
s_server.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
||||||
s_server.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
s_server.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
||||||
s_server.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
s_server.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
||||||
s_server.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
s_server.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
||||||
s_server.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
s_server.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
||||||
s_server.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
s_server.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
||||||
s_server.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
s_server.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
||||||
s_server.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
s_server.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
||||||
s_server.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
s_server.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
||||||
s_server.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h
|
s_server.o: ../include/openssl/sha.h ../include/openssl/ssl.h
|
||||||
s_server.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h
|
s_server.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
|
||||||
s_server.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
s_server.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
|
||||||
s_server.o: ../include/openssl/tls1.h ../include/openssl/x509.h
|
s_server.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
|
||||||
s_server.o: ../include/openssl/x509_vfy.h apps.h s_apps.h
|
s_server.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
|
||||||
|
s_server.o: s_apps.h
|
||||||
s_socket.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
s_socket.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
||||||
s_socket.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
s_socket.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
||||||
s_socket.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
s_socket.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
||||||
@@ -828,14 +843,15 @@ smime.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
smime.o: ../include/openssl/des.h ../include/openssl/dh.h
|
smime.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
smime.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
smime.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
smime.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
smime.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
smime.o: ../include/openssl/err.h ../include/openssl/evp.h
|
smime.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
smime.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
smime.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
smime.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
smime.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
smime.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
smime.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
smime.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
smime.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
smime.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
smime.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
smime.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
smime.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
smime.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
smime.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
smime.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
smime.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
smime.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
smime.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
smime.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
smime.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
smime.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -848,20 +864,20 @@ speed.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
speed.o: ../include/openssl/des.h ../include/openssl/dh.h
|
speed.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
speed.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
speed.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
speed.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
speed.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
speed.o: ../include/openssl/err.h ../include/openssl/evp.h
|
speed.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
speed.o: ../include/openssl/hmac.h ../include/openssl/idea.h
|
speed.o: ../include/openssl/evp.h ../include/openssl/hmac.h
|
||||||
speed.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
speed.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
||||||
speed.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
speed.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
||||||
speed.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
speed.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
||||||
speed.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
speed.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
||||||
speed.o: ../include/openssl/opensslv.h ../include/openssl/pkcs7.h
|
speed.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
||||||
speed.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
speed.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
|
||||||
speed.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
speed.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
|
||||||
speed.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
speed.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
|
||||||
speed.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
speed.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
|
||||||
speed.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
speed.o: ../include/openssl/sha.h ../include/openssl/stack.h
|
||||||
speed.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h ./testdsa.h
|
speed.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
|
||||||
speed.o: ./testrsa.h apps.h
|
speed.o: ../include/openssl/x509_vfy.h ./testdsa.h ./testrsa.h apps.h
|
||||||
spkac.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
spkac.o: ../include/openssl/asn1.h ../include/openssl/bio.h
|
||||||
spkac.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
spkac.o: ../include/openssl/blowfish.h ../include/openssl/bn.h
|
||||||
spkac.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
spkac.o: ../include/openssl/buffer.h ../include/openssl/cast.h
|
||||||
@@ -869,14 +885,15 @@ spkac.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
spkac.o: ../include/openssl/des.h ../include/openssl/dh.h
|
spkac.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
spkac.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
spkac.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
spkac.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
spkac.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
spkac.o: ../include/openssl/err.h ../include/openssl/evp.h
|
spkac.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
spkac.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
spkac.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
spkac.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
spkac.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
spkac.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
spkac.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
spkac.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
spkac.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
spkac.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
spkac.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
spkac.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
spkac.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
spkac.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
spkac.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
spkac.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
spkac.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
spkac.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
spkac.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
spkac.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
spkac.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
spkac.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -889,14 +906,15 @@ verify.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
verify.o: ../include/openssl/des.h ../include/openssl/dh.h
|
verify.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
verify.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
verify.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
verify.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
verify.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
verify.o: ../include/openssl/err.h ../include/openssl/evp.h
|
verify.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
verify.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
verify.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
verify.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
verify.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
verify.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
verify.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
verify.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
verify.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
verify.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
verify.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
verify.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
verify.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
verify.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
verify.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
verify.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
verify.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
verify.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
verify.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
verify.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
verify.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
verify.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
@@ -929,14 +947,15 @@ x509.o: ../include/openssl/conf.h ../include/openssl/crypto.h
|
|||||||
x509.o: ../include/openssl/des.h ../include/openssl/dh.h
|
x509.o: ../include/openssl/des.h ../include/openssl/dh.h
|
||||||
x509.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
x509.o: ../include/openssl/dsa.h ../include/openssl/e_os.h
|
||||||
x509.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
x509.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
|
||||||
x509.o: ../include/openssl/err.h ../include/openssl/evp.h
|
x509.o: ../include/openssl/engine.h ../include/openssl/err.h
|
||||||
x509.o: ../include/openssl/idea.h ../include/openssl/lhash.h
|
x509.o: ../include/openssl/evp.h ../include/openssl/idea.h
|
||||||
x509.o: ../include/openssl/md2.h ../include/openssl/md4.h
|
x509.o: ../include/openssl/lhash.h ../include/openssl/md2.h
|
||||||
x509.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
|
x509.o: ../include/openssl/md4.h ../include/openssl/md5.h
|
||||||
x509.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
|
x509.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
|
||||||
x509.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
x509.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
|
||||||
x509.o: ../include/openssl/pem.h ../include/openssl/pem2.h
|
x509.o: ../include/openssl/opensslv.h ../include/openssl/pem.h
|
||||||
x509.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h
|
x509.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
|
||||||
|
x509.o: ../include/openssl/rand.h ../include/openssl/rc2.h
|
||||||
x509.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
x509.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
|
||||||
x509.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
x509.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
|
||||||
x509.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
x509.o: ../include/openssl/safestack.h ../include/openssl/sha.h
|
||||||
|
|||||||
@@ -170,6 +170,8 @@ 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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ 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
|
||||||
|
/* Since this is currently inofficial, let's give it a high number */
|
||||||
|
#define FORMAT_ENGINE 127
|
||||||
|
|
||||||
#define NETSCAPE_CERT_HDR "certificate"
|
#define NETSCAPE_CERT_HDR "certificate"
|
||||||
|
|
||||||
|
|||||||
35
apps/ca.c
35
apps/ca.c
@@ -74,6 +74,7 @@
|
|||||||
#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
|
||||||
@@ -167,6 +168,7 @@ 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
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -216,6 +218,7 @@ 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;
|
||||||
@@ -268,6 +271,7 @@ 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;
|
||||||
@@ -419,6 +423,11 @@ 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:
|
||||||
@@ -439,6 +448,24 @@ 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");
|
||||||
@@ -1220,7 +1247,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);
|
||||||
@@ -1230,7 +1261,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]);
|
||||||
|
|||||||
33
apps/dgst.c
33
apps/dgst.c
@@ -66,6 +66,7 @@
|
|||||||
#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
|
||||||
@@ -73,13 +74,14 @@
|
|||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG dgst_main
|
#define PROG dgst_main
|
||||||
|
|
||||||
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, char binout,
|
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
|
||||||
EVP_PKEY *key, unsigned char *sigin, int siglen);
|
EVP_PKEY *key, unsigned char *sigin, int siglen);
|
||||||
|
|
||||||
int MAIN(int, char **);
|
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;
|
||||||
@@ -93,10 +95,11 @@ int MAIN(int argc, char **argv)
|
|||||||
int debug=0;
|
int debug=0;
|
||||||
const char *outfile = NULL, *keyfile = NULL;
|
const char *outfile = NULL, *keyfile = NULL;
|
||||||
const char *sigfile = NULL, *randfile = NULL;
|
const char *sigfile = NULL, *randfile = NULL;
|
||||||
char 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();
|
||||||
|
|
||||||
@@ -154,6 +157,11 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) break;
|
if (--argc < 1) break;
|
||||||
sigfile=*(++argv);
|
sigfile=*(++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)
|
||||||
@@ -190,6 +198,7 @@ int MAIN(int argc, char **argv)
|
|||||||
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,"-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);
|
||||||
@@ -209,6 +218,24 @@ 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)
|
||||||
@@ -338,7 +365,7 @@ end:
|
|||||||
EXIT(err);
|
EXIT(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, char binout,
|
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
|
||||||
EVP_PKEY *key, unsigned char *sigin, int siglen)
|
EVP_PKEY *key, unsigned char *sigin, int siglen)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
|||||||
29
apps/dh.c
29
apps/dh.c
@@ -69,6 +69,7 @@
|
|||||||
#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
|
||||||
@@ -87,11 +88,12 @@ 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;
|
char *infile,*outfile,*prog,*engine;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -99,6 +101,7 @@ 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;
|
||||||
@@ -129,6 +132,11 @@ 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)
|
||||||
@@ -160,11 +168,30 @@ 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,6 +121,7 @@
|
|||||||
#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>
|
||||||
@@ -148,6 +149,7 @@ 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
|
||||||
@@ -156,7 +158,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;
|
char *inrand=NULL,*engine=NULL;
|
||||||
int num = 0, g = 0;
|
int num = 0, g = 0;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
@@ -195,6 +197,11 @@ 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)
|
||||||
@@ -240,6 +247,7 @@ 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");
|
||||||
@@ -249,6 +257,24 @@ 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,6 +68,7 @@
|
|||||||
#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
|
||||||
@@ -87,6 +88,7 @@ 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;
|
||||||
@@ -94,7 +96,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;
|
char *infile,*outfile,*prog,*engine;
|
||||||
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;
|
||||||
@@ -105,6 +107,7 @@ 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;
|
||||||
@@ -145,6 +148,11 @@ 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)
|
||||||
@@ -176,6 +184,7 @@ 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
|
||||||
@@ -189,6 +198,24 @@ 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;
|
||||||
|
|||||||
35
apps/enc.c
35
apps/enc.c
@@ -70,6 +70,7 @@
|
|||||||
#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
|
||||||
@@ -84,6 +85,7 @@ 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,6 +103,7 @@ int MAIN(int argc, char **argv)
|
|||||||
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 16
|
||||||
char pname[PROG_NAME_SIZE];
|
char pname[PROG_NAME_SIZE];
|
||||||
|
char *engine = NULL;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
|
||||||
@@ -141,6 +144,11 @@ 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)
|
||||||
@@ -241,6 +249,7 @@ 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");
|
||||||
@@ -314,6 +323,24 @@ bad:
|
|||||||
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;
|
||||||
@@ -515,6 +542,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");
|
||||||
|
|||||||
33
apps/gendh.c
33
apps/gendh.c
@@ -70,6 +70,7 @@
|
|||||||
#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
|
||||||
@@ -81,11 +82,13 @@ 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();
|
||||||
@@ -110,6 +113,11 @@ 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;
|
||||||
@@ -125,15 +133,34 @@ 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,6 +68,7 @@
|
|||||||
#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
|
||||||
@@ -77,6 +78,7 @@ 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;
|
||||||
@@ -84,6 +86,7 @@ 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();
|
||||||
|
|
||||||
@@ -106,6 +109,11 @@ 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;
|
||||||
@@ -145,6 +153,7 @@ 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");
|
||||||
@@ -153,6 +162,24 @@ 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,6 +69,7 @@
|
|||||||
#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
|
||||||
@@ -80,6 +81,7 @@ 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;
|
||||||
@@ -88,6 +90,7 @@ 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;
|
||||||
|
|
||||||
@@ -116,6 +119,11 @@ 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;
|
||||||
@@ -154,6 +162,7 @@ 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");
|
||||||
@@ -167,6 +176,24 @@ 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);
|
||||||
@@ -186,7 +213,8 @@ 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]"
|
||||||
$!
|
$!
|
||||||
|
|||||||
@@ -66,6 +66,7 @@
|
|||||||
#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
|
||||||
|
|
||||||
@@ -92,6 +93,7 @@ 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;
|
||||||
@@ -118,6 +120,7 @@ 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();
|
||||||
|
|
||||||
@@ -236,6 +239,11 @@ 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;
|
||||||
@@ -279,12 +287,27 @@ 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,6 +67,7 @@
|
|||||||
#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
|
||||||
@@ -82,6 +83,7 @@ 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;
|
||||||
@@ -89,6 +91,7 @@ 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();
|
||||||
|
|
||||||
@@ -132,6 +135,11 @@ 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);
|
||||||
@@ -154,11 +162,30 @@ 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,6 +62,7 @@
|
|||||||
#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
|
||||||
@@ -70,6 +71,7 @@ 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;
|
||||||
@@ -85,9 +87,13 @@ 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;
|
||||||
@@ -138,6 +144,11 @@ 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++;
|
||||||
@@ -170,9 +181,28 @@ 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
apps/rand.c
35
apps/rand.c
@@ -9,6 +9,7 @@
|
|||||||
#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
|
||||||
@@ -23,6 +24,7 @@ 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;
|
||||||
@@ -30,6 +32,7 @@ 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();
|
||||||
|
|
||||||
@@ -48,6 +51,13 @@ 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))
|
||||||
@@ -84,12 +94,31 @@ 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, "-rand file%cfile%c... - seed PRNG from files\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
|
BIO_printf(bio_err," -engine e - use engine e, possibly a hardware device.\n");
|
||||||
BIO_printf(bio_err, "-base64 - encode output\n");
|
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");
|
||||||
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",
|
||||||
|
|||||||
63
apps/req.c
63
apps/req.c
@@ -73,6 +73,7 @@
|
|||||||
#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"
|
||||||
|
|
||||||
@@ -140,6 +141,7 @@ 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
|
||||||
@@ -152,6 +154,7 @@ int MAIN(int argc, char **argv)
|
|||||||
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;
|
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;
|
||||||
@@ -195,6 +198,11 @@ 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;
|
||||||
@@ -375,6 +383,7 @@ 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");
|
||||||
@@ -383,8 +392,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");
|
||||||
@@ -522,24 +530,55 @@ bad:
|
|||||||
if ((in == NULL) || (out == NULL))
|
if ((in == NULL) || (out == NULL))
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
if (keyfile != NULL)
|
if (engine != NULL)
|
||||||
{
|
{
|
||||||
if (BIO_read_filename(in,keyfile) <= 0)
|
if((e = ENGINE_by_id(engine)) == NULL)
|
||||||
{
|
{
|
||||||
perror(keyfile);
|
BIO_printf(bio_err,"invalid engine \"%s\"\n",
|
||||||
|
engine);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
if(!ENGINE_set_default(e, ENGINE_METHOD_ALL))
|
||||||
if (keyform == FORMAT_ASN1)
|
|
||||||
pkey=d2i_PrivateKey_bio(in,NULL);
|
|
||||||
else if (keyform == FORMAT_PEM)
|
|
||||||
{
|
{
|
||||||
pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,passin);
|
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 (keyform == FORMAT_ENGINE)
|
||||||
|
{
|
||||||
|
if (!e)
|
||||||
|
{
|
||||||
|
BIO_printf(bio_err,"no engine specified\n");
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
|
pkey = ENGINE_load_private_key(e, keyfile, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"bad input format specified for X509 request\n");
|
if (BIO_read_filename(in,keyfile) <= 0)
|
||||||
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)
|
||||||
|
|||||||
27
apps/rsa.c
27
apps/rsa.c
@@ -68,6 +68,7 @@
|
|||||||
#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
|
||||||
@@ -90,6 +91,7 @@ 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;
|
||||||
@@ -100,6 +102,7 @@ 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();
|
||||||
@@ -148,6 +151,11 @@ 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)
|
||||||
@@ -195,11 +203,30 @@ 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;
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
#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
|
||||||
@@ -82,6 +83,7 @@ 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 *keyfile = NULL;
|
char *keyfile = NULL;
|
||||||
@@ -95,6 +97,7 @@ int MAIN(int argc, char **argv)
|
|||||||
unsigned char *rsa_in = NULL, *rsa_out = NULL, pad;
|
unsigned char *rsa_in = NULL, *rsa_out = NULL, pad;
|
||||||
int rsa_inlen, rsa_outlen = 0;
|
int rsa_inlen, rsa_outlen = 0;
|
||||||
int keysize;
|
int keysize;
|
||||||
|
char *engine=NULL;
|
||||||
|
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
|
|
||||||
@@ -117,6 +120,9 @@ 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")) {
|
||||||
@@ -151,6 +157,24 @@ 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);
|
||||||
|
|
||||||
@@ -280,6 +304,7 @@ static void usage()
|
|||||||
BIO_printf(bio_err, "-inkey file input key\n");
|
BIO_printf(bio_err, "-inkey file input key\n");
|
||||||
BIO_printf(bio_err, "-pubin input is an RSA public\n");
|
BIO_printf(bio_err, "-pubin input is an RSA public\n");
|
||||||
BIO_printf(bio_err, "-certin input is a certificate carrying an RSA public key\n");
|
BIO_printf(bio_err, "-certin input is a certificate carrying an RSA public key\n");
|
||||||
|
BIO_printf(bio_err, "-engine e use engine e, possibly a hardware device.\n");
|
||||||
BIO_printf(bio_err, "-ssl use SSL v2 padding\n");
|
BIO_printf(bio_err, "-ssl use SSL v2 padding\n");
|
||||||
BIO_printf(bio_err, "-raw use no padding\n");
|
BIO_printf(bio_err, "-raw use no padding\n");
|
||||||
BIO_printf(bio_err, "-pkcs use PKCS#1 v1.5 padding (default)\n");
|
BIO_printf(bio_err, "-pkcs use PKCS#1 v1.5 padding (default)\n");
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ typedef unsigned int u_int;
|
|||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
#include "s_apps.h"
|
#include "s_apps.h"
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
@@ -154,7 +155,7 @@ static void sc_usage(void)
|
|||||||
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," -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," -engine id - Initialise and use the specified engine\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
int MAIN(int, char **);
|
int MAIN(int, char **);
|
||||||
@@ -182,6 +183,8 @@ int MAIN(int argc, char **argv)
|
|||||||
SSL_METHOD *meth=NULL;
|
SSL_METHOD *meth=NULL;
|
||||||
BIO *sbio;
|
BIO *sbio;
|
||||||
char *inrand=NULL;
|
char *inrand=NULL;
|
||||||
|
char *engine_id=NULL;
|
||||||
|
ENGINE *e=NULL;
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
#endif
|
#endif
|
||||||
@@ -324,6 +327,11 @@ int MAIN(int argc, char **argv)
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
inrand= *(++argv);
|
inrand= *(++argv);
|
||||||
}
|
}
|
||||||
|
else if (strcmp(*argv,"-engine") == 0)
|
||||||
|
{
|
||||||
|
if (--argc < 1) goto bad;
|
||||||
|
engine_id = *(++argv);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
||||||
@@ -364,6 +372,30 @@ 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)
|
||||||
{
|
{
|
||||||
@@ -896,5 +928,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ typedef unsigned int u_int;
|
|||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
#include "s_apps.h"
|
#include "s_apps.h"
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
@@ -177,6 +178,7 @@ 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)
|
||||||
@@ -199,6 +201,7 @@ 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
|
||||||
|
|
||||||
@@ -244,6 +247,7 @@ static void sv_usage(void)
|
|||||||
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," -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," -engine id - Initialise and use the specified engine\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int local_argc=0;
|
static int local_argc=0;
|
||||||
@@ -414,6 +418,8 @@ int MAIN(int argc, char *argv[])
|
|||||||
int state=0;
|
int state=0;
|
||||||
SSL_METHOD *meth=NULL;
|
SSL_METHOD *meth=NULL;
|
||||||
char *inrand=NULL;
|
char *inrand=NULL;
|
||||||
|
char *engine_id=NULL;
|
||||||
|
ENGINE *e=NULL;
|
||||||
#ifndef NO_DH
|
#ifndef NO_DH
|
||||||
DH *dh=NULL;
|
DH *dh=NULL;
|
||||||
#endif
|
#endif
|
||||||
@@ -573,6 +579,11 @@ int MAIN(int argc, char *argv[])
|
|||||||
if (--argc < 1) goto bad;
|
if (--argc < 1) goto bad;
|
||||||
inrand= *(++argv);
|
inrand= *(++argv);
|
||||||
}
|
}
|
||||||
|
else if (strcmp(*argv,"-engine") == 0)
|
||||||
|
{
|
||||||
|
if (--argc < 1) goto bad;
|
||||||
|
engine_id= *(++argv);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
||||||
@@ -624,6 +635,29 @@ 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)
|
||||||
{
|
{
|
||||||
@@ -1352,15 +1386,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')
|
||||||
{
|
{
|
||||||
@@ -1384,9 +1432,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)
|
||||||
@@ -1398,7 +1448,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)
|
||||||
|
|||||||
30
apps/smime.c
30
apps/smime.c
@@ -64,6 +64,7 @@
|
|||||||
#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
|
||||||
@@ -81,6 +82,7 @@ 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;
|
||||||
@@ -103,8 +105,9 @@ 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;
|
||||||
args = argv + 1;
|
char *engine=NULL;
|
||||||
|
|
||||||
|
args = argv + 1;
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
while (!badarg && *args && *args[0] == '-') {
|
while (!badarg && *args && *args[0] == '-') {
|
||||||
@@ -153,6 +156,11 @@ 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++;
|
||||||
@@ -290,6 +298,8 @@ 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");
|
||||||
@@ -297,6 +307,24 @@ 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;
|
||||||
|
|||||||
47
apps/speed.c
47
apps/speed.c
@@ -81,13 +81,14 @@
|
|||||||
#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__)
|
||||||
# define USE_TOD
|
# define USE_TOD
|
||||||
#elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
|
#elif !defined(MSDOS) && (!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)
|
#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && !defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && !defined(MPE) && !defined(__NetBSD__)
|
||||||
# define TIMEB
|
# define TIMEB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -310,6 +311,7 @@ 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
|
||||||
@@ -470,6 +472,37 @@ 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
|
||||||
@@ -517,7 +550,7 @@ int MAIN(int argc, char **argv)
|
|||||||
#ifdef RSAref
|
#ifdef RSAref
|
||||||
if (strcmp(*argv,"rsaref") == 0)
|
if (strcmp(*argv,"rsaref") == 0)
|
||||||
{
|
{
|
||||||
RSA_set_default_method(RSA_PKCS1_RSAref());
|
RSA_set_default_openssl_method(RSA_PKCS1_RSAref());
|
||||||
j--;
|
j--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -525,7 +558,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_method(RSA_PKCS1_SSLeay());
|
RSA_set_default_openssl_method(RSA_PKCS1_SSLeay());
|
||||||
j--;
|
j--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -670,11 +703,12 @@ 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--;
|
||||||
@@ -831,6 +865,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++)
|
||||||
@@ -848,6 +883,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)
|
||||||
@@ -1379,6 +1415,7 @@ 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,6 +69,7 @@
|
|||||||
#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
|
||||||
@@ -81,6 +82,7 @@ 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;
|
||||||
@@ -91,6 +93,7 @@ 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();
|
||||||
|
|
||||||
@@ -136,6 +139,11 @@ 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)
|
||||||
@@ -161,6 +169,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,6 +179,24 @@ 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,6 +65,7 @@
|
|||||||
#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
|
||||||
@@ -78,6 +79,7 @@ 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;
|
||||||
@@ -85,6 +87,7 @@ 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;
|
||||||
@@ -137,6 +140,11 @@ 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)
|
||||||
@@ -154,6 +162,24 @@ 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) {
|
||||||
@@ -201,7 +227,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] cert1 cert2 ...\n");
|
BIO_printf(bio_err,"usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] [-engine e] 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;
|
||||||
|
|||||||
29
apps/x509.c
29
apps/x509.c
@@ -73,6 +73,7 @@
|
|||||||
#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
|
||||||
@@ -129,6 +130,7 @@ 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",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -145,6 +147,7 @@ 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;
|
||||||
@@ -175,6 +178,7 @@ int MAIN(int argc, char **argv)
|
|||||||
int need_rand = 0;
|
int need_rand = 0;
|
||||||
int checkend=0,checkoffset=0;
|
int checkend=0,checkoffset=0;
|
||||||
unsigned long nmflag = 0;
|
unsigned long nmflag = 0;
|
||||||
|
char *engine=NULL;
|
||||||
|
|
||||||
reqfile=0;
|
reqfile=0;
|
||||||
|
|
||||||
@@ -337,6 +341,11 @@ 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)
|
||||||
@@ -420,6 +429,24 @@ 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);
|
||||||
|
|
||||||
@@ -867,8 +894,10 @@ bad:
|
|||||||
|
|
||||||
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);
|
||||||
|
|||||||
99
config
99
config
@@ -68,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
|
||||||
@@ -87,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
|
||||||
;;
|
;;
|
||||||
@@ -187,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"
|
||||||
;;
|
;;
|
||||||
@@ -211,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
|
||||||
;;
|
;;
|
||||||
@@ -263,6 +298,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "mips-sony-newsos4"; exit 0;
|
echo "mips-sony-newsos4"; exit 0;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
CYGWIN*)
|
||||||
|
echo "${MACHINE}-whatever-cygwin32"; exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -427,11 +466,27 @@ case "$GUESSOS" in
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
mips-*-linux?) OUT="linux-mips" ;;
|
mips-*-linux?)
|
||||||
|
cat >dummy.c <<EOF
|
||||||
|
#include <stdio.h> /* for printf() prototype */
|
||||||
|
int main (argc, argv) int argc; char *argv[]; {
|
||||||
|
#ifdef __MIPSEB__
|
||||||
|
printf ("linux-%s\n", argv[1]);
|
||||||
|
#endif
|
||||||
|
#ifdef __MIPSEL__
|
||||||
|
printf ("linux-%sel\n", argv[1]);
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}`
|
||||||
|
rm dummy dummy.c
|
||||||
|
;;
|
||||||
ppc-*-linux2) OUT="linux-ppc" ;;
|
ppc-*-linux2) OUT="linux-ppc" ;;
|
||||||
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:-(
|
||||||
@@ -477,7 +532,15 @@ case "$GUESSOS" in
|
|||||||
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" ;;
|
||||||
@@ -497,14 +560,32 @@ case "$GUESSOS" in
|
|||||||
# *-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" ;;
|
||||||
|
*-*-cygwin32) OUT="CygWin32"
|
||||||
|
options="$options no-threads no-asm" ;;
|
||||||
*) 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
|
||||||
|
|
||||||
|
#get some basic shared lib support (behnke@trustcenter.de)
|
||||||
|
case "$OUT" in
|
||||||
|
solaris-*-gcc)
|
||||||
|
if [ "$SHARED" = "true" ]
|
||||||
|
then
|
||||||
|
options="$options -DPIC -fPIC"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# 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 ]
|
||||||
@@ -525,7 +606,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
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ 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 \
|
bn rsa dsa dh dso engine \
|
||||||
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
|
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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. */
|
||||||
|
|
||||||
@@ -1148,4 +1147,3 @@ void ASN1_STRING_TABLE_cleanup(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -349,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;
|
||||||
|
|||||||
@@ -141,11 +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);
|
||||||
}
|
}
|
||||||
/* If empty no extra SET OF needed */
|
|
||||||
if (ret)
|
|
||||||
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
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -151,7 +156,7 @@ static void _dopr(char **sbuffer, char **buffer,
|
|||||||
|
|
||||||
/* some handy macros */
|
/* some handy macros */
|
||||||
#define char_to_int(p) (p - '0')
|
#define char_to_int(p) (p - '0')
|
||||||
#define MAX(p,q) ((p >= q) ? p : q)
|
#define OSSL_MAX(p,q) ((p >= q) ? p : q)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_dopr(
|
_dopr(
|
||||||
@@ -502,13 +507,13 @@ fmtint(
|
|||||||
convert[place] = 0;
|
convert[place] = 0;
|
||||||
|
|
||||||
zpadlen = max - place;
|
zpadlen = max - place;
|
||||||
spadlen = min - MAX(max, place) - (signvalue ? 1 : 0);
|
spadlen = min - OSSL_MAX(max, place) - (signvalue ? 1 : 0);
|
||||||
if (zpadlen < 0)
|
if (zpadlen < 0)
|
||||||
zpadlen = 0;
|
zpadlen = 0;
|
||||||
if (spadlen < 0)
|
if (spadlen < 0)
|
||||||
spadlen = 0;
|
spadlen = 0;
|
||||||
if (flags & DP_F_ZERO) {
|
if (flags & DP_F_ZERO) {
|
||||||
zpadlen = MAX(zpadlen, spadlen);
|
zpadlen = OSSL_MAX(zpadlen, spadlen);
|
||||||
spadlen = 0;
|
spadlen = 0;
|
||||||
}
|
}
|
||||||
if (flags & DP_F_MINUS)
|
if (flags & DP_F_MINUS)
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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=
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -431,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);
|
||||||
|
|
||||||
@@ -588,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);
|
||||||
@@ -615,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. */
|
||||||
|
|
||||||
@@ -684,4 +683,3 @@ int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -474,7 +474,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:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -329,6 +331,7 @@ 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_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);
|
||||||
@@ -403,7 +406,6 @@ int BN_is_prime(const BIGNUM *p,int nchecks,
|
|||||||
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);
|
||||||
@@ -474,6 +476,7 @@ int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom);
|
|||||||
/* 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. */
|
||||||
|
|
||||||
@@ -517,4 +520,3 @@ int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom);
|
|||||||
}
|
}
|
||||||
#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)
|
||||||
@@ -238,6 +238,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
|
|||||||
{
|
{
|
||||||
BN_ULONG q,l0;
|
BN_ULONG q,l0;
|
||||||
#if defined(BN_DIV3W) && !defined(NO_ASM)
|
#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;
|
||||||
|
|||||||
@@ -113,13 +113,6 @@
|
|||||||
#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
|
||||||
|
|
||||||
@@ -183,174 +176,6 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#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,
|
int BN_mod_exp(BIGNUM *r, BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
|
||||||
BN_CTX *ctx)
|
BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
@@ -360,13 +185,6 @@ int BN_mod_exp(BIGNUM *r, 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
|
||||||
@@ -392,10 +210,6 @@ int BN_mod_exp(BIGNUM *r, 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -525,12 +339,6 @@ int BN_mod_exp_mont(BIGNUM *rr, 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);
|
||||||
@@ -693,19 +501,6 @@ 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
|
||||||
|
|||||||
@@ -225,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++)
|
||||||
@@ -289,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 */
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -172,8 +225,9 @@ int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* random number r: 0 <= r < range */
|
/* random number r: 0 <= r < range */
|
||||||
int BN_rand_range(BIGNUM *r, BIGNUM *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;
|
int n;
|
||||||
|
|
||||||
if (range->neg || BN_is_zero(range))
|
if (range->neg || BN_is_zero(range))
|
||||||
@@ -184,26 +238,19 @@ int BN_rand_range(BIGNUM *r, BIGNUM *range)
|
|||||||
|
|
||||||
n = BN_num_bits(range); /* n > 0 */
|
n = BN_num_bits(range); /* n > 0 */
|
||||||
|
|
||||||
|
/* BN_is_bit_set(range, n - 1) always holds */
|
||||||
|
|
||||||
if (n == 1)
|
if (n == 1)
|
||||||
{
|
{
|
||||||
if (!BN_zero(r)) return 0;
|
if (!BN_zero(r)) return 0;
|
||||||
}
|
}
|
||||||
else if (BN_is_bit_set(range, n - 2))
|
else if (!BN_is_bit_set(range, n - 2) && !BN_is_bit_set(range, n - 3))
|
||||||
{
|
{
|
||||||
do
|
/* range = 100..._2,
|
||||||
{
|
|
||||||
/* range = 11..._2, so each iteration succeeds with probability >= .75 */
|
|
||||||
if (!BN_rand(r, n, -1, 0)) return 0;
|
|
||||||
}
|
|
||||||
while (BN_cmp(r, range) >= 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* range = 10..._2,
|
|
||||||
* so 3*range (= 11..._2) is exactly one bit longer than range */
|
* so 3*range (= 11..._2) is exactly one bit longer than range */
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (!BN_rand(r, n + 1, -1, 0)) return 0;
|
if (!bn_rand(r, n + 1, -1, 0)) return 0;
|
||||||
/* If r < 3*range, use r := r MOD range
|
/* If r < 3*range, use r := r MOD range
|
||||||
* (which is either r, r - range, or r - 2*range).
|
* (which is either r, r - range, or r - 2*range).
|
||||||
* Otherwise, iterate once more.
|
* Otherwise, iterate once more.
|
||||||
@@ -218,6 +265,26 @@ int BN_rand_range(BIGNUM *r, BIGNUM *range)
|
|||||||
}
|
}
|
||||||
while (BN_cmp(r, range) >= 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;
|
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);
|
||||||
|
}
|
||||||
|
|||||||
@@ -245,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);
|
||||||
|
|
||||||
|
|||||||
@@ -75,12 +75,11 @@ void BUF_MEM_free(BUF_MEM *a);
|
|||||||
int BUF_MEM_grow(BUF_MEM *str, int len);
|
int BUF_MEM_grow(BUF_MEM *str, int len);
|
||||||
char * BUF_strdup(const char *str);
|
char * BUF_strdup(const char *str);
|
||||||
|
|
||||||
void ERR_load_BUF_strings(void );
|
|
||||||
|
|
||||||
/* 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_BUF_strings(void);
|
||||||
|
|
||||||
/* Error codes for the BUF functions. */
|
/* Error codes for the BUF functions. */
|
||||||
|
|
||||||
@@ -95,4 +94,3 @@ void ERR_load_BUF_strings(void );
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,10 @@ TEST=
|
|||||||
APPS=
|
APPS=
|
||||||
|
|
||||||
LIB=$(TOP)/libcrypto.a
|
LIB=$(TOP)/libcrypto.a
|
||||||
LIBSRC= comp_lib.c \
|
LIBSRC= comp_lib.c comp_err.c \
|
||||||
c_rle.c c_zlib.c
|
c_rle.c c_zlib.c
|
||||||
|
|
||||||
LIBOBJ= comp_lib.o \
|
LIBOBJ= comp_lib.o comp_err.o \
|
||||||
c_rle.o c_zlib.o
|
c_rle.o c_zlib.o
|
||||||
|
|
||||||
SRC= $(LIBSRC)
|
SRC= $(LIBSRC)
|
||||||
@@ -94,6 +94,11 @@ c_zlib.o: ../../include/openssl/crypto.h ../../include/openssl/obj_mac.h
|
|||||||
c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||||
c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
|
comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h
|
||||||
|
comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/err.h
|
||||||
|
comp_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslv.h
|
||||||
|
comp_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||||
|
comp_err.o: ../../include/openssl/symhacks.h
|
||||||
comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
|
comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
|
||||||
comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/obj_mac.h
|
comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/obj_mac.h
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ COMP_METHOD *COMP_zlib(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_COMP_strings(void);
|
||||||
|
|
||||||
/* Error codes for the COMP functions. */
|
/* Error codes for the COMP functions. */
|
||||||
|
|
||||||
@@ -58,4 +59,3 @@ COMP_METHOD *COMP_zlib(void );
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ long CONF_get_number(LHASH *conf,char *group,char *name);
|
|||||||
void CONF_free(LHASH *conf);
|
void CONF_free(LHASH *conf);
|
||||||
int CONF_dump_fp(LHASH *conf, FILE *out);
|
int CONF_dump_fp(LHASH *conf, FILE *out);
|
||||||
int CONF_dump_bio(LHASH *conf, BIO *out);
|
int CONF_dump_bio(LHASH *conf, BIO *out);
|
||||||
void ERR_load_CONF_strings(void );
|
|
||||||
|
|
||||||
/* New conf code. The semantics are different from the functions above.
|
/* New conf code. The semantics are different from the functions above.
|
||||||
If that wasn't the case, the above functions would have been replaced */
|
If that wasn't the case, the above functions would have been replaced */
|
||||||
@@ -145,6 +144,7 @@ int NCONF_dump_bio(CONF *conf, BIO *out);
|
|||||||
/* 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_CONF_strings(void);
|
||||||
|
|
||||||
/* Error codes for the CONF functions. */
|
/* Error codes for the CONF functions. */
|
||||||
|
|
||||||
@@ -176,4 +176,3 @@ int NCONF_dump_bio(CONF *conf, BIO *out);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
|
|||||||
"ssl_sess_cert",
|
"ssl_sess_cert",
|
||||||
"ssl",
|
"ssl",
|
||||||
"rand",
|
"rand",
|
||||||
|
"rand2",
|
||||||
"debug_malloc",
|
"debug_malloc",
|
||||||
"BIO",
|
"BIO",
|
||||||
"gethostbyname",
|
"gethostbyname",
|
||||||
@@ -100,7 +101,8 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
|
|||||||
"debug_malloc2",
|
"debug_malloc2",
|
||||||
"dso",
|
"dso",
|
||||||
"dynlock",
|
"dynlock",
|
||||||
#if CRYPTO_NUM_LOCKS != 28
|
"engine",
|
||||||
|
#if CRYPTO_NUM_LOCKS != 30
|
||||||
# error "Inconsistency between crypto.h and cryptlib.c"
|
# error "Inconsistency between crypto.h and cryptlib.c"
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@@ -227,7 +229,10 @@ void CRYPTO_destroy_dynlockid(int i)
|
|||||||
CRYPTO_w_lock(CRYPTO_LOCK_DYNLOCK);
|
CRYPTO_w_lock(CRYPTO_LOCK_DYNLOCK);
|
||||||
|
|
||||||
if (dyn_locks == NULL || i >= sk_CRYPTO_dynlock_num(dyn_locks))
|
if (dyn_locks == NULL || i >= sk_CRYPTO_dynlock_num(dyn_locks))
|
||||||
return;
|
{
|
||||||
|
CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
|
||||||
|
return;
|
||||||
|
}
|
||||||
pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
|
pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
|
||||||
if (pointer != NULL)
|
if (pointer != NULL)
|
||||||
{
|
{
|
||||||
@@ -240,7 +245,7 @@ void CRYPTO_destroy_dynlockid(int i)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (--(pointer->references) <= 0)
|
if (pointer->references <= 0)
|
||||||
{
|
{
|
||||||
sk_CRYPTO_dynlock_set(dyn_locks, i, NULL);
|
sk_CRYPTO_dynlock_set(dyn_locks, i, NULL);
|
||||||
}
|
}
|
||||||
@@ -395,16 +400,15 @@ void CRYPTO_lock(int mode, int type, const char *file, int line)
|
|||||||
#endif
|
#endif
|
||||||
if (type < 0)
|
if (type < 0)
|
||||||
{
|
{
|
||||||
int i = -type - 1;
|
|
||||||
struct CRYPTO_dynlock_value *pointer
|
struct CRYPTO_dynlock_value *pointer
|
||||||
= CRYPTO_get_dynlock_value(i);
|
= CRYPTO_get_dynlock_value(type);
|
||||||
|
|
||||||
if (pointer)
|
if (pointer && dynlock_lock_callback)
|
||||||
{
|
{
|
||||||
dynlock_lock_callback(mode, pointer, file, line);
|
dynlock_lock_callback(mode, pointer, file, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
CRYPTO_destroy_dynlockid(i);
|
CRYPTO_destroy_dynlockid(type);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (locking_callback != NULL)
|
if (locking_callback != NULL)
|
||||||
@@ -430,7 +434,6 @@ int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file,
|
|||||||
CRYPTO_get_lock_name(type),
|
CRYPTO_get_lock_name(type),
|
||||||
file,line);
|
file,line);
|
||||||
#endif
|
#endif
|
||||||
*pointer=ret;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ $! Define The Different Encryption Types.
|
|||||||
$!
|
$!
|
||||||
$ ENCRYPT_TYPES = "Basic,MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,"+ -
|
$ ENCRYPT_TYPES = "Basic,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,"+ -
|
"BN,RSA,DSA,DH,DSO,ENGINE,"+ -
|
||||||
"BUFFER,BIO,STACK,LHASH,RAND,ERR,OBJECTS,"+ -
|
"BUFFER,BIO,STACK,LHASH,RAND,ERR,OBJECTS,"+ -
|
||||||
"EVP,EVP_2,ASN1,ASN1_2,PEM,X509,X509V3,"+ -
|
"EVP,EVP_2,ASN1,ASN1_2,PEM,X509,X509V3,"+ -
|
||||||
"CONF,TXT_DB,PKCS7,PKCS12,COMP"
|
"CONF,TXT_DB,PKCS7,PKCS12,COMP"
|
||||||
@@ -206,6 +206,9 @@ $ LIB_DSA = "dsa_gen,dsa_key,dsa_lib,dsa_asn1,dsa_vrf,dsa_sign,dsa_err,dsa_ossl"
|
|||||||
$ LIB_DH = "dh_gen,dh_key,dh_lib,dh_check,dh_err"
|
$ LIB_DH = "dh_gen,dh_key,dh_lib,dh_check,dh_err"
|
||||||
$ LIB_DSO = "dso_dl,dso_dlfcn,dso_err,dso_lib,dso_null,"+ -
|
$ LIB_DSO = "dso_dl,dso_dlfcn,dso_err,dso_lib,dso_null,"+ -
|
||||||
"dso_openssl,dso_win32,dso_vms"
|
"dso_openssl,dso_win32,dso_vms"
|
||||||
|
$ LIB_ENGINE = "engine_err,engine_lib,engine_list,engine_openssl,"+ -
|
||||||
|
"hw_atalla,hw_cswift,hw_ncipher,hw_aep,hw_sureware,"+ -
|
||||||
|
"hw_ubsec"
|
||||||
$ LIB_BUFFER = "buffer,buf_err"
|
$ LIB_BUFFER = "buffer,buf_err"
|
||||||
$ LIB_BIO = "bio_lib,bio_cb,bio_err,"+ -
|
$ LIB_BIO = "bio_lib,bio_cb,bio_err,"+ -
|
||||||
"bss_mem,bss_null,bss_fd,"+ -
|
"bss_mem,bss_null,bss_fd,"+ -
|
||||||
@@ -1194,7 +1197,9 @@ $ CC = "CC"
|
|||||||
$ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" -
|
$ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" -
|
||||||
THEN CC = "CC/DECC"
|
THEN CC = "CC/DECC"
|
||||||
$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + -
|
$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + -
|
||||||
"/NOLIST/PREFIX=ALL/INCLUDE=SYS$DISK:[]" + CCEXTRAFLAGS
|
"/NOLIST/PREFIX=ALL" + -
|
||||||
|
"/INCLUDE=(SYS$DISK:[],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + -
|
||||||
|
CCEXTRAFLAGS
|
||||||
$!
|
$!
|
||||||
$! Define The Linker Options File Name.
|
$! Define The Linker Options File Name.
|
||||||
$!
|
$!
|
||||||
@@ -1226,7 +1231,8 @@ $ WRITE SYS$OUTPUT "There is no VAX C on Alpha!"
|
|||||||
$ EXIT
|
$ EXIT
|
||||||
$ ENDIF
|
$ ENDIF
|
||||||
$ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC"
|
$ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC"
|
||||||
$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST/INCLUDE=SYS$DISK:[]" + -
|
$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
|
||||||
|
"/INCLUDE=(SYS$DISK:[],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + -
|
||||||
CCEXTRAFLAGS
|
CCEXTRAFLAGS
|
||||||
$ CCDEFS = """VAXC""," + CCDEFS
|
$ CCDEFS = """VAXC""," + CCDEFS
|
||||||
$!
|
$!
|
||||||
@@ -1258,7 +1264,8 @@ $!
|
|||||||
$! Use GNU C...
|
$! Use GNU C...
|
||||||
$!
|
$!
|
||||||
$ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
|
$ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
|
||||||
"/INCLUDE=SYS$DISK:[]" + CCEXTRAFLAGS
|
"/INCLUDE=(SYS$DISK:[],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + -
|
||||||
|
CCEXTRAFLAGS
|
||||||
$!
|
$!
|
||||||
$! Define The Linker Options File Name.
|
$! Define The Linker Options File Name.
|
||||||
$!
|
$!
|
||||||
@@ -1456,6 +1463,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 - "CRYPTO]"
|
$ __TOP = __HERE - "CRYPTO]"
|
||||||
$ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
|
$ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
|
||||||
$!
|
$!
|
||||||
|
|||||||
@@ -112,17 +112,19 @@ extern "C" {
|
|||||||
#define CRYPTO_LOCK_SSL_SESS_CERT 15
|
#define CRYPTO_LOCK_SSL_SESS_CERT 15
|
||||||
#define CRYPTO_LOCK_SSL 16
|
#define CRYPTO_LOCK_SSL 16
|
||||||
#define CRYPTO_LOCK_RAND 17
|
#define CRYPTO_LOCK_RAND 17
|
||||||
#define CRYPTO_LOCK_MALLOC 18
|
#define CRYPTO_LOCK_RAND2 18
|
||||||
#define CRYPTO_LOCK_BIO 19
|
#define CRYPTO_LOCK_MALLOC 19
|
||||||
#define CRYPTO_LOCK_GETHOSTBYNAME 20
|
#define CRYPTO_LOCK_BIO 20
|
||||||
#define CRYPTO_LOCK_GETSERVBYNAME 21
|
#define CRYPTO_LOCK_GETHOSTBYNAME 21
|
||||||
#define CRYPTO_LOCK_READDIR 22
|
#define CRYPTO_LOCK_GETSERVBYNAME 22
|
||||||
#define CRYPTO_LOCK_RSA_BLINDING 23
|
#define CRYPTO_LOCK_READDIR 23
|
||||||
#define CRYPTO_LOCK_DH 24
|
#define CRYPTO_LOCK_RSA_BLINDING 24
|
||||||
#define CRYPTO_LOCK_MALLOC2 25
|
#define CRYPTO_LOCK_DH 25
|
||||||
#define CRYPTO_LOCK_DSO 26
|
#define CRYPTO_LOCK_MALLOC2 26
|
||||||
#define CRYPTO_LOCK_DYNLOCK 27
|
#define CRYPTO_LOCK_DSO 27
|
||||||
#define CRYPTO_NUM_LOCKS 28
|
#define CRYPTO_LOCK_DYNLOCK 28
|
||||||
|
#define CRYPTO_LOCK_ENGINE 29
|
||||||
|
#define CRYPTO_NUM_LOCKS 30
|
||||||
|
|
||||||
#define CRYPTO_LOCK 1
|
#define CRYPTO_LOCK 1
|
||||||
#define CRYPTO_UNLOCK 2
|
#define CRYPTO_UNLOCK 2
|
||||||
@@ -350,6 +352,9 @@ int CRYPTO_push_info_(const char *info, const char *file, int line);
|
|||||||
int CRYPTO_pop_info(void);
|
int CRYPTO_pop_info(void);
|
||||||
int CRYPTO_remove_all_info(void);
|
int CRYPTO_remove_all_info(void);
|
||||||
|
|
||||||
|
|
||||||
|
/* Default debugging functions (enabled by CRYPTO_malloc_debug_init() macro;
|
||||||
|
* used as default in CRYPTO_MDEBUG compilations): */
|
||||||
/* The last argument has the following significance:
|
/* The last argument has the following significance:
|
||||||
*
|
*
|
||||||
* 0: called before the actual memory allocation has taken place
|
* 0: called before the actual memory allocation has taken place
|
||||||
@@ -358,18 +363,18 @@ int CRYPTO_remove_all_info(void);
|
|||||||
void CRYPTO_dbg_malloc(void *addr,int num,const char *file,int line,int before_p);
|
void CRYPTO_dbg_malloc(void *addr,int num,const char *file,int line,int before_p);
|
||||||
void CRYPTO_dbg_realloc(void *addr1,void *addr2,int num,const char *file,int line,int before_p);
|
void CRYPTO_dbg_realloc(void *addr1,void *addr2,int num,const char *file,int line,int before_p);
|
||||||
void CRYPTO_dbg_free(void *addr,int before_p);
|
void CRYPTO_dbg_free(void *addr,int before_p);
|
||||||
|
|
||||||
/* Tell the debugging code about options. By default, the following values
|
/* Tell the debugging code about options. By default, the following values
|
||||||
* apply:
|
* apply:
|
||||||
*
|
*
|
||||||
* 0: Clear all options.
|
* 0: Clear all options.
|
||||||
* 1: Set the "Show Time" option.
|
* V_CRYPTO_MDEBUG_TIME (1): Set the "Show Time" option.
|
||||||
* 2: Set the "Show Thread Number" option.
|
* V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option.
|
||||||
* 3: 1 + 2
|
* V_CRYPTO_MDEBUG_ALL (3): 1 + 2
|
||||||
*/
|
*/
|
||||||
void CRYPTO_dbg_set_options(long bits);
|
void CRYPTO_dbg_set_options(long bits);
|
||||||
long CRYPTO_dbg_get_options(void);
|
long CRYPTO_dbg_get_options(void);
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_FP_API
|
#ifndef NO_FP_API
|
||||||
void CRYPTO_mem_leaks_fp(FILE *);
|
void CRYPTO_mem_leaks_fp(FILE *);
|
||||||
#endif
|
#endif
|
||||||
@@ -377,12 +382,11 @@ void CRYPTO_mem_leaks(struct bio_st *bio);
|
|||||||
/* unsigned long order, char *file, int line, int num_bytes, char *addr */
|
/* unsigned long order, char *file, int line, int num_bytes, char *addr */
|
||||||
void CRYPTO_mem_leaks_cb(void (*cb)(unsigned long, const char *, int, int, void *));
|
void CRYPTO_mem_leaks_cb(void (*cb)(unsigned long, const char *, int, int, void *));
|
||||||
|
|
||||||
void ERR_load_CRYPTO_strings(void);
|
|
||||||
|
|
||||||
/* 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_CRYPTO_strings(void);
|
||||||
|
|
||||||
/* Error codes for the CRYPTO functions. */
|
/* Error codes for the CRYPTO functions. */
|
||||||
|
|
||||||
@@ -399,4 +403,3 @@ void ERR_load_CRYPTO_strings(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ $L="edi";
|
|||||||
$R="esi";
|
$R="esi";
|
||||||
|
|
||||||
&external_label("des_SPtrans");
|
&external_label("des_SPtrans");
|
||||||
&des_encrypt("des_encrypt",1);
|
&des_encrypt("des_encrypt1",1);
|
||||||
&des_encrypt("des_encrypt2",0);
|
&des_encrypt("des_encrypt2",0);
|
||||||
&des_encrypt3("des_encrypt3",1);
|
&des_encrypt3("des_encrypt3",1);
|
||||||
&des_encrypt3("des_decrypt3",0);
|
&des_encrypt3("des_decrypt3",0);
|
||||||
&cbc("des_ncbc_encrypt","des_encrypt","des_encrypt",0,4,5,3,5,-1);
|
&cbc("des_ncbc_encrypt","des_encrypt1","des_encrypt1",0,4,5,3,5,-1);
|
||||||
&cbc("des_ede3_cbc_encrypt","des_encrypt3","des_decrypt3",0,6,7,3,4,5);
|
&cbc("des_ede3_cbc_encrypt","des_encrypt3","des_decrypt3",0,6,7,3,4,5);
|
||||||
|
|
||||||
&asm_finish();
|
&asm_finish();
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ EOF
|
|||||||
$L="edi";
|
$L="edi";
|
||||||
$R="esi";
|
$R="esi";
|
||||||
|
|
||||||
&des_encrypt("des_encrypt",1);
|
&des_encrypt("des_encrypt1",1);
|
||||||
&des_encrypt("des_encrypt2",0);
|
&des_encrypt("des_encrypt2",0);
|
||||||
|
|
||||||
&des_encrypt3("des_encrypt3",1);
|
&des_encrypt3("des_encrypt3",1);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ assembler for the inner DES routines in libdes :-).
|
|||||||
|
|
||||||
The file to implement in assembler is des_enc.c. Replace the following
|
The file to implement in assembler is des_enc.c. Replace the following
|
||||||
4 functions
|
4 functions
|
||||||
des_encrypt(DES_LONG data[2],des_key_schedule ks, int encrypt);
|
des_encrypt1(DES_LONG data[2],des_key_schedule ks, int encrypt);
|
||||||
des_encrypt2(DES_LONG data[2],des_key_schedule ks, int encrypt);
|
des_encrypt2(DES_LONG data[2],des_key_schedule ks, int encrypt);
|
||||||
des_encrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3);
|
des_encrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3);
|
||||||
des_decrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3);
|
des_decrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3);
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ DES_LONG des_cbc_cksum(const unsigned char *in, des_cblock *output,
|
|||||||
|
|
||||||
tin0^=tout0; tin[0]=tin0;
|
tin0^=tout0; tin[0]=tin0;
|
||||||
tin1^=tout1; tin[1]=tin1;
|
tin1^=tout1; tin[1]=tin1;
|
||||||
des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
||||||
/* fix 15/10/91 eay - thanks to keithr@sco.COM */
|
/* fix 15/10/91 eay - thanks to keithr@sco.COM */
|
||||||
tout0=tin[0];
|
tout0=tin[0];
|
||||||
tout1=tin[1];
|
tout1=tin[1];
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ void des_cfb64_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
{
|
{
|
||||||
c2l(iv,v0); ti[0]=v0;
|
c2l(iv,v0); ti[0]=v0;
|
||||||
c2l(iv,v1); ti[1]=v1;
|
c2l(iv,v1); ti[1]=v1;
|
||||||
des_encrypt(ti,schedule,DES_ENCRYPT);
|
des_encrypt1(ti,schedule,DES_ENCRYPT);
|
||||||
iv = &(*ivec)[0];
|
iv = &(*ivec)[0];
|
||||||
v0=ti[0]; l2c(v0,iv);
|
v0=ti[0]; l2c(v0,iv);
|
||||||
v0=ti[1]; l2c(v0,iv);
|
v0=ti[1]; l2c(v0,iv);
|
||||||
@@ -102,7 +102,7 @@ void des_cfb64_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
{
|
{
|
||||||
c2l(iv,v0); ti[0]=v0;
|
c2l(iv,v0); ti[0]=v0;
|
||||||
c2l(iv,v1); ti[1]=v1;
|
c2l(iv,v1); ti[1]=v1;
|
||||||
des_encrypt(ti,schedule,DES_ENCRYPT);
|
des_encrypt1(ti,schedule,DES_ENCRYPT);
|
||||||
iv = &(*ivec)[0];
|
iv = &(*ivec)[0];
|
||||||
v0=ti[0]; l2c(v0,iv);
|
v0=ti[0]; l2c(v0,iv);
|
||||||
v0=ti[1]; l2c(v0,iv);
|
v0=ti[1]; l2c(v0,iv);
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ void des_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
|
|||||||
l-=n;
|
l-=n;
|
||||||
ti[0]=v0;
|
ti[0]=v0;
|
||||||
ti[1]=v1;
|
ti[1]=v1;
|
||||||
des_encrypt((DES_LONG *)ti,schedule,DES_ENCRYPT);
|
des_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT);
|
||||||
c2ln(in,d0,d1,n);
|
c2ln(in,d0,d1,n);
|
||||||
in+=n;
|
in+=n;
|
||||||
d0=(d0^ti[0])&mask0;
|
d0=(d0^ti[0])&mask0;
|
||||||
@@ -132,7 +132,7 @@ void des_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
|
|||||||
l-=n;
|
l-=n;
|
||||||
ti[0]=v0;
|
ti[0]=v0;
|
||||||
ti[1]=v1;
|
ti[1]=v1;
|
||||||
des_encrypt((DES_LONG *)ti,schedule,DES_ENCRYPT);
|
des_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT);
|
||||||
c2ln(in,d0,d1,n);
|
c2ln(in,d0,d1,n);
|
||||||
in+=n;
|
in+=n;
|
||||||
/* 30-08-94 - eay - changed because l>>32 and
|
/* 30-08-94 - eay - changed because l>>32 and
|
||||||
|
|||||||
@@ -147,14 +147,14 @@ void des_ecb_encrypt(const_des_cblock *input,des_cblock *output,
|
|||||||
Data is a pointer to 2 unsigned long's and ks is the
|
Data is a pointer to 2 unsigned long's and ks is the
|
||||||
des_key_schedule to use. enc, is non zero specifies encryption,
|
des_key_schedule to use. enc, is non zero specifies encryption,
|
||||||
zero if decryption. */
|
zero if decryption. */
|
||||||
void des_encrypt(DES_LONG *data,des_key_schedule ks, int enc);
|
void des_encrypt1(DES_LONG *data,des_key_schedule ks, int enc);
|
||||||
|
|
||||||
/* This functions is the same as des_encrypt() except that the DES
|
/* This functions is the same as des_encrypt1() except that the DES
|
||||||
initial permutation (IP) and final permutation (FP) have been left
|
initial permutation (IP) and final permutation (FP) have been left
|
||||||
out. As for des_encrypt(), you should not use this function.
|
out. As for des_encrypt1(), you should not use this function.
|
||||||
It is used by the routines in the library that implement triple DES.
|
It is used by the routines in the library that implement triple DES.
|
||||||
IP() des_encrypt2() des_encrypt2() des_encrypt2() FP() is the same
|
IP() des_encrypt2() des_encrypt2() des_encrypt2() FP() is the same
|
||||||
as des_encrypt() des_encrypt() des_encrypt() except faster :-). */
|
as des_encrypt1() des_encrypt1() des_encrypt1() except faster :-). */
|
||||||
void des_encrypt2(DES_LONG *data,des_key_schedule ks, int enc);
|
void des_encrypt2(DES_LONG *data,des_key_schedule ks, int enc);
|
||||||
|
|
||||||
void des_encrypt3(DES_LONG *data, des_key_schedule ks1,
|
void des_encrypt3(DES_LONG *data, des_key_schedule ks1,
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
#include "des_locl.h"
|
#include "des_locl.h"
|
||||||
|
|
||||||
void des_encrypt(DES_LONG *data, des_key_schedule ks, int enc)
|
void des_encrypt1(DES_LONG *data, des_key_schedule ks, int enc)
|
||||||
{
|
{
|
||||||
register DES_LONG l,r,t,u;
|
register DES_LONG l,r,t,u;
|
||||||
#ifdef DES_PTR
|
#ifdef DES_PTR
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#undef DES_PTR
|
#undef DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#define des_encrypt des_encrypt_u4_cisc_idx
|
#define des_encrypt1 des_encrypt_u4_cisc_idx
|
||||||
#define des_encrypt2 des_encrypt2_u4_cisc_idx
|
#define des_encrypt2 des_encrypt2_u4_cisc_idx
|
||||||
#define des_encrypt3 des_encrypt3_u4_cisc_idx
|
#define des_encrypt3 des_encrypt3_u4_cisc_idx
|
||||||
#define des_decrypt3 des_decrypt3_u4_cisc_idx
|
#define des_decrypt3 des_decrypt3_u4_cisc_idx
|
||||||
@@ -130,11 +130,11 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#undef DES_PTR
|
#undef DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u16_cisc_idx
|
#define des_encrypt1 des_encrypt_u16_cisc_idx
|
||||||
#define des_encrypt2 des_encrypt2_u16_cisc_idx
|
#define des_encrypt2 des_encrypt2_u16_cisc_idx
|
||||||
#define des_encrypt3 des_encrypt3_u16_cisc_idx
|
#define des_encrypt3 des_encrypt3_u16_cisc_idx
|
||||||
#define des_decrypt3 des_decrypt3_u16_cisc_idx
|
#define des_decrypt3 des_decrypt3_u16_cisc_idx
|
||||||
@@ -146,11 +146,11 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#undef DES_PTR
|
#undef DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u4_risc1_idx
|
#define des_encrypt1 des_encrypt_u4_risc1_idx
|
||||||
#define des_encrypt2 des_encrypt2_u4_risc1_idx
|
#define des_encrypt2 des_encrypt2_u4_risc1_idx
|
||||||
#define des_encrypt3 des_encrypt3_u4_risc1_idx
|
#define des_encrypt3 des_encrypt3_u4_risc1_idx
|
||||||
#define des_decrypt3 des_decrypt3_u4_risc1_idx
|
#define des_decrypt3 des_decrypt3_u4_risc1_idx
|
||||||
@@ -166,11 +166,11 @@ extern void exit();
|
|||||||
#define DES_RISC2
|
#define DES_RISC2
|
||||||
#undef DES_PTR
|
#undef DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u4_risc2_idx
|
#define des_encrypt1 des_encrypt_u4_risc2_idx
|
||||||
#define des_encrypt2 des_encrypt2_u4_risc2_idx
|
#define des_encrypt2 des_encrypt2_u4_risc2_idx
|
||||||
#define des_encrypt3 des_encrypt3_u4_risc2_idx
|
#define des_encrypt3 des_encrypt3_u4_risc2_idx
|
||||||
#define des_decrypt3 des_decrypt3_u4_risc2_idx
|
#define des_decrypt3 des_decrypt3_u4_risc2_idx
|
||||||
@@ -182,11 +182,11 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#undef DES_PTR
|
#undef DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u16_risc1_idx
|
#define des_encrypt1 des_encrypt_u16_risc1_idx
|
||||||
#define des_encrypt2 des_encrypt2_u16_risc1_idx
|
#define des_encrypt2 des_encrypt2_u16_risc1_idx
|
||||||
#define des_encrypt3 des_encrypt3_u16_risc1_idx
|
#define des_encrypt3 des_encrypt3_u16_risc1_idx
|
||||||
#define des_decrypt3 des_decrypt3_u16_risc1_idx
|
#define des_decrypt3 des_decrypt3_u16_risc1_idx
|
||||||
@@ -198,11 +198,11 @@ extern void exit();
|
|||||||
#define DES_RISC2
|
#define DES_RISC2
|
||||||
#undef DES_PTR
|
#undef DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u16_risc2_idx
|
#define des_encrypt1 des_encrypt_u16_risc2_idx
|
||||||
#define des_encrypt2 des_encrypt2_u16_risc2_idx
|
#define des_encrypt2 des_encrypt2_u16_risc2_idx
|
||||||
#define des_encrypt3 des_encrypt3_u16_risc2_idx
|
#define des_encrypt3 des_encrypt3_u16_risc2_idx
|
||||||
#define des_decrypt3 des_decrypt3_u16_risc2_idx
|
#define des_decrypt3 des_decrypt3_u16_risc2_idx
|
||||||
@@ -218,11 +218,11 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#define DES_PTR
|
#define DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u4_cisc_ptr
|
#define des_encrypt1 des_encrypt_u4_cisc_ptr
|
||||||
#define des_encrypt2 des_encrypt2_u4_cisc_ptr
|
#define des_encrypt2 des_encrypt2_u4_cisc_ptr
|
||||||
#define des_encrypt3 des_encrypt3_u4_cisc_ptr
|
#define des_encrypt3 des_encrypt3_u4_cisc_ptr
|
||||||
#define des_decrypt3 des_decrypt3_u4_cisc_ptr
|
#define des_decrypt3 des_decrypt3_u4_cisc_ptr
|
||||||
@@ -234,11 +234,11 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#define DES_PTR
|
#define DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u16_cisc_ptr
|
#define des_encrypt1 des_encrypt_u16_cisc_ptr
|
||||||
#define des_encrypt2 des_encrypt2_u16_cisc_ptr
|
#define des_encrypt2 des_encrypt2_u16_cisc_ptr
|
||||||
#define des_encrypt3 des_encrypt3_u16_cisc_ptr
|
#define des_encrypt3 des_encrypt3_u16_cisc_ptr
|
||||||
#define des_decrypt3 des_decrypt3_u16_cisc_ptr
|
#define des_decrypt3 des_decrypt3_u16_cisc_ptr
|
||||||
@@ -250,11 +250,11 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#define DES_PTR
|
#define DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u4_risc1_ptr
|
#define des_encrypt1 des_encrypt_u4_risc1_ptr
|
||||||
#define des_encrypt2 des_encrypt2_u4_risc1_ptr
|
#define des_encrypt2 des_encrypt2_u4_risc1_ptr
|
||||||
#define des_encrypt3 des_encrypt3_u4_risc1_ptr
|
#define des_encrypt3 des_encrypt3_u4_risc1_ptr
|
||||||
#define des_decrypt3 des_decrypt3_u4_risc1_ptr
|
#define des_decrypt3 des_decrypt3_u4_risc1_ptr
|
||||||
@@ -270,11 +270,11 @@ extern void exit();
|
|||||||
#define DES_RISC2
|
#define DES_RISC2
|
||||||
#define DES_PTR
|
#define DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u4_risc2_ptr
|
#define des_encrypt1 des_encrypt_u4_risc2_ptr
|
||||||
#define des_encrypt2 des_encrypt2_u4_risc2_ptr
|
#define des_encrypt2 des_encrypt2_u4_risc2_ptr
|
||||||
#define des_encrypt3 des_encrypt3_u4_risc2_ptr
|
#define des_encrypt3 des_encrypt3_u4_risc2_ptr
|
||||||
#define des_decrypt3 des_decrypt3_u4_risc2_ptr
|
#define des_decrypt3 des_decrypt3_u4_risc2_ptr
|
||||||
@@ -286,11 +286,11 @@ extern void exit();
|
|||||||
#undef DES_RISC2
|
#undef DES_RISC2
|
||||||
#define DES_PTR
|
#define DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u16_risc1_ptr
|
#define des_encrypt1 des_encrypt_u16_risc1_ptr
|
||||||
#define des_encrypt2 des_encrypt2_u16_risc1_ptr
|
#define des_encrypt2 des_encrypt2_u16_risc1_ptr
|
||||||
#define des_encrypt3 des_encrypt3_u16_risc1_ptr
|
#define des_encrypt3 des_encrypt3_u16_risc1_ptr
|
||||||
#define des_decrypt3 des_decrypt3_u16_risc1_ptr
|
#define des_decrypt3 des_decrypt3_u16_risc1_ptr
|
||||||
@@ -302,11 +302,11 @@ extern void exit();
|
|||||||
#define DES_RISC2
|
#define DES_RISC2
|
||||||
#define DES_PTR
|
#define DES_PTR
|
||||||
#undef D_ENCRYPT
|
#undef D_ENCRYPT
|
||||||
#undef des_encrypt
|
#undef des_encrypt1
|
||||||
#undef des_encrypt2
|
#undef des_encrypt2
|
||||||
#undef des_encrypt3
|
#undef des_encrypt3
|
||||||
#undef des_decrypt3
|
#undef des_decrypt3
|
||||||
#define des_encrypt des_encrypt_u16_risc2_ptr
|
#define des_encrypt1 des_encrypt_u16_risc2_ptr
|
||||||
#define des_encrypt2 des_encrypt2_u16_risc2_ptr
|
#define des_encrypt2 des_encrypt2_u16_risc2_ptr
|
||||||
#define des_encrypt3 des_encrypt3_u16_risc2_ptr
|
#define des_encrypt3 des_encrypt3_u16_risc2_ptr
|
||||||
#define des_decrypt3 des_decrypt3_u16_risc2_ptr
|
#define des_decrypt3 des_decrypt3_u16_risc2_ptr
|
||||||
@@ -453,7 +453,7 @@ int main(int argc, char **argv)
|
|||||||
count*=2;
|
count*=2;
|
||||||
Time_F(START);
|
Time_F(START);
|
||||||
for (i=count; i; i--)
|
for (i=count; i; i--)
|
||||||
des_encrypt(data,&(sch[0]),DES_ENCRYPT);
|
des_encrypt1(data,&(sch[0]),DES_ENCRYPT);
|
||||||
d=Time_F(STOP);
|
d=Time_F(STOP);
|
||||||
} while (d < 3.0);
|
} while (d < 3.0);
|
||||||
ca=count;
|
ca=count;
|
||||||
|
|||||||
@@ -45,19 +45,19 @@ void main(int argc,char *argv[])
|
|||||||
{
|
{
|
||||||
for (i=0; i<1000; i++) /**/
|
for (i=0; i<1000; i++) /**/
|
||||||
{
|
{
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
GetTSC(s1);
|
GetTSC(s1);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
GetTSC(e1);
|
GetTSC(e1);
|
||||||
GetTSC(s2);
|
GetTSC(s2);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
GetTSC(e2);
|
GetTSC(e2);
|
||||||
des_encrypt(&data[0],key,1);
|
des_encrypt1(&data[0],key,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("des %d %d (%d)\n",
|
printf("des %d %d (%d)\n",
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ void des_ecb_encrypt(const_des_cblock *input, des_cblock *output,
|
|||||||
|
|
||||||
c2l(in,l); ll[0]=l;
|
c2l(in,l); ll[0]=l;
|
||||||
c2l(in,l); ll[1]=l;
|
c2l(in,l); ll[1]=l;
|
||||||
des_encrypt(ll,ks,enc);
|
des_encrypt1(ll,ks,enc);
|
||||||
l=ll[0]; l2c(l,out);
|
l=ll[0]; l2c(l,out);
|
||||||
l=ll[1]; l2c(l,out);
|
l=ll[1]; l2c(l,out);
|
||||||
l=ll[0]=ll[1]=0;
|
l=ll[0]=ll[1]=0;
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
{
|
{
|
||||||
tin[0]=m0;
|
tin[0]=m0;
|
||||||
tin[1]=m1;
|
tin[1]=m1;
|
||||||
des_encrypt(tin,ks3,1);
|
des_encrypt1(tin,ks3,1);
|
||||||
m0=tin[0];
|
m0=tin[0];
|
||||||
m1=tin[1];
|
m1=tin[1];
|
||||||
|
|
||||||
@@ -113,13 +113,13 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
|
|
||||||
tin[0]=tin0;
|
tin[0]=tin0;
|
||||||
tin[1]=tin1;
|
tin[1]=tin1;
|
||||||
des_encrypt(tin,ks1,1);
|
des_encrypt1(tin,ks1,1);
|
||||||
tin[0]^=m0;
|
tin[0]^=m0;
|
||||||
tin[1]^=m1;
|
tin[1]^=m1;
|
||||||
des_encrypt(tin,ks2,0);
|
des_encrypt1(tin,ks2,0);
|
||||||
tin[0]^=m0;
|
tin[0]^=m0;
|
||||||
tin[1]^=m1;
|
tin[1]^=m1;
|
||||||
des_encrypt(tin,ks1,1);
|
des_encrypt1(tin,ks1,1);
|
||||||
tout0=tin[0];
|
tout0=tin[0];
|
||||||
tout1=tin[1];
|
tout1=tin[1];
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
{
|
{
|
||||||
tin[0]=m0;
|
tin[0]=m0;
|
||||||
tin[1]=m1;
|
tin[1]=m1;
|
||||||
des_encrypt(tin,ks3,1);
|
des_encrypt1(tin,ks3,1);
|
||||||
m0=tin[0];
|
m0=tin[0];
|
||||||
m1=tin[1];
|
m1=tin[1];
|
||||||
|
|
||||||
@@ -158,13 +158,13 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
|
|
||||||
tin[0]=tin0;
|
tin[0]=tin0;
|
||||||
tin[1]=tin1;
|
tin[1]=tin1;
|
||||||
des_encrypt(tin,ks1,0);
|
des_encrypt1(tin,ks1,0);
|
||||||
tin[0]^=m0;
|
tin[0]^=m0;
|
||||||
tin[1]^=m1;
|
tin[1]^=m1;
|
||||||
des_encrypt(tin,ks2,1);
|
des_encrypt1(tin,ks2,1);
|
||||||
tin[0]^=m0;
|
tin[0]^=m0;
|
||||||
tin[1]^=m1;
|
tin[1]^=m1;
|
||||||
des_encrypt(tin,ks1,0);
|
des_encrypt1(tin,ks1,0);
|
||||||
tout0=tin[0];
|
tout0=tin[0];
|
||||||
tout1=tin[1];
|
tout1=tin[1];
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length,
|
|||||||
c2l(in,tin1);
|
c2l(in,tin1);
|
||||||
tin0^=tout0; tin[0]=tin0;
|
tin0^=tout0; tin[0]=tin0;
|
||||||
tin1^=tout1; tin[1]=tin1;
|
tin1^=tout1; tin[1]=tin1;
|
||||||
des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
||||||
tout0=tin[0]; l2c(tout0,out);
|
tout0=tin[0]; l2c(tout0,out);
|
||||||
tout1=tin[1]; l2c(tout1,out);
|
tout1=tin[1]; l2c(tout1,out);
|
||||||
}
|
}
|
||||||
@@ -98,7 +98,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length,
|
|||||||
c2ln(in,tin0,tin1,l+8);
|
c2ln(in,tin0,tin1,l+8);
|
||||||
tin0^=tout0; tin[0]=tin0;
|
tin0^=tout0; tin[0]=tin0;
|
||||||
tin1^=tout1; tin[1]=tin1;
|
tin1^=tout1; tin[1]=tin1;
|
||||||
des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
||||||
tout0=tin[0]; l2c(tout0,out);
|
tout0=tin[0]; l2c(tout0,out);
|
||||||
tout1=tin[1]; l2c(tout1,out);
|
tout1=tin[1]; l2c(tout1,out);
|
||||||
}
|
}
|
||||||
@@ -116,7 +116,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length,
|
|||||||
{
|
{
|
||||||
c2l(in,tin0); tin[0]=tin0;
|
c2l(in,tin0); tin[0]=tin0;
|
||||||
c2l(in,tin1); tin[1]=tin1;
|
c2l(in,tin1); tin[1]=tin1;
|
||||||
des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT);
|
des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT);
|
||||||
tout0=tin[0]^xor0;
|
tout0=tin[0]^xor0;
|
||||||
tout1=tin[1]^xor1;
|
tout1=tin[1]^xor1;
|
||||||
l2c(tout0,out);
|
l2c(tout0,out);
|
||||||
@@ -128,7 +128,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length,
|
|||||||
{
|
{
|
||||||
c2l(in,tin0); tin[0]=tin0;
|
c2l(in,tin0); tin[0]=tin0;
|
||||||
c2l(in,tin1); tin[1]=tin1;
|
c2l(in,tin1); tin[1]=tin1;
|
||||||
des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT);
|
des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT);
|
||||||
tout0=tin[0]^xor0;
|
tout0=tin[0]^xor0;
|
||||||
tout1=tin[1]^xor1;
|
tout1=tin[1]^xor1;
|
||||||
l2cn(tout0,tout1,out,l+8);
|
l2cn(tout0,tout1,out,l+8);
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ void des_ofb64_encrypt(register const unsigned char *in,
|
|||||||
{
|
{
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
{
|
{
|
||||||
des_encrypt(ti,schedule,DES_ENCRYPT);
|
des_encrypt1(ti,schedule,DES_ENCRYPT);
|
||||||
dp=d;
|
dp=d;
|
||||||
t=ti[0]; l2c(t,dp);
|
t=ti[0]; l2c(t,dp);
|
||||||
t=ti[1]; l2c(t,dp);
|
t=ti[1]; l2c(t,dp);
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ void des_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
|
|||||||
{
|
{
|
||||||
ti[0]=v0;
|
ti[0]=v0;
|
||||||
ti[1]=v1;
|
ti[1]=v1;
|
||||||
des_encrypt((DES_LONG *)ti,schedule,DES_ENCRYPT);
|
des_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT);
|
||||||
vv0=ti[0];
|
vv0=ti[0];
|
||||||
vv1=ti[1];
|
vv1=ti[1];
|
||||||
c2ln(in,d0,d1,n);
|
c2ln(in,d0,d1,n);
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ void des_pcbc_encrypt(const unsigned char *input, unsigned char *output,
|
|||||||
c2ln(in,sin0,sin1,length);
|
c2ln(in,sin0,sin1,length);
|
||||||
tin[0]=sin0^xor0;
|
tin[0]=sin0^xor0;
|
||||||
tin[1]=sin1^xor1;
|
tin[1]=sin1^xor1;
|
||||||
des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT);
|
||||||
tout0=tin[0];
|
tout0=tin[0];
|
||||||
tout1=tin[1];
|
tout1=tin[1];
|
||||||
xor0=sin0^tout0;
|
xor0=sin0^tout0;
|
||||||
@@ -103,7 +103,7 @@ void des_pcbc_encrypt(const unsigned char *input, unsigned char *output,
|
|||||||
c2l(in,sin1);
|
c2l(in,sin1);
|
||||||
tin[0]=sin0;
|
tin[0]=sin0;
|
||||||
tin[1]=sin1;
|
tin[1]=sin1;
|
||||||
des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT);
|
des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT);
|
||||||
tout0=tin[0]^xor0;
|
tout0=tin[0]^xor0;
|
||||||
tout1=tin[1]^xor1;
|
tout1=tin[1]^xor1;
|
||||||
if (length >= 8)
|
if (length >= 8)
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ int main(int argc, char **argv)
|
|||||||
count*=2;
|
count*=2;
|
||||||
Time_F(START);
|
Time_F(START);
|
||||||
for (i=count; i; i--)
|
for (i=count; i; i--)
|
||||||
des_encrypt(data,&(sch[0]),DES_ENCRYPT);
|
des_encrypt1(data,&(sch[0]),DES_ENCRYPT);
|
||||||
d=Time_F(STOP);
|
d=Time_F(STOP);
|
||||||
} while (d < 3.0);
|
} while (d < 3.0);
|
||||||
ca=count;
|
ca=count;
|
||||||
@@ -241,7 +241,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
DES_LONG data[2];
|
DES_LONG data[2];
|
||||||
|
|
||||||
des_encrypt(data,&(sch[0]),DES_ENCRYPT);
|
des_encrypt1(data,&(sch[0]),DES_ENCRYPT);
|
||||||
}
|
}
|
||||||
d=Time_F(STOP);
|
d=Time_F(STOP);
|
||||||
printf("%ld des_encrypt's in %.2f second\n",count,d);
|
printf("%ld des_encrypt's in %.2f second\n",count,d);
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
c2l(in,tin1);
|
c2l(in,tin1);
|
||||||
tin0^=tout0^inW0; tin[0]=tin0;
|
tin0^=tout0^inW0; tin[0]=tin0;
|
||||||
tin1^=tout1^inW1; tin[1]=tin1;
|
tin1^=tout1^inW1; tin[1]=tin1;
|
||||||
des_encrypt(tin,schedule,DES_ENCRYPT);
|
des_encrypt1(tin,schedule,DES_ENCRYPT);
|
||||||
tout0=tin[0]^outW0; l2c(tout0,out);
|
tout0=tin[0]^outW0; l2c(tout0,out);
|
||||||
tout1=tin[1]^outW1; l2c(tout1,out);
|
tout1=tin[1]^outW1; l2c(tout1,out);
|
||||||
}
|
}
|
||||||
@@ -147,7 +147,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
c2ln(in,tin0,tin1,l+8);
|
c2ln(in,tin0,tin1,l+8);
|
||||||
tin0^=tout0^inW0; tin[0]=tin0;
|
tin0^=tout0^inW0; tin[0]=tin0;
|
||||||
tin1^=tout1^inW1; tin[1]=tin1;
|
tin1^=tout1^inW1; tin[1]=tin1;
|
||||||
des_encrypt(tin,schedule,DES_ENCRYPT);
|
des_encrypt1(tin,schedule,DES_ENCRYPT);
|
||||||
tout0=tin[0]^outW0; l2c(tout0,out);
|
tout0=tin[0]^outW0; l2c(tout0,out);
|
||||||
tout1=tin[1]^outW1; l2c(tout1,out);
|
tout1=tin[1]^outW1; l2c(tout1,out);
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
{
|
{
|
||||||
c2l(in,tin0); tin[0]=tin0^outW0;
|
c2l(in,tin0); tin[0]=tin0^outW0;
|
||||||
c2l(in,tin1); tin[1]=tin1^outW1;
|
c2l(in,tin1); tin[1]=tin1^outW1;
|
||||||
des_encrypt(tin,schedule,DES_DECRYPT);
|
des_encrypt1(tin,schedule,DES_DECRYPT);
|
||||||
tout0=tin[0]^xor0^inW0;
|
tout0=tin[0]^xor0^inW0;
|
||||||
tout1=tin[1]^xor1^inW1;
|
tout1=tin[1]^xor1^inW1;
|
||||||
l2c(tout0,out);
|
l2c(tout0,out);
|
||||||
@@ -175,7 +175,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
{
|
{
|
||||||
c2l(in,tin0); tin[0]=tin0^outW0;
|
c2l(in,tin0); tin[0]=tin0^outW0;
|
||||||
c2l(in,tin1); tin[1]=tin1^outW1;
|
c2l(in,tin1); tin[1]=tin1^outW1;
|
||||||
des_encrypt(tin,schedule,DES_DECRYPT);
|
des_encrypt1(tin,schedule,DES_DECRYPT);
|
||||||
tout0=tin[0]^xor0^inW0;
|
tout0=tin[0]^xor0^inW0;
|
||||||
tout1=tin[1]^xor1^inW1;
|
tout1=tin[1]^xor1^inW1;
|
||||||
l2cn(tout0,tout1,out,l+8);
|
l2cn(tout0,tout1,out,l+8);
|
||||||
|
|||||||
@@ -101,19 +101,39 @@ dh_gen.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
|||||||
dh_gen.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
dh_gen.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||||
dh_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
dh_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
dh_gen.o: ../cryptlib.h
|
dh_gen.o: ../cryptlib.h
|
||||||
dh_key.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
dh_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
dh_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
dh_key.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||||
dh_key.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
|
dh_key.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||||
dh_key.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
dh_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
dh_key.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
dh_key.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||||
|
dh_key.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
|
dh_key.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||||
|
dh_key.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
|
dh_key.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
|
dh_key.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
|
dh_key.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
|
dh_key.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
dh_key.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
dh_key.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||||
dh_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
dh_key.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
|
dh_key.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
|
dh_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
|
dh_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
dh_key.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
dh_key.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
dh_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
dh_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
dh_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
dh_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||||
dh_lib.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
|
dh_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||||
dh_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
dh_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
dh_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
dh_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||||
dh_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
dh_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
dh_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
dh_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||||
dh_lib.o: ../cryptlib.h
|
dh_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
|
dh_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
|
dh_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
|
dh_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
|
dh_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
|
dh_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||||
|
dh_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
|
dh_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
|
dh_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
|
dh_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
|
dh_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
|
|||||||
@@ -115,7 +115,11 @@ struct dh_st
|
|||||||
|
|
||||||
int references;
|
int references;
|
||||||
CRYPTO_EX_DATA ex_data;
|
CRYPTO_EX_DATA ex_data;
|
||||||
|
#if 0
|
||||||
DH_METHOD *meth;
|
DH_METHOD *meth;
|
||||||
|
#else
|
||||||
|
struct engine_st *engine;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#define DH_GENERATOR_2 2
|
#define DH_GENERATOR_2 2
|
||||||
@@ -150,10 +154,15 @@ struct dh_st
|
|||||||
|
|
||||||
DH_METHOD *DH_OpenSSL(void);
|
DH_METHOD *DH_OpenSSL(void);
|
||||||
|
|
||||||
void DH_set_default_method(DH_METHOD *meth);
|
void DH_set_default_openssl_method(DH_METHOD *meth);
|
||||||
DH_METHOD *DH_get_default_method(void);
|
DH_METHOD *DH_get_default_openssl_method(void);
|
||||||
|
#if 0
|
||||||
DH_METHOD *DH_set_method(DH *dh, DH_METHOD *meth);
|
DH_METHOD *DH_set_method(DH *dh, DH_METHOD *meth);
|
||||||
DH *DH_new_method(DH_METHOD *meth);
|
DH *DH_new_method(DH_METHOD *meth);
|
||||||
|
#else
|
||||||
|
int DH_set_method(DH *dh, struct engine_st *engine);
|
||||||
|
DH *DH_new_method(struct engine_st *engine);
|
||||||
|
#endif
|
||||||
|
|
||||||
DH * DH_new(void);
|
DH * DH_new(void);
|
||||||
void DH_free(DH *dh);
|
void DH_free(DH *dh);
|
||||||
@@ -177,12 +186,12 @@ int DHparams_print(BIO *bp, DH *x);
|
|||||||
#else
|
#else
|
||||||
int DHparams_print(char *bp, DH *x);
|
int DHparams_print(char *bp, DH *x);
|
||||||
#endif
|
#endif
|
||||||
void ERR_load_DH_strings(void );
|
|
||||||
|
|
||||||
/* 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_DH_strings(void);
|
||||||
|
|
||||||
/* Error codes for the DH functions. */
|
/* Error codes for the DH functions. */
|
||||||
|
|
||||||
@@ -201,4 +210,3 @@ void ERR_load_DH_strings(void );
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
|
|
||||||
static int generate_key(DH *dh);
|
static int generate_key(DH *dh);
|
||||||
static int compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh);
|
static int compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh);
|
||||||
@@ -72,12 +73,12 @@ static int dh_finish(DH *dh);
|
|||||||
|
|
||||||
int DH_generate_key(DH *dh)
|
int DH_generate_key(DH *dh)
|
||||||
{
|
{
|
||||||
return dh->meth->generate_key(dh);
|
return ENGINE_get_DH(dh->engine)->generate_key(dh);
|
||||||
}
|
}
|
||||||
|
|
||||||
int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh)
|
int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh)
|
||||||
{
|
{
|
||||||
return dh->meth->compute_key(key, pub_key, dh);
|
return ENGINE_get_DH(dh->engine)->compute_key(key, pub_key, dh);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DH_METHOD dh_ossl = {
|
static DH_METHOD dh_ossl = {
|
||||||
@@ -99,6 +100,8 @@ DH_METHOD *DH_OpenSSL(void)
|
|||||||
static int generate_key(DH *dh)
|
static int generate_key(DH *dh)
|
||||||
{
|
{
|
||||||
int ok=0;
|
int ok=0;
|
||||||
|
int generate_new_key=0;
|
||||||
|
unsigned l;
|
||||||
BN_CTX ctx;
|
BN_CTX ctx;
|
||||||
BN_MONT_CTX *mont;
|
BN_MONT_CTX *mont;
|
||||||
BIGNUM *pub_key=NULL,*priv_key=NULL;
|
BIGNUM *pub_key=NULL,*priv_key=NULL;
|
||||||
@@ -109,9 +112,7 @@ static int generate_key(DH *dh)
|
|||||||
{
|
{
|
||||||
priv_key=BN_new();
|
priv_key=BN_new();
|
||||||
if (priv_key == NULL) goto err;
|
if (priv_key == NULL) goto err;
|
||||||
do
|
generate_new_key=1;
|
||||||
if (!BN_rand_range(priv_key, dh->p)) goto err;
|
|
||||||
while (BN_is_zero(priv_key));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
priv_key=dh->priv_key;
|
priv_key=dh->priv_key;
|
||||||
@@ -132,8 +133,14 @@ static int generate_key(DH *dh)
|
|||||||
}
|
}
|
||||||
mont=(BN_MONT_CTX *)dh->method_mont_p;
|
mont=(BN_MONT_CTX *)dh->method_mont_p;
|
||||||
|
|
||||||
if (!dh->meth->bn_mod_exp(dh, pub_key,dh->g,priv_key,dh->p,&ctx,mont))
|
if (generate_new_key)
|
||||||
goto err;
|
{
|
||||||
|
l = dh->length ? dh->length : BN_num_bits(dh->p)-1; /* secret exponent length */
|
||||||
|
if (!BN_rand(priv_key, l, 0, 0)) goto err;
|
||||||
|
}
|
||||||
|
if (!ENGINE_get_DH(dh->engine)->bn_mod_exp(dh, pub_key, dh->g,
|
||||||
|
priv_key,dh->p,&ctx,mont))
|
||||||
|
goto err;
|
||||||
|
|
||||||
dh->pub_key=pub_key;
|
dh->pub_key=pub_key;
|
||||||
dh->priv_key=priv_key;
|
dh->priv_key=priv_key;
|
||||||
@@ -172,7 +179,8 @@ static int compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh)
|
|||||||
}
|
}
|
||||||
|
|
||||||
mont=(BN_MONT_CTX *)dh->method_mont_p;
|
mont=(BN_MONT_CTX *)dh->method_mont_p;
|
||||||
if (!dh->meth->bn_mod_exp(dh, tmp,pub_key,dh->priv_key,dh->p,&ctx,mont))
|
if (!ENGINE_get_DH(dh->engine)->bn_mod_exp(dh, tmp, pub_key,
|
||||||
|
dh->priv_key,dh->p,&ctx,mont))
|
||||||
{
|
{
|
||||||
DHerr(DH_F_DH_COMPUTE_KEY,ERR_R_BN_LIB);
|
DHerr(DH_F_DH_COMPUTE_KEY,ERR_R_BN_LIB);
|
||||||
goto err;
|
goto err;
|
||||||
|
|||||||
@@ -60,24 +60,40 @@
|
|||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
|
|
||||||
const char *DH_version="Diffie-Hellman" OPENSSL_VERSION_PTEXT;
|
const char *DH_version="Diffie-Hellman" OPENSSL_VERSION_PTEXT;
|
||||||
|
|
||||||
static DH_METHOD *default_DH_method;
|
static DH_METHOD *default_DH_method = NULL;
|
||||||
static int dh_meth_num = 0;
|
static int dh_meth_num = 0;
|
||||||
static STACK_OF(CRYPTO_EX_DATA_FUNCS) *dh_meth = NULL;
|
static STACK_OF(CRYPTO_EX_DATA_FUNCS) *dh_meth = NULL;
|
||||||
|
|
||||||
void DH_set_default_method(DH_METHOD *meth)
|
void DH_set_default_openssl_method(DH_METHOD *meth)
|
||||||
{
|
{
|
||||||
default_DH_method = meth;
|
ENGINE *e;
|
||||||
|
/* We'll need to notify the "openssl" ENGINE of this
|
||||||
|
* change too. We won't bother locking things down at
|
||||||
|
* our end as there was never any locking in these
|
||||||
|
* functions! */
|
||||||
|
if(default_DH_method != meth)
|
||||||
|
{
|
||||||
|
default_DH_method = meth;
|
||||||
|
e = ENGINE_by_id("openssl");
|
||||||
|
if(e)
|
||||||
|
{
|
||||||
|
ENGINE_set_DH(e, meth);
|
||||||
|
ENGINE_free(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DH_METHOD *DH_get_default_method(void)
|
DH_METHOD *DH_get_default_openssl_method(void)
|
||||||
{
|
{
|
||||||
if(!default_DH_method) default_DH_method = DH_OpenSSL();
|
if(!default_DH_method) default_DH_method = DH_OpenSSL();
|
||||||
return default_DH_method;
|
return default_DH_method;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
DH_METHOD *DH_set_method(DH *dh, DH_METHOD *meth)
|
DH_METHOD *DH_set_method(DH *dh, DH_METHOD *meth)
|
||||||
{
|
{
|
||||||
DH_METHOD *mtmp;
|
DH_METHOD *mtmp;
|
||||||
@@ -87,14 +103,37 @@ DH_METHOD *DH_set_method(DH *dh, DH_METHOD *meth)
|
|||||||
if (meth->init) meth->init(dh);
|
if (meth->init) meth->init(dh);
|
||||||
return mtmp;
|
return mtmp;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int DH_set_method(DH *dh, ENGINE *engine)
|
||||||
|
{
|
||||||
|
ENGINE *mtmp;
|
||||||
|
DH_METHOD *meth;
|
||||||
|
mtmp = dh->engine;
|
||||||
|
meth = ENGINE_get_DH(mtmp);
|
||||||
|
if (!ENGINE_init(engine))
|
||||||
|
return 0;
|
||||||
|
if (meth->finish) meth->finish(dh);
|
||||||
|
dh->engine= engine;
|
||||||
|
meth = ENGINE_get_DH(engine);
|
||||||
|
if (meth->init) meth->init(dh);
|
||||||
|
/* SHOULD ERROR CHECK THIS!!! */
|
||||||
|
ENGINE_finish(mtmp);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DH *DH_new(void)
|
DH *DH_new(void)
|
||||||
{
|
{
|
||||||
return DH_new_method(NULL);
|
return DH_new_method(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
DH *DH_new_method(DH_METHOD *meth)
|
DH *DH_new_method(DH_METHOD *meth)
|
||||||
|
#else
|
||||||
|
DH *DH_new_method(ENGINE *engine)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
|
DH_METHOD *meth;
|
||||||
DH *ret;
|
DH *ret;
|
||||||
ret=(DH *)OPENSSL_malloc(sizeof(DH));
|
ret=(DH *)OPENSSL_malloc(sizeof(DH));
|
||||||
|
|
||||||
@@ -103,8 +142,17 @@ DH *DH_new_method(DH_METHOD *meth)
|
|||||||
DHerr(DH_F_DH_NEW,ERR_R_MALLOC_FAILURE);
|
DHerr(DH_F_DH_NEW,ERR_R_MALLOC_FAILURE);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
if(meth) ret->meth = meth;
|
if(engine)
|
||||||
else ret->meth = DH_get_default_method();
|
ret->engine = engine;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if((ret->engine=ENGINE_get_default_DH()) == NULL)
|
||||||
|
{
|
||||||
|
OPENSSL_free(ret);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
meth = ENGINE_get_DH(ret->engine);
|
||||||
ret->pad=0;
|
ret->pad=0;
|
||||||
ret->version=0;
|
ret->version=0;
|
||||||
ret->p=NULL;
|
ret->p=NULL;
|
||||||
@@ -119,9 +167,9 @@ DH *DH_new_method(DH_METHOD *meth)
|
|||||||
ret->counter = NULL;
|
ret->counter = NULL;
|
||||||
ret->method_mont_p=NULL;
|
ret->method_mont_p=NULL;
|
||||||
ret->references = 1;
|
ret->references = 1;
|
||||||
ret->flags=ret->meth->flags;
|
ret->flags=meth->flags;
|
||||||
CRYPTO_new_ex_data(dh_meth,ret,&ret->ex_data);
|
CRYPTO_new_ex_data(dh_meth,ret,&ret->ex_data);
|
||||||
if ((ret->meth->init != NULL) && !ret->meth->init(ret))
|
if ((meth->init != NULL) && !meth->init(ret))
|
||||||
{
|
{
|
||||||
CRYPTO_free_ex_data(dh_meth,ret,&ret->ex_data);
|
CRYPTO_free_ex_data(dh_meth,ret,&ret->ex_data);
|
||||||
OPENSSL_free(ret);
|
OPENSSL_free(ret);
|
||||||
@@ -132,6 +180,7 @@ DH *DH_new_method(DH_METHOD *meth)
|
|||||||
|
|
||||||
void DH_free(DH *r)
|
void DH_free(DH *r)
|
||||||
{
|
{
|
||||||
|
DH_METHOD *meth;
|
||||||
int i;
|
int i;
|
||||||
if(r == NULL) return;
|
if(r == NULL) return;
|
||||||
i = CRYPTO_add(&r->references, -1, CRYPTO_LOCK_DH);
|
i = CRYPTO_add(&r->references, -1, CRYPTO_LOCK_DH);
|
||||||
@@ -147,7 +196,9 @@ void DH_free(DH *r)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(r->meth->finish) r->meth->finish(r);
|
meth = ENGINE_get_DH(r->engine);
|
||||||
|
if(meth->finish) meth->finish(r);
|
||||||
|
ENGINE_finish(r->engine);
|
||||||
|
|
||||||
CRYPTO_free_ex_data(dh_meth, r, &r->ex_data);
|
CRYPTO_free_ex_data(dh_meth, r, &r->ex_data);
|
||||||
|
|
||||||
|
|||||||
@@ -116,39 +116,75 @@ dsa_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
|
|||||||
dsa_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
dsa_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
dsa_key.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
dsa_key.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
dsa_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
dsa_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
dsa_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
dsa_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||||
dsa_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
|
dsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||||
dsa_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
dsa_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
dsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
dsa_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||||
dsa_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
dsa_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
dsa_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
dsa_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||||
dsa_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
dsa_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
dsa_lib.o: ../cryptlib.h
|
dsa_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
|
dsa_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
|
dsa_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
|
dsa_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
|
dsa_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||||
|
dsa_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
|
dsa_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
|
dsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
|
dsa_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
|
dsa_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
dsa_ossl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
dsa_ossl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
dsa_ossl.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
dsa_ossl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||||
dsa_ossl.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
|
dsa_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||||
dsa_ossl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
dsa_ossl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
dsa_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
dsa_ossl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||||
dsa_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
dsa_ossl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
dsa_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
dsa_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||||
dsa_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
dsa_ossl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
|
dsa_ossl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
dsa_ossl.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
dsa_ossl.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
dsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
dsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||||
dsa_sign.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
dsa_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||||
dsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
|
dsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||||
dsa_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
dsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||||
dsa_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
dsa_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||||
dsa_sign.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
dsa_sign.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||||
|
dsa_sign.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||||
|
dsa_sign.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||||
|
dsa_sign.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||||
|
dsa_sign.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||||
|
dsa_sign.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||||
|
dsa_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||||
dsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
dsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||||
dsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
dsa_sign.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||||
|
dsa_sign.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||||
|
dsa_sign.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||||
|
dsa_sign.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||||
dsa_sign.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
dsa_sign.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||||
dsa_vrf.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
dsa_vrf.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||||
dsa_vrf.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
dsa_vrf.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||||
dsa_vrf.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
dsa_vrf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||||
dsa_vrf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
dsa_vrf.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
|
||||||
dsa_vrf.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
dsa_vrf.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
||||||
dsa_vrf.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
dsa_vrf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||||
dsa_vrf.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
dsa_vrf.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||||
dsa_vrf.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
|
dsa_vrf.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||||
|
dsa_vrf.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||||
dsa_vrf.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
dsa_vrf.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||||
dsa_vrf.o: ../cryptlib.h
|
dsa_vrf.o: ../cryptlib.h
|
||||||
|
|||||||
@@ -133,7 +133,11 @@ struct dsa_st
|
|||||||
char *method_mont_p;
|
char *method_mont_p;
|
||||||
int references;
|
int references;
|
||||||
CRYPTO_EX_DATA ex_data;
|
CRYPTO_EX_DATA ex_data;
|
||||||
|
#if 0
|
||||||
DSA_METHOD *meth;
|
DSA_METHOD *meth;
|
||||||
|
#else
|
||||||
|
struct engine_st *engine;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#define DSAparams_dup(x) (DSA *)ASN1_dup((int (*)())i2d_DSAparams, \
|
#define DSAparams_dup(x) (DSA *)ASN1_dup((int (*)())i2d_DSAparams, \
|
||||||
@@ -159,12 +163,20 @@ int DSA_do_verify(const unsigned char *dgst,int dgst_len,
|
|||||||
|
|
||||||
DSA_METHOD *DSA_OpenSSL(void);
|
DSA_METHOD *DSA_OpenSSL(void);
|
||||||
|
|
||||||
void DSA_set_default_method(DSA_METHOD *);
|
void DSA_set_default_openssl_method(DSA_METHOD *);
|
||||||
DSA_METHOD *DSA_get_default_method(void);
|
DSA_METHOD *DSA_get_default_openssl_method(void);
|
||||||
|
#if 0
|
||||||
DSA_METHOD *DSA_set_method(DSA *dsa, DSA_METHOD *);
|
DSA_METHOD *DSA_set_method(DSA *dsa, DSA_METHOD *);
|
||||||
|
#else
|
||||||
|
int DSA_set_method(DSA *dsa, struct engine_st *engine);
|
||||||
|
#endif
|
||||||
|
|
||||||
DSA * DSA_new(void);
|
DSA * DSA_new(void);
|
||||||
|
#if 0
|
||||||
DSA * DSA_new_method(DSA_METHOD *meth);
|
DSA * DSA_new_method(DSA_METHOD *meth);
|
||||||
|
#else
|
||||||
|
DSA * DSA_new_method(struct engine_st *engine);
|
||||||
|
#endif
|
||||||
int DSA_size(DSA *);
|
int DSA_size(DSA *);
|
||||||
/* next 4 return -1 on error */
|
/* next 4 return -1 on error */
|
||||||
int DSA_sign_setup( DSA *dsa,BN_CTX *ctx_in,BIGNUM **kinvp,BIGNUM **rp);
|
int DSA_sign_setup( DSA *dsa,BN_CTX *ctx_in,BIGNUM **kinvp,BIGNUM **rp);
|
||||||
@@ -178,8 +190,6 @@ int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
|
|||||||
int DSA_set_ex_data(DSA *d, int idx, void *arg);
|
int DSA_set_ex_data(DSA *d, int idx, void *arg);
|
||||||
void *DSA_get_ex_data(DSA *d, int idx);
|
void *DSA_get_ex_data(DSA *d, int idx);
|
||||||
|
|
||||||
void ERR_load_DSA_strings(void );
|
|
||||||
|
|
||||||
DSA * d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length);
|
DSA * d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length);
|
||||||
DSA * d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length);
|
DSA * d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length);
|
||||||
DSA * d2i_DSAparams(DSA **a, unsigned char **pp, long length);
|
DSA * d2i_DSAparams(DSA **a, unsigned char **pp, long length);
|
||||||
@@ -216,6 +226,7 @@ DH *DSA_dup_DH(DSA *r);
|
|||||||
/* 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_DSA_strings(void);
|
||||||
|
|
||||||
/* Error codes for the DSA functions. */
|
/* Error codes for the DSA functions. */
|
||||||
|
|
||||||
@@ -236,9 +247,9 @@ DH *DSA_dup_DH(DSA *r);
|
|||||||
|
|
||||||
/* Reason codes. */
|
/* Reason codes. */
|
||||||
#define DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 100
|
#define DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 100
|
||||||
|
#define DSA_R_MISSING_PARAMETERS 101
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ static ERR_STRING_DATA DSA_str_functs[]=
|
|||||||
static ERR_STRING_DATA DSA_str_reasons[]=
|
static ERR_STRING_DATA DSA_str_reasons[]=
|
||||||
{
|
{
|
||||||
{DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE ,"data too large for key size"},
|
{DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE ,"data too large for key size"},
|
||||||
|
{DSA_R_MISSING_PARAMETERS ,"missing parameters"},
|
||||||
{0,NULL}
|
{0,NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -63,19 +63,34 @@
|
|||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
#include <openssl/asn1.h>
|
#include <openssl/asn1.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
|
|
||||||
const char *DSA_version="DSA" OPENSSL_VERSION_PTEXT;
|
const char *DSA_version="DSA" OPENSSL_VERSION_PTEXT;
|
||||||
|
|
||||||
static DSA_METHOD *default_DSA_method;
|
static DSA_METHOD *default_DSA_method = NULL;
|
||||||
static int dsa_meth_num = 0;
|
static int dsa_meth_num = 0;
|
||||||
static STACK_OF(CRYPTO_EX_DATA_FUNCS) *dsa_meth = NULL;
|
static STACK_OF(CRYPTO_EX_DATA_FUNCS) *dsa_meth = NULL;
|
||||||
|
|
||||||
void DSA_set_default_method(DSA_METHOD *meth)
|
void DSA_set_default_openssl_method(DSA_METHOD *meth)
|
||||||
{
|
{
|
||||||
default_DSA_method = meth;
|
ENGINE *e;
|
||||||
|
/* We'll need to notify the "openssl" ENGINE of this
|
||||||
|
* change too. We won't bother locking things down at
|
||||||
|
* our end as there was never any locking in these
|
||||||
|
* functions! */
|
||||||
|
if(default_DSA_method != meth)
|
||||||
|
{
|
||||||
|
default_DSA_method = meth;
|
||||||
|
e = ENGINE_by_id("openssl");
|
||||||
|
if(e)
|
||||||
|
{
|
||||||
|
ENGINE_set_DSA(e, meth);
|
||||||
|
ENGINE_free(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DSA_METHOD *DSA_get_default_method(void)
|
DSA_METHOD *DSA_get_default_openssl_method(void)
|
||||||
{
|
{
|
||||||
if(!default_DSA_method) default_DSA_method = DSA_OpenSSL();
|
if(!default_DSA_method) default_DSA_method = DSA_OpenSSL();
|
||||||
return default_DSA_method;
|
return default_DSA_method;
|
||||||
@@ -86,6 +101,7 @@ DSA *DSA_new(void)
|
|||||||
return DSA_new_method(NULL);
|
return DSA_new_method(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
DSA_METHOD *DSA_set_method(DSA *dsa, DSA_METHOD *meth)
|
DSA_METHOD *DSA_set_method(DSA *dsa, DSA_METHOD *meth)
|
||||||
{
|
{
|
||||||
DSA_METHOD *mtmp;
|
DSA_METHOD *mtmp;
|
||||||
@@ -95,10 +111,33 @@ DSA_METHOD *DSA_set_method(DSA *dsa, DSA_METHOD *meth)
|
|||||||
if (meth->init) meth->init(dsa);
|
if (meth->init) meth->init(dsa);
|
||||||
return mtmp;
|
return mtmp;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int DSA_set_method(DSA *dsa, ENGINE *engine)
|
||||||
DSA *DSA_new_method(DSA_METHOD *meth)
|
|
||||||
{
|
{
|
||||||
|
ENGINE *mtmp;
|
||||||
|
DSA_METHOD *meth;
|
||||||
|
mtmp = dsa->engine;
|
||||||
|
meth = ENGINE_get_DSA(mtmp);
|
||||||
|
if (!ENGINE_init(engine))
|
||||||
|
return 0;
|
||||||
|
if (meth->finish) meth->finish(dsa);
|
||||||
|
dsa->engine = engine;
|
||||||
|
meth = ENGINE_get_DSA(engine);
|
||||||
|
if (meth->init) meth->init(dsa);
|
||||||
|
/* SHOULD ERROR CHECK THIS!!! */
|
||||||
|
ENGINE_finish(mtmp);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
DSA *DSA_new_method(DSA_METHOD *meth)
|
||||||
|
#else
|
||||||
|
DSA *DSA_new_method(ENGINE *engine)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
DSA_METHOD *meth;
|
||||||
DSA *ret;
|
DSA *ret;
|
||||||
|
|
||||||
ret=(DSA *)OPENSSL_malloc(sizeof(DSA));
|
ret=(DSA *)OPENSSL_malloc(sizeof(DSA));
|
||||||
@@ -107,8 +146,17 @@ DSA *DSA_new_method(DSA_METHOD *meth)
|
|||||||
DSAerr(DSA_F_DSA_NEW,ERR_R_MALLOC_FAILURE);
|
DSAerr(DSA_F_DSA_NEW,ERR_R_MALLOC_FAILURE);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
if(meth) ret->meth = meth;
|
if(engine)
|
||||||
else ret->meth = DSA_get_default_method();
|
ret->engine = engine;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if((ret->engine=ENGINE_get_default_DSA()) == NULL)
|
||||||
|
{
|
||||||
|
OPENSSL_free(ret);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
meth = ENGINE_get_DSA(ret->engine);
|
||||||
ret->pad=0;
|
ret->pad=0;
|
||||||
ret->version=0;
|
ret->version=0;
|
||||||
ret->write_params=1;
|
ret->write_params=1;
|
||||||
@@ -124,9 +172,9 @@ DSA *DSA_new_method(DSA_METHOD *meth)
|
|||||||
ret->method_mont_p=NULL;
|
ret->method_mont_p=NULL;
|
||||||
|
|
||||||
ret->references=1;
|
ret->references=1;
|
||||||
ret->flags=ret->meth->flags;
|
ret->flags=meth->flags;
|
||||||
CRYPTO_new_ex_data(dsa_meth,ret,&ret->ex_data);
|
CRYPTO_new_ex_data(dsa_meth,ret,&ret->ex_data);
|
||||||
if ((ret->meth->init != NULL) && !ret->meth->init(ret))
|
if ((meth->init != NULL) && !meth->init(ret))
|
||||||
{
|
{
|
||||||
CRYPTO_free_ex_data(dsa_meth,ret,&ret->ex_data);
|
CRYPTO_free_ex_data(dsa_meth,ret,&ret->ex_data);
|
||||||
OPENSSL_free(ret);
|
OPENSSL_free(ret);
|
||||||
@@ -138,6 +186,7 @@ DSA *DSA_new_method(DSA_METHOD *meth)
|
|||||||
|
|
||||||
void DSA_free(DSA *r)
|
void DSA_free(DSA *r)
|
||||||
{
|
{
|
||||||
|
DSA_METHOD *meth;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (r == NULL) return;
|
if (r == NULL) return;
|
||||||
@@ -155,7 +204,9 @@ void DSA_free(DSA *r)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(r->meth->finish) r->meth->finish(r);
|
meth = ENGINE_get_DSA(r->engine);
|
||||||
|
if(meth->finish) meth->finish(r);
|
||||||
|
ENGINE_finish(r->engine);
|
||||||
|
|
||||||
CRYPTO_free_ex_data(dsa_meth, r, &r->ex_data);
|
CRYPTO_free_ex_data(dsa_meth, r, &r->ex_data);
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/asn1.h>
|
#include <openssl/asn1.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
|
|
||||||
static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
|
static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
|
||||||
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp);
|
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp);
|
||||||
@@ -105,6 +106,11 @@ static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
|
|||||||
int i,reason=ERR_R_BN_LIB;
|
int i,reason=ERR_R_BN_LIB;
|
||||||
DSA_SIG *ret=NULL;
|
DSA_SIG *ret=NULL;
|
||||||
|
|
||||||
|
if (!dsa->p || !dsa->q || !dsa->g)
|
||||||
|
{
|
||||||
|
reason=DSA_R_MISSING_PARAMETERS;
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
BN_init(&m);
|
BN_init(&m);
|
||||||
BN_init(&xr);
|
BN_init(&xr);
|
||||||
s=BN_new();
|
s=BN_new();
|
||||||
@@ -167,6 +173,11 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
|
|||||||
BIGNUM k,*kinv=NULL,*r=NULL;
|
BIGNUM k,*kinv=NULL,*r=NULL;
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
if (!dsa->p || !dsa->q || !dsa->g)
|
||||||
|
{
|
||||||
|
DSAerr(DSA_F_DSA_SIGN_SETUP,DSA_R_MISSING_PARAMETERS);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if (ctx_in == NULL)
|
if (ctx_in == NULL)
|
||||||
{
|
{
|
||||||
if ((ctx=BN_CTX_new()) == NULL) goto err;
|
if ((ctx=BN_CTX_new()) == NULL) goto err;
|
||||||
@@ -191,7 +202,7 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Compute r = (g^k mod p) mod q */
|
/* Compute r = (g^k mod p) mod q */
|
||||||
if (!dsa->meth->bn_mod_exp(dsa, r,dsa->g,&k,dsa->p,ctx,
|
if (!ENGINE_get_DSA(dsa->engine)->bn_mod_exp(dsa, r,dsa->g,&k,dsa->p,ctx,
|
||||||
(BN_MONT_CTX *)dsa->method_mont_p)) goto err;
|
(BN_MONT_CTX *)dsa->method_mont_p)) goto err;
|
||||||
if (!BN_mod(r,r,dsa->q,ctx)) goto err;
|
if (!BN_mod(r,r,dsa->q,ctx)) goto err;
|
||||||
|
|
||||||
@@ -230,6 +241,17 @@ static int dsa_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
|
|||||||
BN_init(&u2);
|
BN_init(&u2);
|
||||||
BN_init(&t1);
|
BN_init(&t1);
|
||||||
|
|
||||||
|
if (BN_is_zero(sig->r) || sig->r->neg || BN_ucmp(sig->r, dsa->q) >= 0)
|
||||||
|
{
|
||||||
|
ret = 0;
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
if (BN_is_zero(sig->s) || sig->s->neg || BN_ucmp(sig->s, dsa->q) >= 0)
|
||||||
|
{
|
||||||
|
ret = 0;
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
/* Calculate W = inv(S) mod Q
|
/* Calculate W = inv(S) mod Q
|
||||||
* save W in u2 */
|
* save W in u2 */
|
||||||
if ((BN_mod_inverse(&u2,sig->s,dsa->q,ctx)) == NULL) goto err;
|
if ((BN_mod_inverse(&u2,sig->s,dsa->q,ctx)) == NULL) goto err;
|
||||||
@@ -269,7 +291,7 @@ static int dsa_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
|
|||||||
if (!BN_mod(&u1,&u1,dsa->q,ctx)) goto err;
|
if (!BN_mod(&u1,&u1,dsa->q,ctx)) goto err;
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
if (!dsa->meth->dsa_mod_exp(dsa, &t1,dsa->g,&u1,dsa->pub_key,&u2,
|
if (!ENGINE_get_DSA(dsa->engine)->dsa_mod_exp(dsa, &t1,dsa->g,&u1,dsa->pub_key,&u2,
|
||||||
dsa->p,ctx,mont)) goto err;
|
dsa->p,ctx,mont)) goto err;
|
||||||
/* BN_copy(&u1,&t1); */
|
/* BN_copy(&u1,&t1); */
|
||||||
/* let u1 = u1 mod q */
|
/* let u1 = u1 mod q */
|
||||||
|
|||||||
@@ -64,10 +64,11 @@
|
|||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/asn1.h>
|
#include <openssl/asn1.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
|
|
||||||
DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
|
DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
|
||||||
{
|
{
|
||||||
return dsa->meth->dsa_do_sign(dgst, dlen, dsa);
|
return ENGINE_get_DSA(dsa->engine)->dsa_do_sign(dgst, dlen, dsa);
|
||||||
}
|
}
|
||||||
|
|
||||||
int DSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig,
|
int DSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig,
|
||||||
@@ -87,6 +88,6 @@ int DSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig,
|
|||||||
|
|
||||||
int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
|
int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
|
||||||
{
|
{
|
||||||
return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
|
return ENGINE_get_DSA(dsa->engine)->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,11 +65,12 @@
|
|||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/asn1.h>
|
#include <openssl/asn1.h>
|
||||||
#include <openssl/asn1_mac.h>
|
#include <openssl/asn1_mac.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
|
|
||||||
int DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
|
int DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
|
||||||
DSA *dsa)
|
DSA *dsa)
|
||||||
{
|
{
|
||||||
return dsa->meth->dsa_do_verify(dgst, dgst_len, sig, dsa);
|
return ENGINE_get_DSA(dsa->engine)->dsa_do_verify(dgst, dgst_len, sig, dsa);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* data has already been hashed (probably with SHA or SHA-1). */
|
/* data has already been hashed (probably with SHA or SHA-1). */
|
||||||
|
|||||||
@@ -194,12 +194,11 @@ DSO_METHOD *DSO_METHOD_win32(void);
|
|||||||
/* If VMS is defined, use shared images. If not, return NULL. */
|
/* If VMS is defined, use shared images. If not, return NULL. */
|
||||||
DSO_METHOD *DSO_METHOD_vms(void);
|
DSO_METHOD *DSO_METHOD_vms(void);
|
||||||
|
|
||||||
void ERR_load_DSO_strings(void);
|
|
||||||
|
|
||||||
/* 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_DSO_strings(void);
|
||||||
|
|
||||||
/* Error codes for the DSO functions. */
|
/* Error codes for the DSO functions. */
|
||||||
|
|
||||||
@@ -247,4 +246,3 @@ void ERR_load_DSO_strings(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user