diff options
author | djm <> | 2011-11-03 02:32:24 +0000 |
---|---|---|
committer | djm <> | 2011-11-03 02:32:24 +0000 |
commit | 027d47f36d5e77b24a925d19c987fc43151baa17 (patch) | |
tree | cf32a9eedf59bc153f2cabc7cf72bacad24c4aff /src/lib/libcrypto/util | |
parent | 242690ab2a8e991b85b4735c4e0bac0ec7bd3481 (diff) | |
download | openbsd-027d47f36d5e77b24a925d19c987fc43151baa17.tar.gz openbsd-027d47f36d5e77b24a925d19c987fc43151baa17.tar.bz2 openbsd-027d47f36d5e77b24a925d19c987fc43151baa17.zip |
import OpenSSL 1.0.0e
Diffstat (limited to 'src/lib/libcrypto/util')
-rw-r--r-- | src/lib/libcrypto/util/cygwin.sh | 11 | ||||
-rw-r--r-- | src/lib/libcrypto/util/libeay.num | 16 | ||||
-rw-r--r-- | src/lib/libcrypto/util/mk1mf.pl | 20 | ||||
-rw-r--r-- | src/lib/libcrypto/util/mkdef.pl | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/util/pl/VC-32.pl | 6 |
5 files changed, 49 insertions, 7 deletions
diff --git a/src/lib/libcrypto/util/cygwin.sh b/src/lib/libcrypto/util/cygwin.sh index a4f2e740b4..d6228521e6 100644 --- a/src/lib/libcrypto/util/cygwin.sh +++ b/src/lib/libcrypto/util/cygwin.sh | |||
@@ -8,7 +8,7 @@ | |||
8 | #set -x | 8 | #set -x |
9 | 9 | ||
10 | CONFIG_OPTIONS="--prefix=/usr shared zlib no-idea no-rc5" | 10 | CONFIG_OPTIONS="--prefix=/usr shared zlib no-idea no-rc5" |
11 | INSTALL_PREFIX=/tmp/install | 11 | INSTALL_PREFIX=/tmp/install/INSTALL |
12 | 12 | ||
13 | VERSION= | 13 | VERSION= |
14 | SUBVERSION=$1 | 14 | SUBVERSION=$1 |
@@ -124,8 +124,12 @@ strip usr/bin/*.exe usr/bin/*.dll usr/lib/engines/*.so | |||
124 | chmod u-w usr/lib/engines/*.so | 124 | chmod u-w usr/lib/engines/*.so |
125 | 125 | ||
126 | # Runtime package | 126 | # Runtime package |
127 | find etc usr/bin usr/lib/engines usr/share/doc usr/ssl/certs \ | 127 | tar cjf libopenssl${VERSION//[!0-9]/}-${VERSION}-${SUBVERSION}.tar.bz2 \ |
128 | usr/ssl/man/man[157] usr/ssl/misc usr/ssl/openssl.cnf usr/ssl/private \ | 128 | usr/bin/cyg*dll |
129 | # Base package | ||
130 | find etc usr/bin/openssl.exe usr/bin/c_rehash usr/lib/engines usr/share/doc \ | ||
131 | usr/ssl/certs usr/ssl/man/man[157] usr/ssl/misc usr/ssl/openssl.cnf \ | ||
132 | usr/ssl/private \ | ||
129 | -empty -o \! -type d | | 133 | -empty -o \! -type d | |
130 | tar cjfT openssl-${VERSION}-${SUBVERSION}.tar.bz2 - | 134 | tar cjfT openssl-${VERSION}-${SUBVERSION}.tar.bz2 - |
131 | # Development package | 135 | # Development package |
@@ -135,6 +139,7 @@ tar cjfT openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 - | |||
135 | 139 | ||
136 | ls -l openssl-${VERSION}-${SUBVERSION}.tar.bz2 | 140 | ls -l openssl-${VERSION}-${SUBVERSION}.tar.bz2 |
137 | ls -l openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 | 141 | ls -l openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 |
142 | ls -l libopenssl${VERSION//[!0-9]/}-${VERSION}-${SUBVERSION}.tar.bz2 | ||
138 | 143 | ||
139 | cleanup | 144 | cleanup |
140 | 145 | ||
diff --git a/src/lib/libcrypto/util/libeay.num b/src/lib/libcrypto/util/libeay.num index 6f3067ae2b..b23619f20a 100644 --- a/src/lib/libcrypto/util/libeay.num +++ b/src/lib/libcrypto/util/libeay.num | |||
@@ -4178,3 +4178,19 @@ UI_method_get_prompt_constructr 4550 EXIST:VMS:FUNCTION: | |||
4178 | UI_method_set_prompt_constructor 4551 EXIST:!VMS:FUNCTION: | 4178 | UI_method_set_prompt_constructor 4551 EXIST:!VMS:FUNCTION: |
4179 | UI_method_set_prompt_constructr 4551 EXIST:VMS:FUNCTION: | 4179 | UI_method_set_prompt_constructr 4551 EXIST:VMS:FUNCTION: |
4180 | EVP_read_pw_string_min 4552 EXIST::FUNCTION: | 4180 | EVP_read_pw_string_min 4552 EXIST::FUNCTION: |
4181 | CRYPTO_cts128_encrypt 4553 EXIST::FUNCTION: | ||
4182 | CRYPTO_cts128_decrypt_block 4554 EXIST::FUNCTION: | ||
4183 | CRYPTO_cfb128_1_encrypt 4555 EXIST::FUNCTION: | ||
4184 | CRYPTO_cbc128_encrypt 4556 EXIST::FUNCTION: | ||
4185 | CRYPTO_ctr128_encrypt 4557 EXIST::FUNCTION: | ||
4186 | CRYPTO_ofb128_encrypt 4558 EXIST::FUNCTION: | ||
4187 | CRYPTO_cts128_decrypt 4559 EXIST::FUNCTION: | ||
4188 | CRYPTO_cts128_encrypt_block 4560 EXIST::FUNCTION: | ||
4189 | CRYPTO_cbc128_decrypt 4561 EXIST::FUNCTION: | ||
4190 | CRYPTO_cfb128_encrypt 4562 EXIST::FUNCTION: | ||
4191 | CRYPTO_cfb128_8_encrypt 4563 EXIST::FUNCTION: | ||
4192 | OPENSSL_strcasecmp 4564 EXIST::FUNCTION: | ||
4193 | OPENSSL_memcmp 4565 EXIST::FUNCTION: | ||
4194 | OPENSSL_strncasecmp 4566 EXIST::FUNCTION: | ||
4195 | OPENSSL_gmtime 4567 EXIST::FUNCTION: | ||
4196 | OPENSSL_gmtime_adj 4568 EXIST::FUNCTION: | ||
diff --git a/src/lib/libcrypto/util/mk1mf.pl b/src/lib/libcrypto/util/mk1mf.pl index 280e9de1ad..afe8c7326d 100644 --- a/src/lib/libcrypto/util/mk1mf.pl +++ b/src/lib/libcrypto/util/mk1mf.pl | |||
@@ -13,6 +13,7 @@ $banner="\t\@echo Building OpenSSL"; | |||
13 | 13 | ||
14 | my $no_static_engine = 1; | 14 | my $no_static_engine = 1; |
15 | my $engines = ""; | 15 | my $engines = ""; |
16 | my $otherlibs = ""; | ||
16 | local $zlib_opt = 0; # 0 = no zlib, 1 = static, 2 = dynamic | 17 | local $zlib_opt = 0; # 0 = no zlib, 1 = static, 2 = dynamic |
17 | local $zlib_lib = ""; | 18 | local $zlib_lib = ""; |
18 | local $perl_asm = 0; # 1 to autobuild asm files from perl scripts | 19 | local $perl_asm = 0; # 1 to autobuild asm files from perl scripts |
@@ -266,6 +267,7 @@ $cflags.=" -DOPENSSL_NO_KRB5" if $no_krb5; | |||
266 | $cflags.=" -DOPENSSL_NO_EC" if $no_ec; | 267 | $cflags.=" -DOPENSSL_NO_EC" if $no_ec; |
267 | $cflags.=" -DOPENSSL_NO_ECDSA" if $no_ecdsa; | 268 | $cflags.=" -DOPENSSL_NO_ECDSA" if $no_ecdsa; |
268 | $cflags.=" -DOPENSSL_NO_ECDH" if $no_ecdh; | 269 | $cflags.=" -DOPENSSL_NO_ECDH" if $no_ecdh; |
270 | $cflags.=" -DOPENSSL_NO_GOST" if $no_gost; | ||
269 | $cflags.=" -DOPENSSL_NO_ENGINE" if $no_engine; | 271 | $cflags.=" -DOPENSSL_NO_ENGINE" if $no_engine; |
270 | $cflags.=" -DOPENSSL_NO_HW" if $no_hw; | 272 | $cflags.=" -DOPENSSL_NO_HW" if $no_hw; |
271 | $cflags.=" -DOPENSSL_NO_JPAKE" if $no_jpake; | 273 | $cflags.=" -DOPENSSL_NO_JPAKE" if $no_jpake; |
@@ -356,6 +358,12 @@ for (;;) | |||
356 | $lib=$val; | 358 | $lib=$val; |
357 | $lib =~ s/^.*\/([^\/]+)$/$1/; | 359 | $lib =~ s/^.*\/([^\/]+)$/$1/; |
358 | } | 360 | } |
361 | if ($key eq "LIBNAME" && $no_static_engine) | ||
362 | { | ||
363 | $lib=$val; | ||
364 | $lib =~ s/^.*\/([^\/]+)$/$1/; | ||
365 | $otherlibs .= " $lib"; | ||
366 | } | ||
359 | 367 | ||
360 | if ($key eq "EXHEADER") | 368 | if ($key eq "EXHEADER") |
361 | { $exheader.=&var_add($dir,$val, 1); } | 369 | { $exheader.=&var_add($dir,$val, 1); } |
@@ -658,7 +666,7 @@ foreach (split(/\s+/,$test)) | |||
658 | $rules.=&do_link_rule("\$(TEST_D)$o$t$exep",$tt,"\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)"); | 666 | $rules.=&do_link_rule("\$(TEST_D)$o$t$exep",$tt,"\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)"); |
659 | } | 667 | } |
660 | 668 | ||
661 | $defs.=&do_defs("E_SHLIB",$engines,"\$(ENG_D)",$shlibp); | 669 | $defs.=&do_defs("E_SHLIB",$engines . $otherlibs,"\$(ENG_D)",$shlibp); |
662 | 670 | ||
663 | foreach (split(/\s+/,$engines)) | 671 | foreach (split(/\s+/,$engines)) |
664 | { | 672 | { |
@@ -671,6 +679,14 @@ foreach (split(/\s+/,$engines)) | |||
671 | $rules.= &do_lib_rule("\$(SSLOBJ)","\$(O_SSL)",$ssl,$shlib,"\$(SO_SSL)"); | 679 | $rules.= &do_lib_rule("\$(SSLOBJ)","\$(O_SSL)",$ssl,$shlib,"\$(SO_SSL)"); |
672 | $rules.= &do_lib_rule("\$(CRYPTOOBJ)","\$(O_CRYPTO)",$crypto,$shlib,"\$(SO_CRYPTO)"); | 680 | $rules.= &do_lib_rule("\$(CRYPTOOBJ)","\$(O_CRYPTO)",$crypto,$shlib,"\$(SO_CRYPTO)"); |
673 | 681 | ||
682 | foreach (split(" ",$otherlibs)) | ||
683 | { | ||
684 | my $uc = $_; | ||
685 | $uc =~ tr /a-z/A-Z/; | ||
686 | $rules.= &do_lib_rule("\$(${uc}OBJ)","\$(ENG_D)$o$_$shlibp", "", $shlib, ""); | ||
687 | |||
688 | } | ||
689 | |||
674 | $rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)"); | 690 | $rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)"); |
675 | 691 | ||
676 | print $defs; | 692 | print $defs; |
@@ -708,6 +724,7 @@ sub var_add | |||
708 | return("") if $no_dsa && $dir =~ /\/dsa/; | 724 | return("") if $no_dsa && $dir =~ /\/dsa/; |
709 | return("") if $no_dh && $dir =~ /\/dh/; | 725 | return("") if $no_dh && $dir =~ /\/dh/; |
710 | return("") if $no_ec && $dir =~ /\/ec/; | 726 | return("") if $no_ec && $dir =~ /\/ec/; |
727 | return("") if $no_gost && $dir =~ /\/ccgost/; | ||
711 | return("") if $no_cms && $dir =~ /\/cms/; | 728 | return("") if $no_cms && $dir =~ /\/cms/; |
712 | return("") if $no_jpake && $dir =~ /\/jpake/; | 729 | return("") if $no_jpake && $dir =~ /\/jpake/; |
713 | if ($no_des && $dir =~ /\/des/) | 730 | if ($no_des && $dir =~ /\/des/) |
@@ -1047,6 +1064,7 @@ sub read_options | |||
1047 | "no-ec" => \$no_ec, | 1064 | "no-ec" => \$no_ec, |
1048 | "no-ecdsa" => \$no_ecdsa, | 1065 | "no-ecdsa" => \$no_ecdsa, |
1049 | "no-ecdh" => \$no_ecdh, | 1066 | "no-ecdh" => \$no_ecdh, |
1067 | "no-gost" => \$no_gost, | ||
1050 | "no-engine" => \$no_engine, | 1068 | "no-engine" => \$no_engine, |
1051 | "no-hw" => \$no_hw, | 1069 | "no-hw" => \$no_hw, |
1052 | "just-ssl" => | 1070 | "just-ssl" => |
diff --git a/src/lib/libcrypto/util/mkdef.pl b/src/lib/libcrypto/util/mkdef.pl index a4a17e3ae9..ab47329097 100644 --- a/src/lib/libcrypto/util/mkdef.pl +++ b/src/lib/libcrypto/util/mkdef.pl | |||
@@ -257,6 +257,8 @@ $ssl.=" ssl/tls1.h"; | |||
257 | 257 | ||
258 | my $crypto ="crypto/crypto.h"; | 258 | my $crypto ="crypto/crypto.h"; |
259 | $crypto.=" crypto/o_dir.h"; | 259 | $crypto.=" crypto/o_dir.h"; |
260 | $crypto.=" crypto/o_str.h"; | ||
261 | $crypto.=" crypto/o_time.h"; | ||
260 | $crypto.=" crypto/des/des.h crypto/des/des_old.h" ; # unless $no_des; | 262 | $crypto.=" crypto/des/des.h crypto/des/des_old.h" ; # unless $no_des; |
261 | $crypto.=" crypto/idea/idea.h" ; # unless $no_idea; | 263 | $crypto.=" crypto/idea/idea.h" ; # unless $no_idea; |
262 | $crypto.=" crypto/rc4/rc4.h" ; # unless $no_rc4; | 264 | $crypto.=" crypto/rc4/rc4.h" ; # unless $no_rc4; |
@@ -316,6 +318,7 @@ $crypto.=" crypto/krb5/krb5_asn.h"; | |||
316 | $crypto.=" crypto/pqueue/pqueue.h"; | 318 | $crypto.=" crypto/pqueue/pqueue.h"; |
317 | $crypto.=" crypto/cms/cms.h"; | 319 | $crypto.=" crypto/cms/cms.h"; |
318 | $crypto.=" crypto/jpake/jpake.h"; | 320 | $crypto.=" crypto/jpake/jpake.h"; |
321 | $crypto.=" crypto/modes/modes.h"; | ||
319 | 322 | ||
320 | my $symhacks="crypto/symhacks.h"; | 323 | my $symhacks="crypto/symhacks.h"; |
321 | 324 | ||
diff --git a/src/lib/libcrypto/util/pl/VC-32.pl b/src/lib/libcrypto/util/pl/VC-32.pl index c3e29fda96..5f25fc41bf 100644 --- a/src/lib/libcrypto/util/pl/VC-32.pl +++ b/src/lib/libcrypto/util/pl/VC-32.pl | |||
@@ -138,8 +138,8 @@ else | |||
138 | } | 138 | } |
139 | 139 | ||
140 | # generate symbols.pdb unconditionally | 140 | # generate symbols.pdb unconditionally |
141 | $app_cflag.=" /Zi /Fd$tmp_def/app"; | 141 | $app_cflag.=" /Zi /Fd\$(TMP_D)/app"; |
142 | $lib_cflag.=" /Zi /Fd$tmp_def/lib"; | 142 | $lib_cflag.=" /Zi /Fd\$(TMP_D)/lib"; |
143 | $lflags.=" /debug"; | 143 | $lflags.=" /debug"; |
144 | 144 | ||
145 | $obj='.obj'; | 145 | $obj='.obj'; |
@@ -195,7 +195,7 @@ if ($FLAVOR =~ /WIN64A/) { | |||
195 | my $ver=`nasm -v 2>NUL`; | 195 | my $ver=`nasm -v 2>NUL`; |
196 | my $vew=`nasmw -v 2>NUL`; | 196 | my $vew=`nasmw -v 2>NUL`; |
197 | # pick newest version | 197 | # pick newest version |
198 | $asm=($ver gt $vew?"nasm":"nasmw")." -f win32"; | 198 | $asm=($ver ge $vew?"nasm":"nasmw")." -f win32"; |
199 | $asmtype="win32n"; | 199 | $asmtype="win32n"; |
200 | $afile='-o '; | 200 | $afile='-o '; |
201 | } else { | 201 | } else { |