Merge main trunk to engine branch, all conflicts resolved.
This commit is contained in:
parent
7dfded5c26
commit
192295a094
139 changed files with 8190 additions and 5733 deletions
183
CHANGES
183
CHANGES
|
@ -4,6 +4,189 @@
|
|||
|
||||
Changes between 0.9.5a and 0.9.6 [xx XXX 2000]
|
||||
|
||||
*) Major change in util/mkdef.pl to include extra information
|
||||
about each symbol, as well as presentig variables as well
|
||||
as functions. This change means that there's n more need
|
||||
to rebuild the .num files when some algorithms are excluded.
|
||||
[Richard Levitte]
|
||||
|
||||
*) Allow the verify time to be set by an application,
|
||||
rather than always using the current time.
|
||||
[Steve Henson]
|
||||
|
||||
*) Phase 2 verify code reorganisation. The certificate
|
||||
verify code now looks up an issuer certificate by a
|
||||
number of criteria: subject name, authority key id
|
||||
and key usage. It also verifies self signed certificates
|
||||
by the same criteria. The main comparison function is
|
||||
X509_check_issued() which performs these checks.
|
||||
|
||||
Lot of changes were necessary in order to support this
|
||||
without completely rewriting the lookup code.
|
||||
|
||||
Authority and subject key identifier are now cached.
|
||||
|
||||
The LHASH 'certs' is X509_STORE has now been replaced
|
||||
by a STACK_OF(X509_OBJECT). This is mainly because an
|
||||
LHASH can't store or retrieve multiple objects with
|
||||
the same hash value.
|
||||
|
||||
As a result various functions (which were all internal
|
||||
use only) have changed to handle the new X509_STORE
|
||||
structure. This will break anything that messed round
|
||||
with X509_STORE internally.
|
||||
|
||||
The functions X509_STORE_add_cert() now checks for an
|
||||
exact match, rather than just subject name.
|
||||
|
||||
The X509_STORE API doesn't directly support the retrieval
|
||||
of multiple certificates matching a given criteria, however
|
||||
this can be worked round by performing a lookup first
|
||||
(which will fill the cache with candidate certificates)
|
||||
and then examining the cache for matches. This is probably
|
||||
the best we can do without throwing out X509_LOOKUP
|
||||
entirely (maybe later...).
|
||||
|
||||
The X509_VERIFY_CTX structure has been enhanced considerably.
|
||||
|
||||
All certificate lookup operations now go via a get_issuer()
|
||||
callback. Although this currently uses an X509_STORE it
|
||||
can be replaced by custom lookups. This is a simple way
|
||||
to bypass the X509_STORE hackery necessary to make this
|
||||
work and makes it possible to use more efficient techniques
|
||||
in future. A very simple version which uses a simple
|
||||
STACK for its trusted certificate store is also provided
|
||||
using X509_STORE_CTX_trusted_stack().
|
||||
|
||||
The verify_cb() and verify() callbacks now have equivalents
|
||||
in the X509_STORE_CTX structure.
|
||||
|
||||
X509_STORE_CTX also has a 'flags' field which can be used
|
||||
to customise the verify behaviour.
|
||||
[Steve Henson]
|
||||
|
||||
*) Add new PKCS#7 signing option PKCS7_NOSMIMECAP which
|
||||
excludes S/MIME capabilities.
|
||||
[Steve Henson]
|
||||
|
||||
*) When a certificate request is read in keep a copy of the
|
||||
original encoding of the signed data and use it when outputing
|
||||
again. Signatures then use the original encoding rather than
|
||||
a decoded, encoded version which may cause problems if the
|
||||
request is improperly encoded.
|
||||
[Steve Henson]
|
||||
|
||||
*) For consistency with other BIO_puts implementations, call
|
||||
buffer_write(b, ...) directly in buffer_puts instead of calling
|
||||
BIO_write(b, ...).
|
||||
|
||||
In BIO_puts, increment b->num_write as in BIO_write.
|
||||
[Peter.Sylvester@EdelWeb.fr]
|
||||
|
||||
*) Fix BN_mul_word for the case where the word is 0. (We have to use
|
||||
BN_zero, we may not return a BIGNUM with an array consisting of
|
||||
words set to zero.)
|
||||
[Bodo Moeller]
|
||||
|
||||
*) Avoid calling abort() from within the library when problems are
|
||||
detected, except if preprocessor symbols have been defined
|
||||
(such as REF_CHECK, BN_DEBUG etc.).
|
||||
[Bodo Moeller]
|
||||
|
||||
*) New openssl application 'rsautl'. This utility can be
|
||||
used for low level RSA operations. DER public key
|
||||
BIO/fp routines also added.
|
||||
[Steve Henson]
|
||||
|
||||
*) New Configure entry and patches for compiling on QNX 4.
|
||||
[Andreas Schneider <andreas@ds3.etech.fh-hamburg.de>]
|
||||
|
||||
*) A demo state-machine implementation was sponsored by
|
||||
Nuron (http://www.nuron.com/) and is now available in
|
||||
demos/state_machine.
|
||||
[Ben Laurie]
|
||||
|
||||
*) New options added to the 'dgst' utility for signature
|
||||
generation and verification.
|
||||
[Steve Henson]
|
||||
|
||||
*) Unrecognized PKCS#7 content types are now handled via a
|
||||
catch all ASN1_TYPE structure. This allows unsupported
|
||||
types to be stored as a "blob" and an application can
|
||||
encode and decode it manually.
|
||||
[Steve Henson]
|
||||
|
||||
*) Fix various signed/unsigned issues to make a_strex.c
|
||||
compile under VC++.
|
||||
[Oscar Jacobsson <oscar.jacobsson@celocom.com>]
|
||||
|
||||
*) ASN1 fixes. i2d_ASN1_OBJECT was not returning the correct
|
||||
length if passed a buffer. ASN1_INTEGER_to_BN failed
|
||||
if passed a NULL BN and its argument was negative.
|
||||
[Steve Henson, pointed out by Sven Heiberg <sven@tartu.cyber.ee>]
|
||||
|
||||
*) Modification to PKCS#7 encoding routines to output definite
|
||||
length encoding. Since currently the whole structures are in
|
||||
memory there's not real point in using indefinite length
|
||||
constructed encoding. However if OpenSSL is compiled with
|
||||
the flag PKCS7_INDEFINITE_ENCODING the old form is used.
|
||||
[Steve Henson]
|
||||
|
||||
*) Added BIO_vprintf() and BIO_vsnprintf().
|
||||
[Richard Levitte]
|
||||
|
||||
*) Added more prefixes to parse for in the the strings written
|
||||
through a logging bio, to cover all the levels that are available
|
||||
through syslog. The prefixes are now:
|
||||
|
||||
PANIC, EMERG, EMR => LOG_EMERG
|
||||
ALERT, ALR => LOG_ALERT
|
||||
CRIT, CRI => LOG_CRIT
|
||||
ERROR, ERR => LOG_ERR
|
||||
WARNING, WARN, WAR => LOG_WARNING
|
||||
NOTICE, NOTE, NOT => LOG_NOTICE
|
||||
INFO, INF => LOG_INFO
|
||||
DEBUG, DBG => LOG_DEBUG
|
||||
|
||||
and as before, if none of those prefixes are present at the
|
||||
beginning of the string, LOG_ERR is chosen.
|
||||
|
||||
On Win32, the LOG_* levels are mapped according to this:
|
||||
|
||||
LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE
|
||||
LOG_WARNING => EVENTLOG_WARNING_TYPE
|
||||
LOG_NOTICE, LOG_INFO, LOG_DEBUG => EVENTLOG_INFORMATION_TYPE
|
||||
|
||||
[Richard Levitte]
|
||||
|
||||
*) Made it possible to reconfigure with just the configuration
|
||||
argument "reconf" or "reconfigure". The command line arguments
|
||||
are stored in Makefile.ssl in the variable CONFIGURE_ARGS,
|
||||
and are retrieved from there when reconfiguring.
|
||||
[Richard Levitte]
|
||||
|
||||
*) MD4 implemented.
|
||||
[Assar Westerlund <assar@sics.se>, Richard Levitte]
|
||||
|
||||
*) Add the arguments -CAfile and -CApath to the pkcs12 utility.
|
||||
[Richard Levitte]
|
||||
|
||||
*) The obj_dat.pl script was messing up the sorting of object
|
||||
names. The reason was that it compared the quoted version
|
||||
of strings as a result "OCSP" > "OCSP Signing" because
|
||||
" > SPACE. Changed script to store unquoted versions of
|
||||
names and add quotes on output. It was also omitting some
|
||||
names from the lookup table if they were given a default
|
||||
value (that is if SN is missing it is given the same
|
||||
value as LN and vice versa), these are now added on the
|
||||
grounds that if an object has a name we should be able to
|
||||
look it up. Finally added warning output when duplicate
|
||||
short or long names are found.
|
||||
[Steve Henson]
|
||||
|
||||
*) Changes needed for Tandem NSK.
|
||||
[Scott Uroff scott@xypro.com]
|
||||
|
||||
*) Fix SSL 2.0 rollback checking: Due to an off-by-one error in
|
||||
RSA_padding_check_SSLv23(), special padding was never detected
|
||||
and thus the SSL 3.0/TLS 1.0 countermeasure against protocol
|
||||
|
|
304
Configure
304
Configure
|
@ -32,8 +32,7 @@ my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-
|
|||
# [no-]threads [don't] try to create a library that is suitable for
|
||||
# multithreaded applications (default is "threads" if we
|
||||
# know how to do it)
|
||||
# [no-]shared [don't] try to create shared libraries instead of static
|
||||
# ones when possible.
|
||||
# [no-]shared [don't] try to create shared libraries when supported.
|
||||
# no-asm do not use assembler
|
||||
# no-dso do not compile in any native shared-library methods. This
|
||||
# will ensure that all methods just return NULL.
|
||||
|
@ -101,6 +100,10 @@ my $x86_bsdi_asm="asm/bn86bsdi.o asm/co86bsdi.o:asm/dx86bsdi.o asm/yx86bsdi.o:as
|
|||
#config-string $cc : $cflags : $unistd : $thread_cflag : $lflags : $bn_ops : $bn_obj : $des_obj : $bf_obj : $md5_obj : $sha1_obj : $cast_obj : $rc4_obj : $rmd160_obj : $rc5_obj : $dso_scheme : $shared_target : $shared_cflag
|
||||
|
||||
my %table=(
|
||||
# File 'TABLE' (created by 'make TABLE') contains the data from this list,
|
||||
# formatted for better readability.
|
||||
|
||||
|
||||
#"b", "${tcc}:${tflags}::${tlib}:${bits1}:${tbn_mul}::",
|
||||
#"bl-4c-2c", "${tcc}:${tflags}::${tlib}:${bits1}BN_LLONG RC4_CHAR MD2_CHAR:${tbn_mul}::",
|
||||
#"bl-4c-ri", "${tcc}:${tflags}::${tlib}:${bits1}BN_LLONG RC4_CHAR RC4_INDEX:${tbn_mul}::",
|
||||
|
@ -108,15 +111,15 @@ my %table=(
|
|||
|
||||
# Our development configs
|
||||
"purify", "purify gcc:-g -DPURIFY -Wall::(unknown):-lsocket -lnsl::::",
|
||||
"debug", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror::(unknown):-lefence::::",
|
||||
"debug-ben", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
|
||||
"debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
|
||||
"debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe::(unknown):::::",
|
||||
"debug", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror::(unknown):-lefence::::",
|
||||
"debug-ben", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -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-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:-DBIO_PAIR_DEBUG -DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -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 -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-steve", "gcc:-DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -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 -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-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-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-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",
|
||||
"dist", "cc:-O::(unknown):::::",
|
||||
|
||||
# Basic configs that should work on any (32 and less bit) box
|
||||
|
@ -129,32 +132,32 @@ my %table=(
|
|||
# surrounds it with #APP #NO_APP comment pair which (at least Solaris
|
||||
# 7_x86) /usr/ccs/bin/as fails to assemble with "Illegal mnemonic"
|
||||
# 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-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",
|
||||
|
||||
#### 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-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-sparcv9-gcc","gcc:-mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn",
|
||||
"solaris-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",
|
||||
"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",
|
||||
"solaris-sparcv9-gcc","gcc:-mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-fPIC",
|
||||
# gcc pre-2.8 doesn't understand -mcpu=ultrasparc, so fall down to -mv8
|
||||
# but keep the assembler modules.
|
||||
"solaris-sparcv9-gcc27","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus-gcc27.o:::asm/md5-sparcv8plus-gcc27.o::::::dlfcn",
|
||||
"solaris-sparcv9-gcc27","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus-gcc27.o:::asm/md5-sparcv8plus-gcc27.o::::::dlfcn:solaris-shared:-fPIC",
|
||||
####
|
||||
"debug-solaris-sparcv8-gcc","gcc:-DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn",
|
||||
"debug-solaris-sparcv9-gcc","gcc:-DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::::::::dlfcn",
|
||||
"debug-solaris-sparcv8-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC",
|
||||
"debug-solaris-sparcv9-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::::::::dlfcn:solaris-shared:-fPIC",
|
||||
|
||||
#### SPARC Solaris with Sun C setups
|
||||
# DO NOT use /xO[34] on sparc with SC3.0. It is broken, and will not pass the tests
|
||||
"solaris-sparc-sc3","cc:-fast -O -Xa -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR::::::::::dlfcn",
|
||||
"solaris-sparc-sc3","cc:-fast -O -Xa -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-KPIC",
|
||||
# SC4.0 doesn't pass 'make test', upgrade to SC5.0 or SC4.2.
|
||||
# SC4.2 is ok, better than gcc even on bn as long as you tell it -xarch=v8
|
||||
# SC5.0 note: Compiler common patch 107357-01 or later is required!
|
||||
"solaris-sparcv7-cc","cc:-xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::::::::dlfcn",
|
||||
"solaris-sparcv8-cc","cc:-xarch=v8 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn",
|
||||
"solaris-sparcv9-cc","cc:-xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn",
|
||||
"solaris64-sparcv9-cc","cc:-xtarget=ultra -xarch=v9 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::asm/md5-sparcv9.o::::::dlfcn",
|
||||
"solaris-sparcv7-cc","cc:-xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::::::::dlfcn:solaris-shared:-KPIC",
|
||||
"solaris-sparcv8-cc","cc:-xarch=v8 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC",
|
||||
"solaris-sparcv9-cc","cc:-xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC",
|
||||
"solaris64-sparcv9-cc","cc:-xtarget=ultra -xarch=v9 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::asm/md5-sparcv9.o::::::dlfcn:solaris-shared:-KPIC",
|
||||
####
|
||||
"debug-solaris-sparcv8-cc","cc:-DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn",
|
||||
"debug-solaris-sparcv9-cc","cc:-DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn",
|
||||
"debug-solaris-sparcv8-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC",
|
||||
"debug-solaris-sparcv9-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC",
|
||||
|
||||
#### SPARC Linux setups
|
||||
"linux-sparcv7","gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::",
|
||||
|
@ -281,8 +284,8 @@ my %table=(
|
|||
# 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.
|
||||
"linux-elf", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC",
|
||||
"debug-linux-elf","gcc:-DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT:-lefence:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
|
||||
"debug-linux-elf-noefence","gcc:-DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT::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: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::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-mips", "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::",
|
||||
|
@ -300,6 +303,9 @@ my %table=(
|
|||
# NCR MP-RAS UNIX ver 02.03.01
|
||||
"ncr-scde","cc:-O6 -Xa -Hoff=BEHAVED -686 -Hwide -Hiw::(unknown):-lsocket -lnsl:${x86_gcc_des} ${x86_gcc_opts}:::",
|
||||
|
||||
# QNX 4
|
||||
"qnx4", "cc:-DL_ENDIAN -DTERMIO::(unknown)::${x86_gcc_des} ${x86_gcc_opts}:",
|
||||
|
||||
# Linux on ARM
|
||||
"linux-elf-arm","gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::::::::::dlfcn:linux-shared:-fPIC",
|
||||
|
||||
|
@ -311,7 +317,7 @@ my %table=(
|
|||
"unixware-7","cc:-O -DFILIO_H -Kalloca::-Kthread:-lsocket -lnsl:MD2_CHAR RC4_INDEX ${x86_gcc_des}::",
|
||||
|
||||
# IBM's AIX.
|
||||
"aix-cc", "cc:-O -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR:::",
|
||||
"aix-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown)::BN_LLONG RC4_CHAR:::",
|
||||
"aix-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR:::",
|
||||
|
||||
#
|
||||
|
@ -435,116 +441,161 @@ $perl=$ENV{'PERL'} or $perl=&which("perl5") or $perl=&which("perl")
|
|||
|
||||
&usage if ($#ARGV < 0);
|
||||
|
||||
my $flags="";
|
||||
my $depflags="";
|
||||
my $openssl_algorithm_defines="";
|
||||
my $openssl_thread_defines="";
|
||||
my $openssl_other_defines="";
|
||||
my $libs="";
|
||||
my $target="";
|
||||
my $options="";
|
||||
my $symlink=1;
|
||||
foreach (@ARGV)
|
||||
my $flags;
|
||||
my $depflags;
|
||||
my $openssl_algorithm_defines;
|
||||
my $openssl_thread_defines;
|
||||
my $openssl_other_defines;
|
||||
my $libs;
|
||||
my $target;
|
||||
my $options;
|
||||
my $symlink;
|
||||
|
||||
my @argvcopy=@ARGV;
|
||||
my $argvstring="";
|
||||
my $argv_unprocessed=1;
|
||||
|
||||
while($argv_unprocessed)
|
||||
{
|
||||
s /^-no-/no-/; # some people just can't read the instructions
|
||||
if (/^no-asm$/)
|
||||
{
|
||||
$no_asm=1;
|
||||
$flags .= "-DNO_ASM ";
|
||||
$openssl_other_defines .= "#define NO_ASM\n";
|
||||
}
|
||||
elsif (/^no-dso$/)
|
||||
{ $no_dso=1; }
|
||||
elsif (/^no-threads$/)
|
||||
{ $no_threads=1; }
|
||||
elsif (/^threads$/)
|
||||
{ $threads=1; }
|
||||
elsif (/^no-shared$/)
|
||||
{ $no_shared=1; }
|
||||
elsif (/^shared$/)
|
||||
{ $no_shared=0; }
|
||||
elsif (/^no-symlinks$/)
|
||||
{ $symlink=0; }
|
||||
elsif (/^no-(.+)$/)
|
||||
$flags="";
|
||||
$depflags="";
|
||||
$openssl_algorithm_defines="";
|
||||
$openssl_thread_defines="";
|
||||
$openssl_other_defines="";
|
||||
$libs="";
|
||||
$target="";
|
||||
$options="";
|
||||
$symlink=1;
|
||||
|
||||
$argv_unprocessed=0;
|
||||
$argvstring=join(' ',@argvcopy);
|
||||
|
||||
PROCESS_ARGS:
|
||||
foreach (@argvcopy)
|
||||
{
|
||||
my $algo=$1;
|
||||
push @skip,$algo;
|
||||
$algo =~ tr/[a-z]/[A-Z]/;
|
||||
$flags .= "-DNO_$algo ";
|
||||
$depflags .= "-DNO_$algo ";
|
||||
$openssl_algorithm_defines .= "#define NO_$algo\n";
|
||||
if ($algo eq "DES")
|
||||
{
|
||||
push @skip, "mdc2";
|
||||
$options .= " no-mdc2";
|
||||
$flags .= "-DNO_MDC2 ";
|
||||
$depflags .= "-DNO_MDC2 ";
|
||||
$openssl_algorithm_defines .= "#define NO_MDC2\n";
|
||||
s /^-no-/no-/; # some people just can't read the instructions
|
||||
if (/^no-asm$/)
|
||||
{
|
||||
$no_asm=1;
|
||||
$flags .= "-DNO_ASM ";
|
||||
$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 (/^386$/)
|
||||
{ $processor=386; }
|
||||
elsif (/^rsaref$/)
|
||||
{
|
||||
$libs.= "-lRSAglue -lrsaref ";
|
||||
$flags.= "-DRSAref ";
|
||||
$openssl_other_defines .= "#define RSAref\n";
|
||||
}
|
||||
elsif (/^[-+]/)
|
||||
{
|
||||
if (/^-[lL](.*)$/)
|
||||
elsif (/^no-hw-(.+)$/)
|
||||
{
|
||||
$libs.=$_." ";
|
||||
my $hw=$1;
|
||||
$hw =~ tr/[a-z]/[A-Z]/;
|
||||
$flags .= "-DNO_HW_$hw ";
|
||||
$openssl_other_defines .= "#define NO_HW_$hw\n";
|
||||
}
|
||||
elsif (/^-[^-]/ or /^\+/)
|
||||
elsif (/^no-hw$/)
|
||||
{
|
||||
$flags.=$_." ";
|
||||
$flags .= "-DNO_HW ";
|
||||
$openssl_other_defines .= "#define NO_HW\n";
|
||||
}
|
||||
elsif (/^--prefix=(.*)$/)
|
||||
elsif (/^no-dso$/)
|
||||
{ $no_dso=1; }
|
||||
elsif (/^no-threads$/)
|
||||
{ $no_threads=1; }
|
||||
elsif (/^threads$/)
|
||||
{ $threads=1; }
|
||||
elsif (/^no-shared$/)
|
||||
{ $no_shared=1; }
|
||||
elsif (/^shared$/)
|
||||
{ $no_shared=0; }
|
||||
elsif (/^no-symlinks$/)
|
||||
{ $symlink=0; }
|
||||
elsif (/^no-(.+)$/)
|
||||
{
|
||||
$prefix=$1;
|
||||
my $algo=$1;
|
||||
push @skip,$algo;
|
||||
$algo =~ tr/[a-z]/[A-Z]/;
|
||||
$flags .= "-DNO_$algo ";
|
||||
$depflags .= "-DNO_$algo ";
|
||||
$openssl_algorithm_defines .= "#define NO_$algo\n";
|
||||
if ($algo eq "DES")
|
||||
{
|
||||
push @skip, "mdc2";
|
||||
$options .= " no-mdc2";
|
||||
$flags .= "-DNO_MDC2 ";
|
||||
$depflags .= "-DNO_MDC2 ";
|
||||
$openssl_algorithm_defines .= "#define NO_MDC2\n";
|
||||
}
|
||||
}
|
||||
elsif (/^--openssldir=(.*)$/)
|
||||
elsif (/^reconfigure/ || /^reconf/)
|
||||
{
|
||||
$openssldir=$1;
|
||||
if (open(IN,"<$Makefile"))
|
||||
{
|
||||
while (<IN>)
|
||||
{
|
||||
chop;
|
||||
if (/^CONFIGURE_ARGS=(.*)/)
|
||||
{
|
||||
$argvstring=$1;
|
||||
@argvcopy=split(' ',$argvstring);
|
||||
die "Incorrect data to reconfigure, please do a normal configuration\n"
|
||||
if (grep(/^reconf/,@argvcopy));
|
||||
print "Reconfiguring with: $argvstring\n";
|
||||
$argv_unprocessed=1;
|
||||
close(IN);
|
||||
last PROCESS_ARGS;
|
||||
}
|
||||
}
|
||||
close(IN);
|
||||
}
|
||||
die "Insufficient data to reconfigure, please do a normal configuration\n";
|
||||
}
|
||||
elsif (/^--install.prefix=(.*)$/)
|
||||
elsif (/^386$/)
|
||||
{ $processor=386; }
|
||||
elsif (/^rsaref$/)
|
||||
{
|
||||
$install_prefix=$1;
|
||||
$libs.= "-lRSAglue -lrsaref ";
|
||||
$flags.= "-DRSAref ";
|
||||
$openssl_other_defines .= "#define RSAref\n";
|
||||
}
|
||||
elsif (/^[-+]/)
|
||||
{
|
||||
if (/^-[lL](.*)$/)
|
||||
{
|
||||
$libs.=$_." ";
|
||||
}
|
||||
elsif (/^-[^-]/ or /^\+/)
|
||||
{
|
||||
$flags.=$_." ";
|
||||
}
|
||||
elsif (/^--prefix=(.*)$/)
|
||||
{
|
||||
$prefix=$1;
|
||||
}
|
||||
elsif (/^--openssldir=(.*)$/)
|
||||
{
|
||||
$openssldir=$1;
|
||||
}
|
||||
elsif (/^--install.prefix=(.*)$/)
|
||||
{
|
||||
$install_prefix=$1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print STDERR $usage;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
elsif ($_ =~ /^([^:]+):(.+)$/)
|
||||
{
|
||||
eval "\$table{\$1} = \"$2\""; # allow $xxx constructs in the string
|
||||
$target=$1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print STDERR $usage;
|
||||
exit(1);
|
||||
die "target already defined - $target\n" if ($target ne "");
|
||||
$target=$_;
|
||||
}
|
||||
unless ($_ eq $target) {
|
||||
if ($options eq "") {
|
||||
$options = $_;
|
||||
} else {
|
||||
$options .= " ".$_;
|
||||
}
|
||||
}
|
||||
elsif ($_ =~ /^([^:]+):(.+)$/)
|
||||
{
|
||||
eval "\$table{\$1} = \"$2\""; # allow $xxx constructs in the string
|
||||
$target=$1;
|
||||
}
|
||||
else
|
||||
{
|
||||
die "target already defined - $target\n" if ($target ne "");
|
||||
$target=$_;
|
||||
}
|
||||
unless ($_ eq $target) {
|
||||
if ($options eq "") {
|
||||
$options = $_;
|
||||
} else {
|
||||
$options .= " ".$_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -564,6 +615,8 @@ if ($target eq "LIST") {
|
|||
exit 0;
|
||||
}
|
||||
|
||||
print "Configuring for $target\n";
|
||||
|
||||
&usage if (!defined($table{$target}));
|
||||
|
||||
my $IsWindows=scalar grep /^$target$/,@WinTargets;
|
||||
|
@ -582,7 +635,7 @@ print "IsWindows=$IsWindows\n";
|
|||
|
||||
(my $cc,my $cflags,my $unistd,my $thread_cflag,my $lflags,my $bn_ops,my $bn_obj,my $des_obj,my $bf_obj,
|
||||
$md5_obj,$sha1_obj,my $cast_obj,my $rc4_obj,$rmd160_obj,my $rc5_obj,my $dso_scheme,my $shared_target,my $shared_cflag)=
|
||||
split(/\s*:\s*/,$table{$target} . ":" x 21 , -1);
|
||||
split(/\s*:\s*/,$table{$target} . ":" x 22 , -1);
|
||||
$cflags="$flags$cflags" if ($flags ne "");
|
||||
|
||||
# The DSO code currently always implements all functions so that no
|
||||
|
@ -754,6 +807,7 @@ while (<IN>)
|
|||
s/^INSTALL_PREFIX=.*$/INSTALL_PREFIX=$install_prefix/;
|
||||
s/^PLATFORM=.*$/PLATFORM=$target/;
|
||||
s/^OPTIONS=.*$/OPTIONS=$options/;
|
||||
s/^CONFIGURE_ARGS=.*$/CONFIGURE_ARGS=$argvstring/;
|
||||
s/^CC=.*$/CC= $cc/;
|
||||
s/^CFLAG=.*$/CFLAG= $cflags/;
|
||||
s/^DEPFLAG=.*$/DEPFLAG= $depflags/;
|
||||
|
@ -1059,9 +1113,9 @@ sub print_table_entry
|
|||
|
||||
(my $cc,my $cflags,my $unistd,my $thread_cflag,my $lflags,my $bn_ops,
|
||||
my $bn_obj,my $des_obj,my $bf_obj,
|
||||
$md5_obj,$sha1_obj,my $cast_obj,my $rc4_obj,$rmd160_obj,my $rc5_obj,
|
||||
$dso_scheme)=
|
||||
split(/\s*:\s*/,$table{$target} . ":" x 20 , -1);
|
||||
my $md5_obj,my $sha1_obj,my $cast_obj,my $rc4_obj,my $rmd160_obj,
|
||||
my $rc5_obj,my $dso_scheme,my $shared_target,my $shared_cflag)=
|
||||
split(/\s*:\s*/,$table{$target} . ":" x 22 , -1);
|
||||
|
||||
print <<EOF
|
||||
|
||||
|
|
6
FAQ
6
FAQ
|
@ -86,12 +86,6 @@ offer legal advice.
|
|||
You can configure OpenSSL so as not to use RC5 and IDEA by using
|
||||
./config no-rc5 no-idea
|
||||
|
||||
Until the RSA patent expires, U.S. users may want to use
|
||||
./config no-rc5 no-idea no-rsa
|
||||
|
||||
Please note that you will *not* be able to communicate with most of
|
||||
the popular web browsers without RSA support.
|
||||
|
||||
|
||||
* Is OpenSSL thread-safe?
|
||||
|
||||
|
|
17
INSTALL
17
INSTALL
|
@ -53,6 +53,12 @@
|
|||
This will usually require additional system-dependent options!
|
||||
See "Note on multi-threading" below.
|
||||
|
||||
no-shared Don't try to create shared libraries.
|
||||
|
||||
shared In addition to the usual static libraries, create shared
|
||||
libraries on platforms where it's supported. See "Note on
|
||||
shared libraries" below.
|
||||
|
||||
no-asm Do not use assembler code.
|
||||
|
||||
386 Use the 80386 instruction set only (the default x86 code is
|
||||
|
@ -253,3 +259,14 @@
|
|||
you can still use "no-threads" to suppress an annoying warning message
|
||||
from the Configure script.)
|
||||
|
||||
|
||||
Note on shared libraries
|
||||
------------------------
|
||||
|
||||
For some systems, the OpenSSL Configure script knows what is needed to
|
||||
build shared libraries for libcrypto and libssl. On these systems,
|
||||
the shared libraries are currently not created by default, but giving
|
||||
the option "shared" will get them created. This method supports Makefile
|
||||
targets for shared library creation, like linux-shared. Those targets
|
||||
can currently be used on their own just as well, but this is expected
|
||||
to change in future versions of OpenSSL.
|
||||
|
|
26
Makefile.org
26
Makefile.org
|
@ -11,6 +11,7 @@ SHLIB_MAJOR=
|
|||
SHLIB_MINOR=
|
||||
PLATFORM=dist
|
||||
OPTIONS=
|
||||
CONFIGURE_ARGS=
|
||||
SHLIB_TARGET=
|
||||
|
||||
# INSTALL_PREFIX is for package builders so that they can configure
|
||||
|
@ -160,7 +161,7 @@ SHLIBDIRS= crypto ssl
|
|||
|
||||
# dirs in crypto to build
|
||||
SDIRS= \
|
||||
md2 md5 sha mdc2 hmac ripemd \
|
||||
md2 md4 md5 sha mdc2 hmac ripemd \
|
||||
des rc2 rc4 rc5 idea bf cast \
|
||||
bn rsa dsa dh dso engine \
|
||||
buffer bio stack lhash rand err objects \
|
||||
|
@ -241,7 +242,7 @@ libcrypto.so: libcrypto.a
|
|||
fi
|
||||
libssl.so: libcrypto.so libssl.a
|
||||
@if [ "$(SHLIB_TARGET)" != "" ]; then \
|
||||
$(MAKE) SHLIBDIRS=ssl $(SHLIB_TARGET); \
|
||||
$(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-L. -lcrypto' $(SHLIB_TARGET); \
|
||||
else \
|
||||
echo "There's no support for shared libraries on this platform" >&2; \
|
||||
fi
|
||||
|
@ -254,47 +255,44 @@ clean-shared:
|
|||
done
|
||||
|
||||
linux-shared:
|
||||
libs=; for i in ${SHLIBDIRS}; do \
|
||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||
rm -f lib$$i.so \
|
||||
lib$$i.so.${SHLIB_MAJOR} \
|
||||
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,--whole-archive lib$$i.a \
|
||||
-Wl,--no-whole-archive -lc $$libs ) || exit 1; \
|
||||
-Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||
libs="$$libs -L. -l$$i"; \
|
||||
( set -x; \
|
||||
ln -s lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||
lib$$i.so.${SHLIB_MAJOR}; \
|
||||
ln -s lib$$i.so.${SHLIB_MAJOR} lib$$i.so ); \
|
||||
done;
|
||||
done
|
||||
|
||||
# This assumes that GNU utilities are *not* used
|
||||
true64-shared:
|
||||
libs=; for i in ${SHLIBDIRS}; do \
|
||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||
( set -x; ${CC} -shared -no_archive -o lib$$i.so \
|
||||
-set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
|
||||
-all lib$$i.a -none -lc $$libs ) || exit 1; \
|
||||
-all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||
libs="$$libs -L. -l$$i"; \
|
||||
done;
|
||||
done
|
||||
|
||||
# This assumes that GNU utilities are *not* used
|
||||
solaris-shared:
|
||||
libs=; for i in ${SHLIBDIRS}; do \
|
||||
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||
rm -f lib$$i.so \
|
||||
lib$$i.so.${SHLIB_MAJOR} \
|
||||
lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}; \
|
||||
( set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||
-h lib$$i.so.${SHLIB_MAJOR} \
|
||||
-z allextract lib$$i.a $$libs ) || exit 1; \
|
||||
-z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||
libs="$$libs -L. -l$$i"; \
|
||||
ln -s lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||
lib$$i.so.${SHLIB_MAJOR}; \
|
||||
ln -s lib$$i.so.${SHLIB_MAJOR} lib$$i.so; \
|
||||
done; \
|
||||
@set -x; \
|
||||
for i in ${SHLIBDIRS}; do \
|
||||
done;
|
||||
done
|
||||
|
||||
Makefile.ssl: Makefile.org
|
||||
@echo "Makefile.ssl is older than Makefile.org."
|
||||
|
|
16
README
16
README
|
@ -99,13 +99,12 @@
|
|||
country. The file contains some of the patents that we know about or are
|
||||
rumoured to exist. This is not a definitive list.
|
||||
|
||||
RSA Data Security holds software patents on the RSA and RC5 algorithms. If
|
||||
their ciphers are used used inside the USA (and Japan?), you must contact RSA
|
||||
Data Security for licensing conditions. Their web page is
|
||||
http://www.rsa.com/.
|
||||
RSA Security holds software patents on the RC5 algorithm. If you
|
||||
intend to use this cipher, you must contact RSA Security for
|
||||
licensing conditions. Their web page is http://www.rsasecurity.com/.
|
||||
|
||||
RC4 is a trademark of RSA Data Security, so use of this label should perhaps
|
||||
only be used with RSA Data Security's permission.
|
||||
RC4 is a trademark of RSA Security, so use of this label should perhaps
|
||||
only be used with RSA Security's permission.
|
||||
|
||||
The IDEA algorithm is patented by Ascom in Austria, France, Germany, Italy,
|
||||
Japan, Netherlands, Spain, Sweden, Switzerland, UK and the USA. They should
|
||||
|
@ -119,9 +118,6 @@
|
|||
a Win32 platform, read the INSTALL.W32 file. For OpenVMS systems, read
|
||||
INSTALL.VMS.
|
||||
|
||||
For people in the USA, it is possible to compile OpenSSL to use RSA Inc.'s
|
||||
public key library, RSAREF, by configuring OpenSSL with the option "rsaref".
|
||||
|
||||
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
|
||||
how to used them. Look at the example programs.
|
||||
|
@ -174,4 +170,4 @@
|
|||
# [your changes]
|
||||
# ./Configure dist; make clean
|
||||
# cd ..
|
||||
# diff -urN openssl-orig openssl-work > mydiffs.patch
|
||||
# diff -ur openssl-orig openssl-work > mydiffs.patch
|
||||
|
|
3
STATUS
3
STATUS
|
@ -1,6 +1,6 @@
|
|||
|
||||
OpenSSL STATUS Last modified at
|
||||
______________ $Date: 2000/07/12 16:34:33 $
|
||||
______________ $Date: 2000/09/07 10:59:01 $
|
||||
|
||||
DEVELOPMENT STATE
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
|||
UTIL (a new set of library functions to support some higher level
|
||||
functionality that is currently missing).
|
||||
Dynamic thread-lock support.
|
||||
Shared library support for VMS.
|
||||
|
||||
NEEDS PATCH
|
||||
|
||||
|
|
120
TABLE
120
TABLE
|
@ -482,7 +482,7 @@ $shared_cflag =
|
|||
|
||||
*** aix-cc
|
||||
$cc = cc
|
||||
$cflags = -O -DAIX -DB_ENDIAN
|
||||
$cflags = -O -DAIX -DB_ENDIAN -qmaxmem=16384
|
||||
$unistd =
|
||||
$thread_cflag = (unknown)
|
||||
$lflags =
|
||||
|
@ -537,7 +537,7 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_target= true64-shared
|
||||
$shared_cflag =
|
||||
|
||||
*** alpha-gcc
|
||||
|
@ -557,7 +557,7 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_target= true64-shared
|
||||
$shared_cflag =
|
||||
|
||||
*** alpha164-cc
|
||||
|
@ -577,7 +577,7 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_target= true64-shared
|
||||
$shared_cflag =
|
||||
|
||||
*** bsdi-elf-gcc
|
||||
|
@ -682,7 +682,7 @@ $shared_cflag =
|
|||
|
||||
*** debug
|
||||
$cc = gcc
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -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
|
||||
$unistd =
|
||||
$thread_cflag = (unknown)
|
||||
$lflags = -lefence
|
||||
|
@ -702,7 +702,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-ben
|
||||
$cc = gcc
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe
|
||||
$unistd =
|
||||
$thread_cflag = (unknown)
|
||||
$lflags =
|
||||
|
@ -722,7 +722,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-ben-debug
|
||||
$cc = gcc
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe
|
||||
$unistd =
|
||||
$thread_cflag = (unknown)
|
||||
$lflags =
|
||||
|
@ -742,7 +742,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-ben-strict
|
||||
$cc = gcc
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe
|
||||
$unistd =
|
||||
$thread_cflag = (unknown)
|
||||
$lflags =
|
||||
|
@ -762,7 +762,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-bodo
|
||||
$cc = gcc
|
||||
$cflags = -DBIO_PAIR_DEBUG -DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -g -m486 -pedantic -Wshadow -Wall
|
||||
$cflags = -DL_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DBIO_PAIR_DEBUG -g -m486 -pedantic -Wshadow -Wall
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags =
|
||||
|
@ -782,7 +782,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-levitte-linux-elf
|
||||
$cc = gcc
|
||||
$cflags = -DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -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 -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags = -ldl
|
||||
|
@ -802,7 +802,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-linux-elf
|
||||
$cc = gcc
|
||||
$cflags = -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags = -lefence
|
||||
|
@ -822,7 +822,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-linux-elf-noefence
|
||||
$cc = gcc
|
||||
$cflags = -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags =
|
||||
|
@ -862,7 +862,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-solaris-sparcv8-cc
|
||||
$cc = cc
|
||||
$cflags = -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags = -lsocket -lnsl -ldl
|
||||
|
@ -877,12 +877,12 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -KPIC
|
||||
|
||||
*** debug-solaris-sparcv8-gcc
|
||||
$cc = gcc
|
||||
$cflags = -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags = -lsocket -lnsl -ldl
|
||||
|
@ -897,12 +897,12 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** debug-solaris-sparcv9-cc
|
||||
$cc = cc
|
||||
$cflags = -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags = -lsocket -lnsl -ldl
|
||||
|
@ -917,12 +917,12 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -KPIC
|
||||
|
||||
*** debug-solaris-sparcv9-gcc
|
||||
$cc = gcc
|
||||
$cflags = -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN
|
||||
$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags = -lsocket -lnsl -ldl
|
||||
|
@ -937,12 +937,12 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** debug-steve
|
||||
$cc = gcc
|
||||
$cflags = -DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe
|
||||
$cflags = -DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags =
|
||||
|
@ -962,7 +962,7 @@ $shared_cflag =
|
|||
|
||||
*** debug-ulf
|
||||
$cc = gcc
|
||||
$cflags = -DL_ENDIAN -DREF_CHECK -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 -g -O2 -m486 -Wall -Werror -Wshadow -pipe
|
||||
$unistd =
|
||||
$thread_cflag = -D_REENTRANT
|
||||
$lflags =
|
||||
|
@ -1557,8 +1557,8 @@ $rc4_obj = asm/rx86-elf.o
|
|||
$rmd160_obj = asm/rm86-elf.o
|
||||
$rc5_obj = asm/r586-elf.o
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= linux-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** linux-elf-arm
|
||||
$cc = gcc
|
||||
|
@ -1577,8 +1577,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= linux-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** linux-ia64
|
||||
$cc = gcc
|
||||
|
@ -1800,6 +1800,26 @@ $dso_scheme =
|
|||
$shared_target=
|
||||
$shared_cflag =
|
||||
|
||||
*** qnx4
|
||||
$cc = cc
|
||||
$cflags = -DL_ENDIAN -DTERMIO
|
||||
$unistd =
|
||||
$thread_cflag = (unknown)
|
||||
$lflags =
|
||||
$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 =
|
||||
|
||||
*** rhapsody-ppc-cc
|
||||
$cc = cc
|
||||
$cflags = -O3 -DB_ENDIAN
|
||||
|
@ -1877,8 +1897,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -KPIC
|
||||
|
||||
*** solaris-sparcv7-cc
|
||||
$cc = cc
|
||||
|
@ -1897,8 +1917,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -KPIC
|
||||
|
||||
*** solaris-sparcv7-gcc
|
||||
$cc = gcc
|
||||
|
@ -1917,8 +1937,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** solaris-sparcv8-cc
|
||||
$cc = cc
|
||||
|
@ -1937,8 +1957,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -KPIC
|
||||
|
||||
*** solaris-sparcv8-gcc
|
||||
$cc = gcc
|
||||
|
@ -1957,8 +1977,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** solaris-sparcv9-cc
|
||||
$cc = cc
|
||||
|
@ -1977,8 +1997,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -KPIC
|
||||
|
||||
*** solaris-sparcv9-gcc
|
||||
$cc = gcc
|
||||
|
@ -1997,8 +2017,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** solaris-sparcv9-gcc27
|
||||
$cc = gcc
|
||||
|
@ -2017,8 +2037,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** solaris-x86-gcc
|
||||
$cc = gcc
|
||||
|
@ -2037,8 +2057,8 @@ $rc4_obj = asm/rx86-sol.o
|
|||
$rmd160_obj = asm/rm86-sol.o
|
||||
$rc5_obj = asm/r586-sol.o
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -fPIC
|
||||
|
||||
*** solaris64-sparcv9-cc
|
||||
$cc = cc
|
||||
|
@ -2057,8 +2077,8 @@ $rc4_obj =
|
|||
$rmd160_obj =
|
||||
$rc5_obj =
|
||||
$dso_scheme = dlfcn
|
||||
$shared_target=
|
||||
$shared_cflag =
|
||||
$shared_target= solaris-shared
|
||||
$shared_cflag = -KPIC
|
||||
|
||||
*** sunos-gcc
|
||||
$cc = gcc
|
||||
|
|
|
@ -34,10 +34,8 @@ $ IF F$PARSE("WRK_SSLINCLUDE:") .EQS. "" THEN -
|
|||
$ IF F$PARSE("WRK_SSLROOT:[VMS]") .EQS. "" THEN -
|
||||
CREATE/DIR/LOG WRK_SSLROOT:[VMS]
|
||||
$
|
||||
$ EXHEADER := vms_idhacks.h
|
||||
$
|
||||
$ COPY 'EXHEADER' WRK_SSLINCLUDE: /LOG
|
||||
$ SET FILE/PROT=WORLD:RE WRK_SSLINCLUDE:'EXHEADER'
|
||||
$ IF F$SEARCH("WRK_SSLINCLUDE:vms_idhacks.h") .NES. "" THEN -
|
||||
DELETE WRK_SSLINCLUDE:vms_idhacks.h;*
|
||||
$
|
||||
$ OPEN/WRITE SF WRK_SSLROOT:[VMS]OPENSSL_STARTUP.COM
|
||||
$ WRITE SYS$OUTPUT "%OPEN-I-CREATED, ",F$SEARCH("WRK_SSLROOT:[VMS]OPENSSL_STARTUP.COM")," created."
|
||||
|
|
|
@ -1,94 +0,0 @@
|
|||
/* ====================================================================
|
||||
* Copyright (c) 1999 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).
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HEADER_VMS_IDHACKS_H
|
||||
#define HEADER_VMS_IDHACKS_H
|
||||
|
||||
#ifdef VMS
|
||||
|
||||
/* Hack a long name in crypto/asn1/a_mbstr.c */
|
||||
#define ASN1_STRING_set_default_mask_asc ASN1_STRING_set_def_mask_asc
|
||||
|
||||
/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */
|
||||
#define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO i2d_ASN1_SET_OF_PKCS7_SIGINF
|
||||
#define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO d2i_ASN1_SET_OF_PKCS7_SIGINF
|
||||
|
||||
/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO) */
|
||||
#define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO i2d_ASN1_SET_OF_PKCS7_RECGINF
|
||||
#define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO d2i_ASN1_SET_OF_PKCS7_RECGINF
|
||||
|
||||
/* Hack the names created with DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) */
|
||||
#define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION i2d_ASN1_SET_OF_ACC_DESC
|
||||
#define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION d2i_ASN1_SET_OF_ACC_DESC
|
||||
|
||||
/* Hack the names created with DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE) */
|
||||
#define PEM_read_NETSCAPE_CERT_SEQUENCE PEM_read_NS_CERT_SEQUENCE
|
||||
#define PEM_write_NETSCAPE_CERT_SEQUENCE PEM_write_NS_CERT_SEQUENCE
|
||||
#define PEM_read_bio_NETSCAPE_CERT_SEQUENCE PEM_read_bio_NS_CERT_SEQUENCE
|
||||
#define PEM_write_bio_NETSCAPE_CERT_SEQUENCE PEM_write_bio_NS_CERT_SEQUENCE
|
||||
#define PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE PEM_write_cb_bio_NS_CERT_SEQUENCE
|
||||
|
||||
/* Hack the names created with DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO) */
|
||||
#define PEM_read_PKCS8_PRIV_KEY_INFO PEM_read_P8_PRIV_KEY_INFO
|
||||
#define PEM_write_PKCS8_PRIV_KEY_INFO PEM_write_P8_PRIV_KEY_INFO
|
||||
#define PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_P8_PRIV_KEY_INFO
|
||||
#define PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_P8_PRIV_KEY_INFO
|
||||
#define PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO PEM_wrt_cb_bio_P8_PRIV_KEY_INFO
|
||||
|
||||
/* Hack other PEM names */
|
||||
#define PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8PrivKey_nid
|
||||
|
||||
#endif /* defined VMS */
|
||||
|
||||
#endif /* ! defined HEADER_VMS_IDHACKS_H */
|
|
@ -116,6 +116,11 @@ foreach (@ARGV) {
|
|||
"-infiles newreq.pem");
|
||||
$RET=$?;
|
||||
print "Signed certificate is in newcert.pem\n";
|
||||
} elsif (/^(-signCA)$/) {
|
||||
system ("$CA -policy policy_anything -out newcert.pem " .
|
||||
"-extensions v3_ca -infiles newreq.pem");
|
||||
$RET=$?;
|
||||
print "Signed CA certificate is in newcert.pem\n";
|
||||
} elsif (/^-signcert$/) {
|
||||
system ("$X509 -x509toreq -in newreq.pem -signkey newreq.pem " .
|
||||
"-out tmp.pem");
|
||||
|
|
File diff suppressed because it is too large
Load diff
41
apps/apps.c
41
apps/apps.c
|
@ -594,6 +594,47 @@ EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass)
|
|||
return(pkey);
|
||||
}
|
||||
|
||||
EVP_PKEY *load_pubkey(BIO *err, char *file, int format)
|
||||
{
|
||||
BIO *key=NULL;
|
||||
EVP_PKEY *pkey=NULL;
|
||||
|
||||
if (file == NULL)
|
||||
{
|
||||
BIO_printf(err,"no keyfile specified\n");
|
||||
goto end;
|
||||
}
|
||||
key=BIO_new(BIO_s_file());
|
||||
if (key == NULL)
|
||||
{
|
||||
ERR_print_errors(err);
|
||||
goto end;
|
||||
}
|
||||
if (BIO_read_filename(key,file) <= 0)
|
||||
{
|
||||
perror(file);
|
||||
goto end;
|
||||
}
|
||||
if (format == FORMAT_ASN1)
|
||||
{
|
||||
pkey=d2i_PUBKEY_bio(key, NULL);
|
||||
}
|
||||
else if (format == FORMAT_PEM)
|
||||
{
|
||||
pkey=PEM_read_bio_PUBKEY(key,NULL,NULL,NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
BIO_printf(err,"bad input format specified for key\n");
|
||||
goto end;
|
||||
}
|
||||
end:
|
||||
if (key != NULL) BIO_free(key);
|
||||
if (pkey == NULL)
|
||||
BIO_printf(err,"unable to load Public Key\n");
|
||||
return(pkey);
|
||||
}
|
||||
|
||||
STACK_OF(X509) *load_certs(BIO *err, char *file, int format)
|
||||
{
|
||||
BIO *certs;
|
||||
|
|
|
@ -152,6 +152,7 @@ int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2);
|
|||
int add_oid_section(BIO *err, LHASH *conf);
|
||||
X509 *load_cert(BIO *err, char *file, int format);
|
||||
EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass);
|
||||
EVP_PKEY *load_pubkey(BIO *err, char *file, int format);
|
||||
STACK_OF(X509) *load_certs(BIO *err, char *file, int format);
|
||||
|
||||
#define FORMAT_UNDEF 0
|
||||
|
|
12
apps/ca.c
12
apps/ca.c
|
@ -216,7 +216,7 @@ int MAIN(int, char **);
|
|||
|
||||
int MAIN(int argc, char **argv)
|
||||
{
|
||||
char *key=NULL;
|
||||
char *key=NULL,*passargin=NULL;
|
||||
int total=0;
|
||||
int total_done=0;
|
||||
int badops=0;
|
||||
|
@ -333,6 +333,11 @@ EF_ALIGNMENT=0;
|
|||
if (--argc < 1) goto bad;
|
||||
keyfile= *(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-passin") == 0)
|
||||
{
|
||||
if (--argc < 1) goto bad;
|
||||
passargin= *(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-key") == 0)
|
||||
{
|
||||
if (--argc < 1) goto bad;
|
||||
|
@ -526,6 +531,11 @@ bad:
|
|||
lookup_fail(section,ENV_PRIVATE_KEY);
|
||||
goto err;
|
||||
}
|
||||
if(!key && !app_passwd(bio_err, passargin, NULL, &key, NULL))
|
||||
{
|
||||
BIO_printf(bio_err,"Error getting password\n");
|
||||
goto err;
|
||||
}
|
||||
if (BIO_read_filename(in,keyfile) <= 0)
|
||||
{
|
||||
perror(keyfile);
|
||||
|
|
192
apps/dgst.c
192
apps/dgst.c
|
@ -73,7 +73,8 @@
|
|||
#undef PROG
|
||||
#define PROG dgst_main
|
||||
|
||||
void do_fp(unsigned char *buf,BIO *f,int sep);
|
||||
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, char binout,
|
||||
EVP_PKEY *key, unsigned char *sigin, unsigned int siglen);
|
||||
|
||||
int MAIN(int, char **);
|
||||
|
||||
|
@ -84,11 +85,18 @@ int MAIN(int argc, char **argv)
|
|||
const EVP_MD *md=NULL,*m;
|
||||
BIO *in=NULL,*inp;
|
||||
BIO *bmd=NULL;
|
||||
BIO *out = NULL;
|
||||
const char *name;
|
||||
#define PROG_NAME_SIZE 16
|
||||
char pname[PROG_NAME_SIZE];
|
||||
int separator=0;
|
||||
int debug=0;
|
||||
const char *outfile = NULL, *keyfile = NULL;
|
||||
const char *sigfile = NULL, *randfile = NULL;
|
||||
char out_bin = -1, want_pub = 0, do_verify = 0;
|
||||
EVP_PKEY *sigkey = NULL;
|
||||
unsigned char *sigbuf = NULL;
|
||||
unsigned int siglen = 0;
|
||||
|
||||
apps_startup();
|
||||
|
||||
|
@ -113,6 +121,43 @@ int MAIN(int argc, char **argv)
|
|||
if ((*argv)[0] != '-') break;
|
||||
if (strcmp(*argv,"-c") == 0)
|
||||
separator=1;
|
||||
else if (strcmp(*argv,"-rand") == 0)
|
||||
{
|
||||
if (--argc < 1) break;
|
||||
randfile=*(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-out") == 0)
|
||||
{
|
||||
if (--argc < 1) break;
|
||||
outfile=*(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-sign") == 0)
|
||||
{
|
||||
if (--argc < 1) break;
|
||||
keyfile=*(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-verify") == 0)
|
||||
{
|
||||
if (--argc < 1) break;
|
||||
keyfile=*(++argv);
|
||||
want_pub = 1;
|
||||
do_verify = 1;
|
||||
}
|
||||
else if (strcmp(*argv,"-prverify") == 0)
|
||||
{
|
||||
if (--argc < 1) break;
|
||||
keyfile=*(++argv);
|
||||
do_verify = 1;
|
||||
}
|
||||
else if (strcmp(*argv,"-signature") == 0)
|
||||
{
|
||||
if (--argc < 1) break;
|
||||
sigfile=*(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-hex") == 0)
|
||||
out_bin = 0;
|
||||
else if (strcmp(*argv,"-binary") == 0)
|
||||
out_bin = 1;
|
||||
else if (strcmp(*argv,"-d") == 0)
|
||||
debug=1;
|
||||
else if ((m=EVP_get_digestbyname(&((*argv)[1]))) != NULL)
|
||||
|
@ -126,14 +171,30 @@ int MAIN(int argc, char **argv)
|
|||
if (md == NULL)
|
||||
md=EVP_md5();
|
||||
|
||||
if(do_verify && !sigfile) {
|
||||
BIO_printf(bio_err, "No signature to verify: use the -signature option\n");
|
||||
err = 1;
|
||||
goto end;
|
||||
}
|
||||
|
||||
if ((argc > 0) && (argv[0][0] == '-')) /* bad option */
|
||||
{
|
||||
BIO_printf(bio_err,"unknown option '%s'\n",*argv);
|
||||
BIO_printf(bio_err,"options are\n");
|
||||
BIO_printf(bio_err,"-c to output the digest with separating colons\n");
|
||||
BIO_printf(bio_err,"-d to output debug info\n");
|
||||
BIO_printf(bio_err,"-c to output the digest with separating colons\n");
|
||||
BIO_printf(bio_err,"-d to output debug info\n");
|
||||
BIO_printf(bio_err,"-hex output as hex dump\n");
|
||||
BIO_printf(bio_err,"-binary output in binary form\n");
|
||||
BIO_printf(bio_err,"-sign file sign digest using private key in file\n");
|
||||
BIO_printf(bio_err,"-verify file verify a signature using public key in file\n");
|
||||
BIO_printf(bio_err,"-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,"-binary output in binary form\n");
|
||||
|
||||
BIO_printf(bio_err,"-%3s to use the %s message digest algorithm (default)\n",
|
||||
LN_md5,LN_md5);
|
||||
BIO_printf(bio_err,"-%3s to use the %s message digest algorithm\n",
|
||||
LN_md4,LN_md4);
|
||||
BIO_printf(bio_err,"-%3s to use the %s message digest algorithm\n",
|
||||
LN_md2,LN_md2);
|
||||
BIO_printf(bio_err,"-%3s to use the %s message digest algorithm\n",
|
||||
|
@ -147,7 +208,7 @@ int MAIN(int argc, char **argv)
|
|||
err=1;
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
||||
in=BIO_new(BIO_s_file());
|
||||
bmd=BIO_new(BIO_f_md());
|
||||
if (debug)
|
||||
|
@ -163,6 +224,72 @@ int MAIN(int argc, char **argv)
|
|||
goto end;
|
||||
}
|
||||
|
||||
if(out_bin == -1) {
|
||||
if(keyfile) out_bin = 1;
|
||||
else out_bin = 0;
|
||||
}
|
||||
|
||||
if(randfile)
|
||||
app_RAND_load_file(randfile, bio_err, 0);
|
||||
|
||||
if(outfile) {
|
||||
if(out_bin)
|
||||
out = BIO_new_file(outfile, "wb");
|
||||
else out = BIO_new_file(outfile, "w");
|
||||
} else out = BIO_new_fp(stdout, BIO_NOCLOSE);
|
||||
|
||||
if(!out) {
|
||||
BIO_printf(bio_err, "Error opening output file %s\n",
|
||||
outfile ? outfile : "(stdout)");
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
}
|
||||
|
||||
if(keyfile) {
|
||||
BIO *keybio;
|
||||
keybio = BIO_new_file(keyfile, "r");
|
||||
if(!keybio) {
|
||||
BIO_printf(bio_err, "Error opening key file %s\n",
|
||||
keyfile);
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
}
|
||||
|
||||
if(want_pub)
|
||||
sigkey = PEM_read_bio_PUBKEY(keybio, NULL, NULL, NULL);
|
||||
else sigkey = PEM_read_bio_PrivateKey(keybio, NULL, NULL, NULL);
|
||||
BIO_free(keybio);
|
||||
if(!sigkey) {
|
||||
BIO_printf(bio_err, "Error reading key file %s\n",
|
||||
keyfile);
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if(sigfile && sigkey) {
|
||||
BIO *sigbio;
|
||||
sigbio = BIO_new_file(sigfile, "rb");
|
||||
siglen = EVP_PKEY_size(sigkey);
|
||||
sigbuf = OPENSSL_malloc(siglen);
|
||||
if(!sigbio) {
|
||||
BIO_printf(bio_err, "Error opening signature file %s\n",
|
||||
sigfile);
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
}
|
||||
siglen = BIO_read(sigbio, sigbuf, siglen);
|
||||
BIO_free(sigbio);
|
||||
if(siglen <= 0) {
|
||||
BIO_printf(bio_err, "Error reading signature file %s\n",
|
||||
sigfile);
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* we use md as a filter, reading from 'in' */
|
||||
BIO_set_md(bmd,md);
|
||||
inp=BIO_push(bmd,in);
|
||||
|
@ -170,7 +297,7 @@ int MAIN(int argc, char **argv)
|
|||
if (argc == 0)
|
||||
{
|
||||
BIO_set_fp(in,stdin,BIO_NOCLOSE);
|
||||
do_fp(buf,inp,separator);
|
||||
do_fp(out, buf,inp,separator, out_bin, sigkey, sigbuf, siglen);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -183,8 +310,9 @@ int MAIN(int argc, char **argv)
|
|||
err++;
|
||||
continue;
|
||||
}
|
||||
printf("%s(%s)= ",name,argv[i]);
|
||||
do_fp(buf,inp,separator);
|
||||
if(!out_bin) BIO_printf(out, "%s(%s)= ",name,argv[i]);
|
||||
do_fp(out, buf,inp,separator, out_bin, sigkey,
|
||||
sigbuf, siglen);
|
||||
(void)BIO_reset(bmd);
|
||||
}
|
||||
}
|
||||
|
@ -195,11 +323,15 @@ end:
|
|||
OPENSSL_free(buf);
|
||||
}
|
||||
if (in != NULL) BIO_free(in);
|
||||
BIO_free(out);
|
||||
EVP_PKEY_free(sigkey);
|
||||
if(sigbuf) OPENSSL_free(sigbuf);
|
||||
if (bmd != NULL) BIO_free(bmd);
|
||||
EXIT(err);
|
||||
}
|
||||
|
||||
void do_fp(unsigned char *buf, BIO *bp, int sep)
|
||||
void do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, char binout,
|
||||
EVP_PKEY *key, unsigned char *sigin, unsigned int siglen)
|
||||
{
|
||||
int len;
|
||||
int i;
|
||||
|
@ -209,14 +341,44 @@ void do_fp(unsigned char *buf, BIO *bp, int sep)
|
|||
i=BIO_read(bp,(char *)buf,BUFSIZE);
|
||||
if (i <= 0) break;
|
||||
}
|
||||
len=BIO_gets(bp,(char *)buf,BUFSIZE);
|
||||
|
||||
for (i=0; i<len; i++)
|
||||
if(sigin)
|
||||
{
|
||||
if (sep && (i != 0))
|
||||
putc(':',stdout);
|
||||
printf("%02x",buf[i]);
|
||||
EVP_MD_CTX *ctx;
|
||||
BIO_get_md_ctx(bp, &ctx);
|
||||
i = EVP_VerifyFinal(ctx, sigin, siglen, key);
|
||||
if(i > 0) BIO_printf(out, "Verified OK\n");
|
||||
else if(i == 0) BIO_printf(out, "Verification Failure\n");
|
||||
else
|
||||
{
|
||||
BIO_printf(bio_err, "Error Verifying Data\n");
|
||||
ERR_print_errors(bio_err);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(key)
|
||||
{
|
||||
EVP_MD_CTX *ctx;
|
||||
BIO_get_md_ctx(bp, &ctx);
|
||||
if(!EVP_SignFinal(ctx, buf, (unsigned int *)&len, key))
|
||||
{
|
||||
BIO_printf(bio_err, "Error Signing Data\n");
|
||||
ERR_print_errors(bio_err);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
len=BIO_gets(bp,(char *)buf,BUFSIZE);
|
||||
|
||||
if(binout) BIO_write(out, buf, len);
|
||||
else
|
||||
{
|
||||
for (i=0; i<len; i++)
|
||||
{
|
||||
if (sep && (i != 0))
|
||||
BIO_printf(out, ":");
|
||||
BIO_printf(out, "%02x",buf[i]);
|
||||
}
|
||||
BIO_printf(out, "\n");
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
-----BEGIN DH PARAMETERS-----
|
||||
MIGHAoGBAJf2QmHKtQXdKCjhPx1ottPb0PMTBH9A6FbaWMsTuKG/K3g6TG1Z1fkq
|
||||
/Gz/PWk/eLI9TzFgqVAuPvr3q14a1aZeVUMTgo2oO5/y2UHe6VaJ+trqCTat3xlx
|
||||
/mNbIK9HA2RgPC3gWfVLZQrY+gz3ASHHR5nXWHEyvpuZm7m3h+irAgEC
|
||||
MIGHAoGBAPSI/VhOSdvNILSd5JEHNmszbDgNRR0PfIizHHxbLY7288kjwEPwpVsY
|
||||
jY67VYy4XTjTNP18F1dDox0YbN4zISy1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6
|
||||
ypUM2Zafq9AKUJsCRtMIPWakXUGfnHy9iUsiGSa6q6Jew1XpL3jHAgEC
|
||||
-----END DH PARAMETERS-----
|
||||
|
||||
These are the 1024 bit DH parameters from "Assigned Number for SKIP Protocols"
|
||||
(http://www.skip-vpn.org/spec/numbers.html).
|
||||
See there for how they were generated.
|
||||
Note that g is not a generator, but this is not a problem since p is a safe prime.
|
||||
|
|
|
@ -101,6 +101,8 @@ int main(int Argc, char *Argv[])
|
|||
arg.data=NULL;
|
||||
arg.count=0;
|
||||
|
||||
if (getenv("OPENSSL_DEBUG_MEMORY") != NULL)
|
||||
CRYPTO_malloc_debug_init();
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
|
||||
|
||||
apps_startup();
|
||||
|
|
170
apps/pkcs12.c
170
apps/pkcs12.c
|
@ -78,7 +78,7 @@ EVP_CIPHER *enc;
|
|||
#define CLCERTS 0x8
|
||||
#define CACERTS 0x10
|
||||
|
||||
int get_cert_chain(X509 *cert, STACK_OF(X509) **chain);
|
||||
int get_cert_chain (X509 *cert, X509_STORE *store, STACK_OF(X509) **chain);
|
||||
int dump_certs_keys_p12(BIO *out, PKCS12 *p12, char *pass, int passlen, int options, char *pempass);
|
||||
int dump_certs_pkeys_bags(BIO *out, STACK_OF(PKCS12_SAFEBAG) *bags, char *pass,
|
||||
int passlen, int options, char *pempass);
|
||||
|
@ -117,6 +117,7 @@ int MAIN(int argc, char **argv)
|
|||
char *passargin = NULL, *passargout = NULL, *passarg = NULL;
|
||||
char *passin = NULL, *passout = NULL;
|
||||
char *inrand = NULL;
|
||||
char *CApath = NULL, *CAfile = NULL;
|
||||
|
||||
apps_startup();
|
||||
|
||||
|
@ -225,6 +226,16 @@ int MAIN(int argc, char **argv)
|
|||
passarg = *args;
|
||||
noprompt = 1;
|
||||
} else badarg = 1;
|
||||
} else if (!strcmp(*args,"-CApath")) {
|
||||
if (args[1]) {
|
||||
args++;
|
||||
CApath = *args;
|
||||
} else badarg = 1;
|
||||
} else if (!strcmp(*args,"-CAfile")) {
|
||||
if (args[1]) {
|
||||
args++;
|
||||
CAfile = *args;
|
||||
} else badarg = 1;
|
||||
} else badarg = 1;
|
||||
|
||||
} else badarg = 1;
|
||||
|
@ -238,6 +249,8 @@ int MAIN(int argc, char **argv)
|
|||
BIO_printf (bio_err, "-chain add certificate chain\n");
|
||||
BIO_printf (bio_err, "-inkey file private key if not infile\n");
|
||||
BIO_printf (bio_err, "-certfile f add all certs in f\n");
|
||||
BIO_printf (bio_err, "-CApath arg - PEM format directory of CA's\n");
|
||||
BIO_printf (bio_err, "-CAfile arg - PEM format file of CA's\n");
|
||||
BIO_printf (bio_err, "-name \"name\" use name as friendly name\n");
|
||||
BIO_printf (bio_err, "-caname \"nm\" use nm as CA friendly name (can be used more than once).\n");
|
||||
BIO_printf (bio_err, "-in infile input filename\n");
|
||||
|
@ -360,21 +373,22 @@ int MAIN(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (export_cert) {
|
||||
EVP_PKEY *key;
|
||||
STACK_OF(PKCS12_SAFEBAG) *bags;
|
||||
STACK_OF(PKCS7) *safes;
|
||||
PKCS12_SAFEBAG *bag;
|
||||
PKCS8_PRIV_KEY_INFO *p8;
|
||||
PKCS7 *authsafe;
|
||||
EVP_PKEY *key = NULL;
|
||||
STACK_OF(PKCS12_SAFEBAG) *bags = NULL;
|
||||
STACK_OF(PKCS7) *safes = NULL;
|
||||
PKCS12_SAFEBAG *bag = NULL;
|
||||
PKCS8_PRIV_KEY_INFO *p8 = NULL;
|
||||
PKCS7 *authsafe = NULL;
|
||||
X509 *ucert = NULL;
|
||||
STACK_OF(X509) *certs=NULL;
|
||||
char *catmp;
|
||||
char *catmp = NULL;
|
||||
int i;
|
||||
unsigned char keyid[EVP_MAX_MD_SIZE];
|
||||
unsigned int keyidlen = 0;
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_push_info("process -export_cert");
|
||||
CRYPTO_push_info("reading private key");
|
||||
#endif
|
||||
key = PEM_read_bio_PrivateKey(inkey ? inkey : in, NULL, NULL, passin);
|
||||
if (!inkey) (void) BIO_reset(in);
|
||||
|
@ -382,18 +396,28 @@ int MAIN(int argc, char **argv)
|
|||
if (!key) {
|
||||
BIO_printf (bio_err, "Error loading private key\n");
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
goto export_end;
|
||||
}
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("reading certs from input");
|
||||
#endif
|
||||
|
||||
certs = sk_X509_new(NULL);
|
||||
|
||||
/* Load in all certs in input file */
|
||||
if(!cert_load(in, certs)) {
|
||||
BIO_printf(bio_err, "Error loading certificates from input\n");
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
goto export_end;
|
||||
}
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("reading certs from input 2");
|
||||
#endif
|
||||
|
||||
for(i = 0; i < sk_X509_num(certs); i++) {
|
||||
ucert = sk_X509_value(certs, i);
|
||||
if(X509_check_private_key(ucert, key)) {
|
||||
|
@ -401,12 +425,17 @@ int MAIN(int argc, char **argv)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!keyidlen) {
|
||||
ucert = NULL;
|
||||
BIO_printf(bio_err, "No certificate matches private key\n");
|
||||
goto end;
|
||||
goto export_end;
|
||||
}
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("reading certs from certfile");
|
||||
#endif
|
||||
|
||||
bags = sk_PKCS12_SAFEBAG_new (NULL);
|
||||
|
||||
/* Add any more certificates asked for */
|
||||
|
@ -414,28 +443,50 @@ int MAIN(int argc, char **argv)
|
|||
if(!cert_load(certsin, certs)) {
|
||||
BIO_printf(bio_err, "Error loading certificates from certfile\n");
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
goto export_end;
|
||||
}
|
||||
BIO_free(certsin);
|
||||
}
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("building chain");
|
||||
#endif
|
||||
|
||||
/* If chaining get chain from user cert */
|
||||
if (chain) {
|
||||
int vret;
|
||||
STACK_OF(X509) *chain2;
|
||||
vret = get_cert_chain (ucert, &chain2);
|
||||
X509_STORE *store = X509_STORE_new();
|
||||
if (!store)
|
||||
{
|
||||
BIO_printf (bio_err, "Memory allocation error\n");
|
||||
goto export_end;
|
||||
}
|
||||
if (!X509_STORE_load_locations(store, CAfile, CApath))
|
||||
X509_STORE_set_default_paths (store);
|
||||
|
||||
vret = get_cert_chain (ucert, store, &chain2);
|
||||
X509_STORE_free(store);
|
||||
|
||||
if (!vret) {
|
||||
/* Exclude verified certificate */
|
||||
for (i = 1; i < sk_X509_num (chain2) ; i++)
|
||||
sk_X509_push(certs, sk_X509_value (chain2, i));
|
||||
}
|
||||
sk_X509_free(chain2);
|
||||
if (vret) {
|
||||
BIO_printf (bio_err, "Error %s getting chain.\n",
|
||||
X509_verify_cert_error_string(vret));
|
||||
goto end;
|
||||
}
|
||||
/* Exclude verified certificate */
|
||||
for (i = 1; i < sk_X509_num (chain2) ; i++)
|
||||
sk_X509_push(certs, sk_X509_value (chain2, i));
|
||||
sk_X509_free(chain2);
|
||||
|
||||
goto export_end;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("building bags");
|
||||
#endif
|
||||
|
||||
/* We now have loads of certificates: include them all */
|
||||
for(i = 0; i < sk_X509_num(certs); i++) {
|
||||
X509 *cert = NULL;
|
||||
|
@ -450,56 +501,98 @@ int MAIN(int argc, char **argv)
|
|||
sk_PKCS12_SAFEBAG_push(bags, bag);
|
||||
}
|
||||
sk_X509_pop_free(certs, X509_free);
|
||||
if (canames) sk_free(canames);
|
||||
certs = NULL;
|
||||
/* ucert is part of certs so it is already freed */
|
||||
ucert = NULL;
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("encrypting bags");
|
||||
#endif
|
||||
|
||||
if(!noprompt &&
|
||||
EVP_read_pw_string(pass, 50, "Enter Export Password:", 1)) {
|
||||
BIO_printf (bio_err, "Can't read Password\n");
|
||||
goto end;
|
||||
goto export_end;
|
||||
}
|
||||
if (!twopass) strcpy(macpass, pass);
|
||||
/* Turn certbags into encrypted authsafe */
|
||||
authsafe = PKCS12_pack_p7encdata(cert_pbe, cpass, -1, NULL, 0,
|
||||
iter, bags);
|
||||
sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
|
||||
bags = NULL;
|
||||
|
||||
if (!authsafe) {
|
||||
ERR_print_errors (bio_err);
|
||||
goto end;
|
||||
goto export_end;
|
||||
}
|
||||
|
||||
safes = sk_PKCS7_new (NULL);
|
||||
sk_PKCS7_push (safes, authsafe);
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("building shrouded key bag");
|
||||
#endif
|
||||
|
||||
/* Make a shrouded key bag */
|
||||
p8 = EVP_PKEY2PKCS8 (key);
|
||||
EVP_PKEY_free(key);
|
||||
if(keytype) PKCS8_add_keyusage(p8, keytype);
|
||||
bag = PKCS12_MAKE_SHKEYBAG(key_pbe, cpass, -1, NULL, 0, iter, p8);
|
||||
PKCS8_PRIV_KEY_INFO_free(p8);
|
||||
p8 = NULL;
|
||||
if (name) PKCS12_add_friendlyname (bag, name, -1);
|
||||
PKCS12_add_localkeyid (bag, keyid, keyidlen);
|
||||
bags = sk_PKCS12_SAFEBAG_new(NULL);
|
||||
sk_PKCS12_SAFEBAG_push (bags, bag);
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("encrypting shrouded key bag");
|
||||
#endif
|
||||
|
||||
/* Turn it into unencrypted safe bag */
|
||||
authsafe = PKCS12_pack_p7data (bags);
|
||||
sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
|
||||
bags = NULL;
|
||||
sk_PKCS7_push (safes, authsafe);
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("building pkcs12");
|
||||
#endif
|
||||
|
||||
p12 = PKCS12_init (NID_pkcs7_data);
|
||||
|
||||
M_PKCS12_pack_authsafes (p12, safes);
|
||||
|
||||
sk_PKCS7_pop_free(safes, PKCS7_free);
|
||||
safes = NULL;
|
||||
|
||||
PKCS12_set_mac (p12, mpass, -1, NULL, 0, maciter, NULL);
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("writing pkcs12");
|
||||
#endif
|
||||
|
||||
i2d_PKCS12_bio (out, p12);
|
||||
|
||||
PKCS12_free(p12);
|
||||
|
||||
ret = 0;
|
||||
|
||||
export_end:
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_pop_info();
|
||||
CRYPTO_push_info("process -export_cert: freeing");
|
||||
#endif
|
||||
|
||||
if (key) EVP_PKEY_free(key);
|
||||
if (certs) sk_X509_pop_free(certs, X509_free);
|
||||
if (safes) sk_PKCS7_pop_free(safes, PKCS7_free);
|
||||
if (bags) sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
|
||||
if (ucert) X509_free(ucert);
|
||||
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
#endif
|
||||
|
@ -557,14 +650,15 @@ int MAIN(int argc, char **argv)
|
|||
CRYPTO_pop_info();
|
||||
#endif
|
||||
ret = 0;
|
||||
end:
|
||||
PKCS12_free(p12);
|
||||
end:
|
||||
if (p12) PKCS12_free(p12);
|
||||
if(export_cert || inrand) app_RAND_write_file(NULL, bio_err);
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_remove_all_info();
|
||||
#endif
|
||||
BIO_free(in);
|
||||
BIO_free(out);
|
||||
if (canames) sk_free(canames);
|
||||
if(passin) OPENSSL_free(passin);
|
||||
if(passout) OPENSSL_free(passout);
|
||||
EXIT(ret);
|
||||
|
@ -690,15 +784,12 @@ int dump_certs_pkeys_bag (BIO *out, PKCS12_SAFEBAG *bag, char *pass,
|
|||
|
||||
/* Hope this is OK .... */
|
||||
|
||||
int get_cert_chain (X509 *cert, STACK_OF(X509) **chain)
|
||||
int get_cert_chain (X509 *cert, X509_STORE *store, STACK_OF(X509) **chain)
|
||||
{
|
||||
X509_STORE *store;
|
||||
X509_STORE_CTX store_ctx;
|
||||
STACK_OF(X509) *chn;
|
||||
int i;
|
||||
|
||||
store = X509_STORE_new ();
|
||||
X509_STORE_set_default_paths (store);
|
||||
X509_STORE_CTX_init(&store_ctx, store, cert, NULL);
|
||||
if (X509_verify_cert(&store_ctx) <= 0) {
|
||||
i = X509_STORE_CTX_get_error (&store_ctx);
|
||||
|
@ -709,7 +800,6 @@ int get_cert_chain (X509 *cert, STACK_OF(X509) **chain)
|
|||
*chain = chn;
|
||||
err:
|
||||
X509_STORE_CTX_cleanup(&store_ctx);
|
||||
X509_STORE_free(store);
|
||||
|
||||
return i;
|
||||
}
|
||||
|
@ -733,10 +823,22 @@ int cert_load(BIO *in, STACK_OF(X509) *sk)
|
|||
int ret;
|
||||
X509 *cert;
|
||||
ret = 0;
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_push_info("cert_load(): reading one cert");
|
||||
#endif
|
||||
while((cert = PEM_read_bio_X509(in, NULL, NULL, NULL))) {
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
#endif
|
||||
ret = 1;
|
||||
sk_X509_push(sk, cert);
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_push_info("cert_load(): reading one cert");
|
||||
#endif
|
||||
}
|
||||
#ifdef CRYPTO_MDEBUG
|
||||
CRYPTO_pop_info();
|
||||
#endif
|
||||
if(ret) ERR_clear_error();
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ extern int errstr_main(int argc,char *argv[]);
|
|||
extern int ca_main(int argc,char *argv[]);
|
||||
extern int crl_main(int argc,char *argv[]);
|
||||
extern int rsa_main(int argc,char *argv[]);
|
||||
extern int rsautl_main(int argc,char *argv[]);
|
||||
extern int dsa_main(int argc,char *argv[]);
|
||||
extern int dsaparam_main(int argc,char *argv[]);
|
||||
extern int x509_main(int argc,char *argv[]);
|
||||
|
@ -67,6 +68,9 @@ FUNCTION functions[] = {
|
|||
#ifndef NO_RSA
|
||||
{FUNC_TYPE_GENERAL,"rsa",rsa_main},
|
||||
#endif
|
||||
#ifndef NO_RSA
|
||||
{FUNC_TYPE_GENERAL,"rsautl",rsautl_main},
|
||||
#endif
|
||||
#ifndef NO_DSA
|
||||
{FUNC_TYPE_GENERAL,"dsa",dsa_main},
|
||||
#endif
|
||||
|
@ -106,6 +110,7 @@ FUNCTION functions[] = {
|
|||
{FUNC_TYPE_GENERAL,"smime",smime_main},
|
||||
{FUNC_TYPE_GENERAL,"rand",rand_main},
|
||||
{FUNC_TYPE_MD,"md2",dgst_main},
|
||||
{FUNC_TYPE_MD,"md4",dgst_main},
|
||||
{FUNC_TYPE_MD,"md5",dgst_main},
|
||||
{FUNC_TYPE_MD,"sha",dgst_main},
|
||||
{FUNC_TYPE_MD,"sha1",dgst_main},
|
||||
|
|
|
@ -29,7 +29,7 @@ foreach (@ARGV)
|
|||
$str="\t{FUNC_TYPE_GENERAL,\"$_\",${_}_main},\n";
|
||||
if (($_ =~ /^s_/) || ($_ =~ /^ciphers$/))
|
||||
{ print "#if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3))\n${str}#endif\n"; }
|
||||
elsif ( ($_ =~ /^rsa$/) || ($_ =~ /^genrsa$/) )
|
||||
elsif ( ($_ =~ /^rsa$/) || ($_ =~ /^genrsa$/) || ($_ =~ /^rsautl$/))
|
||||
{ print "#ifndef NO_RSA\n${str}#endif\n"; }
|
||||
elsif ( ($_ =~ /^dsa$/) || ($_ =~ /^gendsa$/) || ($_ =~ /^dsaparam$/))
|
||||
{ print "#ifndef NO_DSA\n${str}#endif\n"; }
|
||||
|
@ -41,7 +41,7 @@ foreach (@ARGV)
|
|||
{ print $str; }
|
||||
}
|
||||
|
||||
foreach ("md2","md5","sha","sha1","mdc2","rmd160")
|
||||
foreach ("md2","md4","md5","sha","sha1","mdc2","rmd160")
|
||||
{
|
||||
push(@files,$_);
|
||||
printf "\t{FUNC_TYPE_MD,\"%s\",dgst_main},\n",$_;
|
||||
|
|
|
@ -141,6 +141,8 @@ int MAIN(int argc, char **argv)
|
|||
flags |= PKCS7_NOATTR;
|
||||
else if (!strcmp (*args, "-nodetach"))
|
||||
flags &= ~PKCS7_DETACHED;
|
||||
else if (!strcmp (*args, "-nosmimecap"))
|
||||
flags |= PKCS7_NOSMIMECAP;
|
||||
else if (!strcmp (*args, "-binary"))
|
||||
flags |= PKCS7_BINARY;
|
||||
else if (!strcmp (*args, "-nosigs"))
|
||||
|
|
137
apps/speed.c
137
apps/speed.c
|
@ -88,6 +88,9 @@
|
|||
#elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
|
||||
# define TIMES
|
||||
#endif
|
||||
#if !defined(_UNICOS)
|
||||
# define TIMEB
|
||||
#endif
|
||||
|
||||
#ifndef _IRIX
|
||||
# include <time.h>
|
||||
|
@ -109,7 +112,13 @@
|
|||
#undef TIMES
|
||||
#endif
|
||||
|
||||
#ifdef TIMEB
|
||||
#include <sys/timeb.h>
|
||||
#endif
|
||||
|
||||
#if !defined(TIMES) && !defined(TIMEB)
|
||||
#error "It seems neither struct tms nor struct timeb is supported in this platform!"
|
||||
#endif
|
||||
|
||||
#if defined(sun) || defined(__ultrix)
|
||||
#define _POSIX_SOURCE
|
||||
|
@ -126,6 +135,9 @@
|
|||
#ifndef NO_MDC2
|
||||
#include <openssl/mdc2.h>
|
||||
#endif
|
||||
#ifndef NO_MD4
|
||||
#include <openssl/md4.h>
|
||||
#endif
|
||||
#ifndef NO_MD5
|
||||
#include <openssl/md5.h>
|
||||
#endif
|
||||
|
@ -269,8 +281,11 @@ static double Time_F(int s, int usertime)
|
|||
return((ret < 1e-3)?1e-3:ret);
|
||||
}
|
||||
}
|
||||
else
|
||||
# endif /* times() */
|
||||
# if defined(TIMES) && defined(TIMEB)
|
||||
else
|
||||
# endif
|
||||
# ifdef TIMEB
|
||||
{
|
||||
static struct timeb tstart,tend;
|
||||
long i;
|
||||
|
@ -288,6 +303,7 @@ static double Time_F(int s, int usertime)
|
|||
return((ret < 0.001)?0.001:ret);
|
||||
}
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -298,7 +314,7 @@ int MAIN(int argc, char **argv)
|
|||
ENGINE *e;
|
||||
unsigned char *buf=NULL,*buf2=NULL;
|
||||
int mret=1;
|
||||
#define ALGOR_NUM 14
|
||||
#define ALGOR_NUM 15
|
||||
#define SIZE_NUM 5
|
||||
#define RSA_NUM 4
|
||||
#define DSA_NUM 3
|
||||
|
@ -311,6 +327,9 @@ int MAIN(int argc, char **argv)
|
|||
#ifndef NO_MDC2
|
||||
unsigned char mdc2[MDC2_DIGEST_LENGTH];
|
||||
#endif
|
||||
#ifndef NO_MD4
|
||||
unsigned char md4[MD4_DIGEST_LENGTH];
|
||||
#endif
|
||||
#ifndef NO_MD5
|
||||
unsigned char md5[MD5_DIGEST_LENGTH];
|
||||
unsigned char hmac[MD5_DIGEST_LENGTH];
|
||||
|
@ -352,23 +371,24 @@ int MAIN(int argc, char **argv)
|
|||
#endif
|
||||
#define D_MD2 0
|
||||
#define D_MDC2 1
|
||||
#define D_MD5 2
|
||||
#define D_HMAC 3
|
||||
#define D_SHA1 4
|
||||
#define D_RMD160 5
|
||||
#define D_RC4 6
|
||||
#define D_CBC_DES 7
|
||||
#define D_EDE3_DES 8
|
||||
#define D_CBC_IDEA 9
|
||||
#define D_CBC_RC2 10
|
||||
#define D_CBC_RC5 11
|
||||
#define D_CBC_BF 12
|
||||
#define D_CBC_CAST 13
|
||||
#define D_MD4 2
|
||||
#define D_MD5 3
|
||||
#define D_HMAC 4
|
||||
#define D_SHA1 5
|
||||
#define D_RMD160 6
|
||||
#define D_RC4 7
|
||||
#define D_CBC_DES 8
|
||||
#define D_EDE3_DES 9
|
||||
#define D_CBC_IDEA 10
|
||||
#define D_CBC_RC2 11
|
||||
#define D_CBC_RC5 12
|
||||
#define D_CBC_BF 13
|
||||
#define D_CBC_CAST 14
|
||||
double d,results[ALGOR_NUM][SIZE_NUM];
|
||||
static int lengths[SIZE_NUM]={8,64,256,1024,8*1024};
|
||||
long c[ALGOR_NUM][SIZE_NUM];
|
||||
static char *names[ALGOR_NUM]={
|
||||
"md2","mdc2","md5","hmac(md5)","sha1","rmd160","rc4",
|
||||
"md2","mdc2","md4","md5","hmac(md5)","sha1","rmd160","rc4",
|
||||
"des cbc","des ede3","idea cbc",
|
||||
"rc2 cbc","rc5-32/12 cbc","blowfish cbc","cast cbc"};
|
||||
#define R_DSA_512 0
|
||||
|
@ -491,6 +511,10 @@ int MAIN(int argc, char **argv)
|
|||
if (strcmp(*argv,"mdc2") == 0) doit[D_MDC2]=1;
|
||||
else
|
||||
#endif
|
||||
#ifndef NO_MD4
|
||||
if (strcmp(*argv,"md4") == 0) doit[D_MD4]=1;
|
||||
else
|
||||
#endif
|
||||
#ifndef NO_MD5
|
||||
if (strcmp(*argv,"md5") == 0) doit[D_MD5]=1;
|
||||
else
|
||||
|
@ -602,8 +626,34 @@ int MAIN(int argc, char **argv)
|
|||
else
|
||||
#endif
|
||||
{
|
||||
BIO_printf(bio_err,"bad option or value, pick one of\n");
|
||||
BIO_printf(bio_err,"md2 mdc2 md5 hmac sha1 rmd160\n");
|
||||
BIO_printf(bio_err,"Error: bad option or value\n");
|
||||
BIO_printf(bio_err,"\n");
|
||||
BIO_printf(bio_err,"Available values:\n");
|
||||
#ifndef NO_MD2
|
||||
BIO_printf(bio_err,"md2 ");
|
||||
#endif
|
||||
#ifndef NO_MDC2
|
||||
BIO_printf(bio_err,"mdc2 ");
|
||||
#endif
|
||||
#ifndef NO_MD4
|
||||
BIO_printf(bio_err,"md4 ");
|
||||
#endif
|
||||
#ifndef NO_MD5
|
||||
BIO_printf(bio_err,"md5 ");
|
||||
#ifndef NO_HMAC
|
||||
BIO_printf(bio_err,"hmac ");
|
||||
#endif
|
||||
#endif
|
||||
#ifndef NO_SHA1
|
||||
BIO_printf(bio_err,"sha1 ");
|
||||
#endif
|
||||
#ifndef NO_RIPEMD160
|
||||
BIO_printf(bio_err,"rmd160");
|
||||
#endif
|
||||
#if !defined(NO_MD2) || !defined(NO_MDC2) || !defined(NO_MD4) || !defined(NO_MD5) || !defined(NO_SHA1) || !defined(NO_RIPEMD160)
|
||||
BIO_printf(bio_err,"\n");
|
||||
#endif
|
||||
|
||||
#ifndef NO_IDEA
|
||||
BIO_printf(bio_err,"idea-cbc ");
|
||||
#endif
|
||||
|
@ -616,24 +666,48 @@ int MAIN(int argc, char **argv)
|
|||
#ifndef NO_BF
|
||||
BIO_printf(bio_err,"bf-cbc");
|
||||
#endif
|
||||
#if !defined(NO_IDEA) && !defined(NO_RC2) && !defined(NO_BF) && !defined(NO_RC5)
|
||||
#if !defined(NO_IDEA) || !defined(NO_RC2) || !defined(NO_BF) || !defined(NO_RC5)
|
||||
BIO_printf(bio_err,"\n");
|
||||
#endif
|
||||
|
||||
BIO_printf(bio_err,"des-cbc des-ede3 ");
|
||||
#ifndef NO_RC4
|
||||
BIO_printf(bio_err,"rc4");
|
||||
#endif
|
||||
BIO_printf(bio_err,"\n");
|
||||
|
||||
#ifndef NO_RSA
|
||||
BIO_printf(bio_err,"\nrsa512 rsa1024 rsa2048 rsa4096\n");
|
||||
BIO_printf(bio_err,"rsa512 rsa1024 rsa2048 rsa4096\n");
|
||||
#endif
|
||||
|
||||
#ifndef NO_DSA
|
||||
BIO_printf(bio_err,"\ndsa512 dsa1024 dsa2048\n");
|
||||
BIO_printf(bio_err,"dsa512 dsa1024 dsa2048\n");
|
||||
#endif
|
||||
BIO_printf(bio_err,"idea rc2 des rsa blowfish\n");
|
||||
|
||||
#ifndef NO_IDEA
|
||||
BIO_printf(bio_err,"idea ");
|
||||
#endif
|
||||
#ifndef NO_RC2
|
||||
BIO_printf(bio_err,"rc2 ");
|
||||
#endif
|
||||
#ifndef NO_DES
|
||||
BIO_printf(bio_err,"des ");
|
||||
#endif
|
||||
#ifndef NO_RSA
|
||||
BIO_printf(bio_err,"rsa ");
|
||||
#endif
|
||||
#ifndef NO_BF
|
||||
BIO_printf(bio_err,"blowfish");
|
||||
#endif
|
||||
#if !defined(NO_IDEA) || !defined(NO_RC2) || !defined(NO_DES) || !defined(NO_RSA) || !defined(NO_BF)
|
||||
BIO_printf(bio_err,"\n");
|
||||
#endif
|
||||
|
||||
BIO_printf(bio_err,"\n");
|
||||
BIO_printf(bio_err,"Available options:\n");
|
||||
BIO_printf(bio_err,"\n");
|
||||
#ifdef TIMES
|
||||
BIO_printf(bio_err,"-elapsed measure time in real time instead of CPU user time.\n");
|
||||
#endif
|
||||
BIO_printf(bio_err,"-engine e use engine e, possibly a hardware device.\n");
|
||||
goto end;
|
||||
}
|
||||
|
@ -732,6 +806,7 @@ int MAIN(int argc, char **argv)
|
|||
} while (d <3);
|
||||
c[D_MD2][0]=count/10;
|
||||
c[D_MDC2][0]=count/10;
|
||||
c[D_MD4][0]=count;
|
||||
c[D_MD5][0]=count;
|
||||
c[D_HMAC][0]=count;
|
||||
c[D_SHA1][0]=count;
|
||||
|
@ -749,6 +824,7 @@ int MAIN(int argc, char **argv)
|
|||
{
|
||||
c[D_MD2][i]=c[D_MD2][0]*4*lengths[0]/lengths[i];
|
||||
c[D_MDC2][i]=c[D_MDC2][0]*4*lengths[0]/lengths[i];
|
||||
c[D_MD4][i]=c[D_MD4][0]*4*lengths[0]/lengths[i];
|
||||
c[D_MD5][i]=c[D_MD5][0]*4*lengths[0]/lengths[i];
|
||||
c[D_HMAC][i]=c[D_HMAC][0]*4*lengths[0]/lengths[i];
|
||||
c[D_SHA1][i]=c[D_SHA1][0]*4*lengths[0]/lengths[i];
|
||||
|
@ -852,6 +928,23 @@ int MAIN(int argc, char **argv)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef NO_MD4
|
||||
if (doit[D_MD4])
|
||||
{
|
||||
for (j=0; j<SIZE_NUM; j++)
|
||||
{
|
||||
print_message(names[D_MD4],c[D_MD4][j],lengths[j]);
|
||||
Time_F(START,usertime);
|
||||
for (count=0,run=1; COND(c[D_MD4][j]); count++)
|
||||
MD4(&(buf[0]),(unsigned long)lengths[j],&(md4[0]));
|
||||
d=Time_F(STOP,usertime);
|
||||
BIO_printf(bio_err,"%ld %s's in %.2fs\n",
|
||||
count,names[D_MD4],d);
|
||||
results[D_MD4][j]=((double)count)/d*lengths[j];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef NO_MD5
|
||||
if (doit[D_MD5])
|
||||
{
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
#define PROG verify_main
|
||||
|
||||
static int MS_CALLBACK cb(int ok, X509_STORE_CTX *ctx);
|
||||
static int check(X509_STORE *ctx,char *file, STACK_OF(X509)*other, int purpose);
|
||||
static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, int purpose);
|
||||
static STACK_OF(X509) *load_untrusted(char *file);
|
||||
static int v_verbose=0;
|
||||
|
||||
|
@ -81,8 +81,8 @@ int MAIN(int argc, char **argv)
|
|||
int i,ret=1;
|
||||
int purpose = -1;
|
||||
char *CApath=NULL,*CAfile=NULL;
|
||||
char *untfile = NULL;
|
||||
STACK_OF(X509) *untrusted = NULL;
|
||||
char *untfile = NULL, *trustfile = NULL;
|
||||
STACK_OF(X509) *untrusted = NULL, *trusted = NULL;
|
||||
X509_STORE *cert_ctx=NULL;
|
||||
X509_LOOKUP *lookup=NULL;
|
||||
|
||||
|
@ -132,6 +132,11 @@ int MAIN(int argc, char **argv)
|
|||
if (argc-- < 1) goto end;
|
||||
untfile= *(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-trusted") == 0)
|
||||
{
|
||||
if (argc-- < 1) goto end;
|
||||
trustfile= *(++argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-help") == 0)
|
||||
goto end;
|
||||
else if (strcmp(*argv,"-verbose") == 0)
|
||||
|
@ -179,10 +184,18 @@ int MAIN(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (argc < 1) check(cert_ctx, NULL, untrusted, purpose);
|
||||
if(trustfile) {
|
||||
if(!(trusted = load_untrusted(trustfile))) {
|
||||
BIO_printf(bio_err, "Error loading untrusted file %s\n", trustfile);
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (argc < 1) check(cert_ctx, NULL, untrusted, trusted, purpose);
|
||||
else
|
||||
for (i=0; i<argc; i++)
|
||||
check(cert_ctx,argv[i], untrusted, purpose);
|
||||
check(cert_ctx,argv[i], untrusted, trusted, purpose);
|
||||
ret=0;
|
||||
end:
|
||||
if (ret == 1) {
|
||||
|
@ -197,10 +210,11 @@ end:
|
|||
}
|
||||
if (cert_ctx != NULL) X509_STORE_free(cert_ctx);
|
||||
sk_X509_pop_free(untrusted, X509_free);
|
||||
sk_X509_pop_free(trusted, X509_free);
|
||||
EXIT(ret);
|
||||
}
|
||||
|
||||
static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, int purpose)
|
||||
static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, int purpose)
|
||||
{
|
||||
X509 *x=NULL;
|
||||
BIO *in=NULL;
|
||||
|
@ -242,6 +256,7 @@ static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, int purpos
|
|||
goto end;
|
||||
}
|
||||
X509_STORE_CTX_init(csc,ctx,x,uchain);
|
||||
if(tchain) X509_STORE_CTX_trusted_stack(csc, tchain);
|
||||
if(purpose >= 0) X509_STORE_CTX_set_purpose(csc, purpose);
|
||||
i=X509_verify_cert(csc);
|
||||
X509_STORE_CTX_free(csc);
|
||||
|
|
133
apps/x509.c
133
apps/x509.c
|
@ -291,24 +291,26 @@ int MAIN(int argc, char **argv)
|
|||
else if (strcmp(*argv,"-addtrust") == 0)
|
||||
{
|
||||
if (--argc < 1) goto bad;
|
||||
if(!(objtmp = OBJ_txt2obj(*(++argv), 0))) {
|
||||
if (!(objtmp = OBJ_txt2obj(*(++argv), 0)))
|
||||
{
|
||||
BIO_printf(bio_err,
|
||||
"Invalid trust object value %s\n", *argv);
|
||||
goto bad;
|
||||
}
|
||||
if(!trust) trust = sk_ASN1_OBJECT_new_null();
|
||||
}
|
||||
if (!trust) trust = sk_ASN1_OBJECT_new_null();
|
||||
sk_ASN1_OBJECT_push(trust, objtmp);
|
||||
trustout = 1;
|
||||
}
|
||||
else if (strcmp(*argv,"-addreject") == 0)
|
||||
{
|
||||
if (--argc < 1) goto bad;
|
||||
if(!(objtmp = OBJ_txt2obj(*(++argv), 0))) {
|
||||
if (!(objtmp = OBJ_txt2obj(*(++argv), 0)))
|
||||
{
|
||||
BIO_printf(bio_err,
|
||||
"Invalid reject object value %s\n", *argv);
|
||||
goto bad;
|
||||
}
|
||||
if(!reject) reject = sk_ASN1_OBJECT_new_null();
|
||||
}
|
||||
if (!reject) reject = sk_ASN1_OBJECT_new_null();
|
||||
sk_ASN1_OBJECT_push(reject, objtmp);
|
||||
trustout = 1;
|
||||
}
|
||||
|
@ -321,7 +323,7 @@ int MAIN(int argc, char **argv)
|
|||
else if (strcmp(*argv,"-nameopt") == 0)
|
||||
{
|
||||
if (--argc < 1) goto bad;
|
||||
if(!set_name_ex(&nmflag, *(++argv))) goto bad;
|
||||
if (!set_name_ex(&nmflag, *(++argv))) goto bad;
|
||||
}
|
||||
else if (strcmp(*argv,"-setalias") == 0)
|
||||
{
|
||||
|
@ -417,10 +419,11 @@ bad:
|
|||
|
||||
ERR_load_crypto_strings();
|
||||
|
||||
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");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (!X509_STORE_set_default_paths(ctx))
|
||||
{
|
||||
|
@ -436,10 +439,12 @@ bad:
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (extfile) {
|
||||
if (extfile)
|
||||
{
|
||||
long errorline;
|
||||
X509V3_CTX ctx2;
|
||||
if (!(extconf=CONF_load(NULL,extfile,&errorline))) {
|
||||
if (!(extconf=CONF_load(NULL,extfile,&errorline)))
|
||||
{
|
||||
if (errorline <= 0)
|
||||
BIO_printf(bio_err,
|
||||
"error loading the config file '%s'\n",
|
||||
|
@ -449,19 +454,20 @@ bad:
|
|||
"error on line %ld of config file '%s'\n"
|
||||
,errorline,extfile);
|
||||
goto end;
|
||||
}
|
||||
if(!extsect && !(extsect = CONF_get_string(extconf, "default",
|
||||
}
|
||||
if (!extsect && !(extsect = CONF_get_string(extconf, "default",
|
||||
"extensions"))) extsect = "default";
|
||||
X509V3_set_ctx_test(&ctx2);
|
||||
X509V3_set_conf_lhash(&ctx2, extconf);
|
||||
if(!X509V3_EXT_add_conf(extconf, &ctx2, extsect, NULL)) {
|
||||
if (!X509V3_EXT_add_conf(extconf, &ctx2, extsect, NULL))
|
||||
{
|
||||
BIO_printf(bio_err,
|
||||
"Error Loading extension section %s\n",
|
||||
extsect);
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (reqfile)
|
||||
|
@ -581,24 +587,28 @@ bad:
|
|||
}
|
||||
}
|
||||
|
||||
if(alias) X509_alias_set1(x, (unsigned char *)alias, -1);
|
||||
if (alias) X509_alias_set1(x, (unsigned char *)alias, -1);
|
||||
|
||||
if(clrtrust) X509_trust_clear(x);
|
||||
if(clrreject) X509_reject_clear(x);
|
||||
if (clrtrust) X509_trust_clear(x);
|
||||
if (clrreject) X509_reject_clear(x);
|
||||
|
||||
if(trust) {
|
||||
for(i = 0; i < sk_ASN1_OBJECT_num(trust); i++) {
|
||||
if (trust)
|
||||
{
|
||||
for (i = 0; i < sk_ASN1_OBJECT_num(trust); i++)
|
||||
{
|
||||
objtmp = sk_ASN1_OBJECT_value(trust, i);
|
||||
X509_add1_trust_object(x, objtmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(reject) {
|
||||
for(i = 0; i < sk_ASN1_OBJECT_num(reject); i++) {
|
||||
if (reject)
|
||||
{
|
||||
for (i = 0; i < sk_ASN1_OBJECT_num(reject); i++)
|
||||
{
|
||||
objtmp = sk_ASN1_OBJECT_value(reject, i);
|
||||
X509_add1_reject_object(x, objtmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (num)
|
||||
{
|
||||
|
@ -611,7 +621,7 @@ bad:
|
|||
}
|
||||
else if (subject == i)
|
||||
{
|
||||
print_name(STDout, "issuer= ",
|
||||
print_name(STDout, "subject= ",
|
||||
X509_get_subject_name(x), nmflag);
|
||||
}
|
||||
else if (serial == i)
|
||||
|
@ -625,7 +635,7 @@ bad:
|
|||
int j;
|
||||
STACK *emlst;
|
||||
emlst = X509_get1_email(x);
|
||||
for(j = 0; j < sk_num(emlst); j++)
|
||||
for (j = 0; j < sk_num(emlst); j++)
|
||||
BIO_printf(STDout, "%s\n", sk_value(emlst, j));
|
||||
X509_email_free(emlst);
|
||||
}
|
||||
|
@ -633,7 +643,7 @@ bad:
|
|||
{
|
||||
unsigned char *alstr;
|
||||
alstr = X509_alias_get0(x, NULL);
|
||||
if(alstr) BIO_printf(STDout,"%s\n", alstr);
|
||||
if (alstr) BIO_printf(STDout,"%s\n", alstr);
|
||||
else BIO_puts(STDout,"<No Alias>\n");
|
||||
}
|
||||
else if (hash == i)
|
||||
|
@ -645,7 +655,7 @@ bad:
|
|||
X509_PURPOSE *ptmp;
|
||||
int j;
|
||||
BIO_printf(STDout, "Certificate purposes:\n");
|
||||
for(j = 0; j < X509_PURPOSE_get_count(); j++)
|
||||
for (j = 0; j < X509_PURPOSE_get_count(); j++)
|
||||
{
|
||||
ptmp = X509_PURPOSE_get0(j);
|
||||
purpose_print(STDout, x, ptmp);
|
||||
|
@ -863,12 +873,11 @@ bad:
|
|||
}
|
||||
}
|
||||
|
||||
if(checkend)
|
||||
if (checkend)
|
||||
{
|
||||
time_t t=ASN1_UTCTIME_get(X509_get_notAfter(x));
|
||||
time_t tnow=time(NULL);
|
||||
|
||||
if(tnow+checkoffset > t)
|
||||
if (ASN1_UTCTIME_cmp_time_t(X509_get_notAfter(x), tnow+checkoffset) == -1)
|
||||
{
|
||||
BIO_printf(out,"Certificate will expire\n");
|
||||
ret=1;
|
||||
|
@ -889,10 +898,12 @@ bad:
|
|||
|
||||
if (outformat == FORMAT_ASN1)
|
||||
i=i2d_X509_bio(out,x);
|
||||
else if (outformat == FORMAT_PEM) {
|
||||
if(trustout) i=PEM_write_bio_X509_AUX(out,x);
|
||||
else if (outformat == FORMAT_PEM)
|
||||
{
|
||||
if (trustout) i=PEM_write_bio_X509_AUX(out,x);
|
||||
else i=PEM_write_bio_X509(out,x);
|
||||
} else if (outformat == FORMAT_NETSCAPE)
|
||||
}
|
||||
else if (outformat == FORMAT_NETSCAPE)
|
||||
{
|
||||
ASN1_HEADER ah;
|
||||
ASN1_OCTET_STRING os;
|
||||
|
@ -910,7 +921,8 @@ bad:
|
|||
BIO_printf(bio_err,"bad output format specified for outfile\n");
|
||||
goto end;
|
||||
}
|
||||
if (!i) {
|
||||
if (!i)
|
||||
{
|
||||
BIO_printf(bio_err,"unable to write certificate\n");
|
||||
ERR_print_errors(bio_err);
|
||||
goto end;
|
||||
|
@ -932,7 +944,7 @@ end:
|
|||
X509_REQ_free(rq);
|
||||
sk_ASN1_OBJECT_pop_free(trust, ASN1_OBJECT_free);
|
||||
sk_ASN1_OBJECT_pop_free(reject, ASN1_OBJECT_free);
|
||||
if(passin) OPENSSL_free(passin);
|
||||
if (passin) OPENSSL_free(passin);
|
||||
EXIT(ret);
|
||||
}
|
||||
|
||||
|
@ -1059,17 +1071,19 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
|
|||
if (X509_gmtime_adj(X509_get_notAfter(x),(long)60*60*24*days) == NULL)
|
||||
goto end;
|
||||
|
||||
if(clrext) {
|
||||
while(X509_get_ext_count(x) > 0) X509_delete_ext(x, 0);
|
||||
}
|
||||
if (clrext)
|
||||
{
|
||||
while (X509_get_ext_count(x) > 0) X509_delete_ext(x, 0);
|
||||
}
|
||||
|
||||
if(conf) {
|
||||
if (conf)
|
||||
{
|
||||
X509V3_CTX ctx2;
|
||||
X509_set_version(x,2); /* version 3 certificate */
|
||||
X509V3_set_ctx(&ctx2, xca, x, NULL, NULL, 0);
|
||||
X509V3_set_conf_lhash(&ctx2, conf);
|
||||
if(!X509V3_EXT_add_conf(conf, &ctx2, section, x)) goto end;
|
||||
}
|
||||
if (!X509V3_EXT_add_conf(conf, &ctx2, section, x)) goto end;
|
||||
}
|
||||
|
||||
if (!X509_sign(x,pkey,digest)) goto end;
|
||||
ret=1;
|
||||
|
@ -1081,7 +1095,7 @@ end:
|
|||
if (bs != NULL) ASN1_INTEGER_free(bs);
|
||||
if (io != NULL) BIO_free(io);
|
||||
if (serial != NULL) BN_free(serial);
|
||||
return(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int MS_CALLBACK callb(int ok, X509_STORE_CTX *ctx)
|
||||
|
@ -1094,7 +1108,7 @@ static int MS_CALLBACK callb(int ok, X509_STORE_CTX *ctx)
|
|||
* final ok == 1 calls to this function */
|
||||
err=X509_STORE_CTX_get_error(ctx);
|
||||
if (err == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT)
|
||||
return(1);
|
||||
return 1;
|
||||
|
||||
/* BAD we should have gotten an error. Normally if everything
|
||||
* worked X509_STORE_CTX_get_error(ctx) will still be set to
|
||||
|
@ -1102,7 +1116,7 @@ static int MS_CALLBACK callb(int ok, X509_STORE_CTX *ctx)
|
|||
if (ok)
|
||||
{
|
||||
BIO_printf(bio_err,"error with certificate to be certified - should be self signed\n");
|
||||
return(0);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1111,7 +1125,7 @@ static int MS_CALLBACK callb(int ok, X509_STORE_CTX *ctx)
|
|||
BIO_printf(bio_err,"error with certificate - error %d at depth %d\n%s\n",
|
||||
err,X509_STORE_CTX_get_error_depth(ctx),
|
||||
X509_verify_cert_error_string(err));
|
||||
return(1);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1138,21 +1152,23 @@ static int sign(X509 *x, EVP_PKEY *pkey, int days, int clrext, const EVP_MD *dig
|
|||
goto err;
|
||||
|
||||
if (!X509_set_pubkey(x,pkey)) goto err;
|
||||
if(clrext) {
|
||||
while(X509_get_ext_count(x) > 0) X509_delete_ext(x, 0);
|
||||
}
|
||||
if(conf) {
|
||||
if (clrext)
|
||||
{
|
||||
while (X509_get_ext_count(x) > 0) X509_delete_ext(x, 0);
|
||||
}
|
||||
if (conf)
|
||||
{
|
||||
X509V3_CTX ctx;
|
||||
X509_set_version(x,2); /* version 3 certificate */
|
||||
X509V3_set_ctx(&ctx, x, x, NULL, NULL, 0);
|
||||
X509V3_set_conf_lhash(&ctx, conf);
|
||||
if(!X509V3_EXT_add_conf(conf, &ctx, section, x)) goto err;
|
||||
}
|
||||
if (!X509V3_EXT_add_conf(conf, &ctx, section, x)) goto err;
|
||||
}
|
||||
if (!X509_sign(x,pkey,digest)) goto err;
|
||||
return(1);
|
||||
return 1;
|
||||
err:
|
||||
ERR_print_errors(bio_err);
|
||||
return(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt)
|
||||
|
@ -1161,13 +1177,14 @@ static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt)
|
|||
char *pname;
|
||||
id = X509_PURPOSE_get_id(pt);
|
||||
pname = X509_PURPOSE_get0_name(pt);
|
||||
for(i = 0; i < 2; i++) {
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
idret = X509_check_purpose(cert, id, i);
|
||||
BIO_printf(bio, "%s%s : ", pname, i ? " CA" : "");
|
||||
if(idret == 1) BIO_printf(bio, "Yes\n");
|
||||
if (idret == 1) BIO_printf(bio, "Yes\n");
|
||||
else if (idret == 0) BIO_printf(bio, "No\n");
|
||||
else BIO_printf(bio, "Yes (WARNING code=%d)\n", idret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
33
config
33
config
|
@ -181,11 +181,11 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||
|
||||
QNX:*)
|
||||
case "$VERSION" in
|
||||
423)
|
||||
echo "${MACHINE}-qssl-qnx32"
|
||||
4*)
|
||||
echo "${MACHINE}-whatever-qnx4"
|
||||
;;
|
||||
*)
|
||||
echo "${MACHINE}-qssl-qnx"
|
||||
echo "${MACHINE}-whatever-qnx"
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
|
@ -200,7 +200,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||
;;
|
||||
|
||||
SunOS:5.*)
|
||||
echo "${MACHINE}-sun-solaris2"; exit 0
|
||||
echo "${MACHINE}-whatever-solaris2"; exit 0
|
||||
;;
|
||||
|
||||
SunOS:*)
|
||||
|
@ -292,8 +292,6 @@ TEST="false"
|
|||
for i
|
||||
do
|
||||
case "$i" in
|
||||
# shared library support (behnke@trustcenter.de)
|
||||
-shared) SHARED=true;;
|
||||
-d*) PREFIX="debug-";;
|
||||
-t*) TEST="true";;
|
||||
-h*) TEST="true"; cat <<EOF
|
||||
|
@ -431,7 +429,7 @@ case "$GUESSOS" in
|
|||
arm*-*-linux2) OUT="linux-elf-arm" ;;
|
||||
*-*-linux2) OUT="linux-elf" ;;
|
||||
*-*-linux1) OUT="linux-aout" ;;
|
||||
sun4u*-sun-solaris2)
|
||||
sun4u*-*-solaris2)
|
||||
ISA64=`(isalist) 2>/dev/null | grep sparcv9`
|
||||
if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then
|
||||
echo "WARNING! If you wish to build 64-bit library, then you have to"
|
||||
|
@ -440,10 +438,10 @@ case "$GUESSOS" in
|
|||
read waste < /dev/tty
|
||||
fi
|
||||
OUT="solaris-sparcv9-$CC" ;;
|
||||
sun4m-sun-solaris2) OUT="solaris-sparcv8-$CC" ;;
|
||||
sun4d-sun-solaris2) OUT="solaris-sparcv8-$CC" ;;
|
||||
sun4*-sun-solaris2) OUT="solaris-sparcv7-$CC" ;;
|
||||
*86*-sun-solaris2) OUT="solaris-x86-$CC" ;;
|
||||
sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
|
||||
sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
|
||||
sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;;
|
||||
*86*-*-solaris2) OUT="solaris-x86-$CC" ;;
|
||||
*-*-sunos4) OUT="sunos-$CC" ;;
|
||||
alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;;
|
||||
*-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
|
||||
|
@ -511,17 +509,6 @@ then
|
|||
sleep 5
|
||||
OUT=linux-sparcv8
|
||||
fi
|
||||
# To start with $OUT is never i86pc-sun-solaris2. Secondly why
|
||||
# ban *all* assembler implementation if it can't stand only one,
|
||||
# SHA-0 implementation.
|
||||
#if [ "$OUT" = "i86pc-sun-solaris2" ]
|
||||
#then
|
||||
# ASM=`as -V /dev/null 2>&1`
|
||||
# case "$ASM" in
|
||||
# GNU*) ;;
|
||||
# *) options="$options no-asm" ; echo "WARNING: You need the GNU assembler to use OpenSSL assembler code." ; echo "Sun as is not supported on Solaris x86." ;;
|
||||
# esac
|
||||
#fi
|
||||
|
||||
case "$GUESSOS" in
|
||||
i386-*) options="$options 386" ;;
|
||||
|
@ -577,7 +564,7 @@ OUT="$PREFIX$OUT"
|
|||
|
||||
$PERL ./Configure LIST | grep "$OUT" > /dev/null
|
||||
if [ $? = "0" ]; then
|
||||
echo Configuring for $OUT
|
||||
#echo Configuring for $OUT
|
||||
|
||||
if [ "$TEST" = "true" ]; then
|
||||
echo $PERL ./Configure $OUT $options
|
||||
|
|
|
@ -39,7 +39,7 @@ LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdi
|
|||
|
||||
SRC= $(LIBSRC)
|
||||
|
||||
EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h
|
||||
EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h symhacks.h
|
||||
HEADER= cryptlib.h buildinf.h md32_common.h $(EXHEADER)
|
||||
|
||||
ALL= $(GENERAL) $(SRC) $(HEADER)
|
||||
|
@ -158,40 +158,42 @@ dclean:
|
|||
cpt_err.o: ../include/openssl/bio.h ../include/openssl/crypto.h
|
||||
cpt_err.o: ../include/openssl/err.h ../include/openssl/lhash.h
|
||||
cpt_err.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||
cpt_err.o: ../include/openssl/stack.h
|
||||
cpt_err.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
||||
cryptlib.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||
cryptlib.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||
cryptlib.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||
cryptlib.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
||||
cryptlib.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||
cryptlib.o: ../include/openssl/stack.h cryptlib.h
|
||||
cryptlib.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h
|
||||
cversion.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||
cversion.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||
cversion.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||
cversion.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
||||
cversion.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||
cversion.o: ../include/openssl/stack.h buildinf.h cryptlib.h
|
||||
cversion.o: ../include/openssl/stack.h ../include/openssl/symhacks.h buildinf.h
|
||||
cversion.o: cryptlib.h
|
||||
ex_data.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||
ex_data.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||
ex_data.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||
ex_data.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
||||
ex_data.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||
ex_data.o: ../include/openssl/stack.h cryptlib.h
|
||||
ex_data.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h
|
||||
mem.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||
mem.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||
mem.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||
mem.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
||||
mem.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||
mem.o: ../include/openssl/stack.h cryptlib.h
|
||||
mem.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h
|
||||
mem_dbg.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||
mem_dbg.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||
mem_dbg.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||
mem_dbg.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
||||
mem_dbg.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||
mem_dbg.o: ../include/openssl/stack.h cryptlib.h
|
||||
mem_dbg.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h
|
||||
tmdiff.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||
tmdiff.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||
tmdiff.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||
tmdiff.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
|
||||
tmdiff.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
|
||||
tmdiff.o: ../include/openssl/stack.h ../include/openssl/tmdiff.h cryptlib.h
|
||||
tmdiff.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
|
||||
tmdiff.o: ../include/openssl/tmdiff.h cryptlib.h
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -236,10 +236,10 @@ int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value)
|
|||
else
|
||||
c=(unsigned char *)OPENSSL_realloc(a->data,w+1);
|
||||
if (c == NULL) return(0);
|
||||
if (w+1-a->length > 0) memset(c+a->length, 0, w+1-a->length);
|
||||
a->data=c;
|
||||
a->length=w+1;
|
||||
c[w]=0;
|
||||
}
|
||||
}
|
||||
a->data[w]=((a->data[w])&iv)|v;
|
||||
while ((a->length > 0) && (a->data[a->length-1] == 0))
|
||||
a->length--;
|
||||
|
|
|
@ -79,7 +79,7 @@ int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a, unsigned char **pp)
|
|||
len = i2c_ASN1_INTEGER(a, NULL);
|
||||
ret=ASN1_object_size(0,len,V_ASN1_ENUMERATED);
|
||||
if(pp) {
|
||||
ASN1_put_object(pp,0,ret,V_ASN1_ENUMERATED,V_ASN1_UNIVERSAL);
|
||||
ASN1_put_object(pp,0,len,V_ASN1_ENUMERATED,V_ASN1_UNIVERSAL);
|
||||
i2c_ASN1_INTEGER(a, pp);
|
||||
}
|
||||
return ret;
|
||||
|
@ -219,6 +219,6 @@ BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn)
|
|||
|
||||
if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
|
||||
ASN1err(ASN1_F_ASN1_ENUMERATED_TO_BN,ASN1_R_BN_LIB);
|
||||
if(ai->type == V_ASN1_NEG_ENUMERATED) bn->neg = 1;
|
||||
else if(ai->type == V_ASN1_NEG_ENUMERATED) ret->neg = 1;
|
||||
return(ret);
|
||||
}
|
||||
|
|
|
@ -465,7 +465,7 @@ BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn)
|
|||
|
||||
if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
|
||||
ASN1err(ASN1_F_ASN1_INTEGER_TO_BN,ASN1_R_BN_LIB);
|
||||
if(ai->type == V_ASN1_NEG_INTEGER) bn->neg = 1;
|
||||
else if(ai->type == V_ASN1_NEG_INTEGER) ret->neg = 1;
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
|
|||
{
|
||||
int str_type;
|
||||
int ret;
|
||||
char free_out;
|
||||
int outform, outlen;
|
||||
ASN1_STRING *dest;
|
||||
unsigned char *p;
|
||||
|
@ -180,6 +181,7 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
|
|||
}
|
||||
if(!out) return str_type;
|
||||
if(*out) {
|
||||
free_out = 0;
|
||||
dest = *out;
|
||||
if(dest->data) {
|
||||
dest->length = 0;
|
||||
|
@ -188,6 +190,7 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
|
|||
}
|
||||
dest->type = str_type;
|
||||
} else {
|
||||
free_out = 1;
|
||||
dest = ASN1_STRING_type_new(str_type);
|
||||
if(!dest) {
|
||||
ASN1err(ASN1_F_ASN1_MBSTRING_COPY,
|
||||
|
@ -229,7 +232,7 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
|
|||
break;
|
||||
}
|
||||
if(!(p = OPENSSL_malloc(outlen + 1))) {
|
||||
ASN1_STRING_free(dest);
|
||||
if(free_out) ASN1_STRING_free(dest);
|
||||
ASN1err(ASN1_F_ASN1_MBSTRING_COPY,ERR_R_MALLOC_FAILURE);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -65,11 +65,12 @@
|
|||
int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp)
|
||||
{
|
||||
unsigned char *p;
|
||||
int objsize;
|
||||
|
||||
if ((a == NULL) || (a->data == NULL)) return(0);
|
||||
|
||||
if (pp == NULL)
|
||||
return(ASN1_object_size(0,a->length,V_ASN1_OBJECT));
|
||||
objsize = ASN1_object_size(0,a->length,V_ASN1_OBJECT);
|
||||
if (pp == NULL) return objsize;
|
||||
|
||||
p= *pp;
|
||||
ASN1_put_object(&p,0,a->length,V_ASN1_OBJECT,V_ASN1_UNIVERSAL);
|
||||
|
@ -77,7 +78,7 @@ int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp)
|
|||
p+=a->length;
|
||||
|
||||
*pp=p;
|
||||
return(a->length);
|
||||
return(objsize);
|
||||
}
|
||||
|
||||
int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num)
|
||||
|
|
|
@ -96,7 +96,7 @@ int send_bio_chars(void *arg, const void *buf, int len)
|
|||
int send_fp_chars(void *arg, const void *buf, int len)
|
||||
{
|
||||
if(!arg) return 1;
|
||||
if(fwrite(buf, 1, len, arg) != len) return 0;
|
||||
if(fwrite(buf, 1, len, arg) != (unsigned int)len) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -123,7 +123,7 @@ static int do_esc_char(unsigned long c, unsigned char flags, char *do_quotes, ch
|
|||
if(!io_ch(arg, tmphex, 6)) return -1;
|
||||
return 6;
|
||||
}
|
||||
chtmp = c;
|
||||
chtmp = (unsigned char)c;
|
||||
if(chtmp > 0x7f) chflgs = flags & ASN1_STRFLGS_ESC_MSB;
|
||||
else chflgs = char_type[chtmp] & flags;
|
||||
if(chflgs & CHARTYPE_BS_ESC) {
|
||||
|
@ -200,12 +200,12 @@ static int do_buf(unsigned char *buf, int buflen,
|
|||
* otherwise each character will be > 0x7f and so the
|
||||
* character will never be escaped on first and last.
|
||||
*/
|
||||
len = do_esc_char(utfbuf[i], flags | orflags, quotes, io_ch, arg);
|
||||
len = do_esc_char(utfbuf[i], (unsigned char)(flags | orflags), quotes, io_ch, arg);
|
||||
if(len < 0) return -1;
|
||||
outlen += len;
|
||||
}
|
||||
} else {
|
||||
len = do_esc_char(c, flags | orflags, quotes, io_ch, arg);
|
||||
len = do_esc_char(c, (unsigned char)(flags | orflags), quotes, io_ch, arg);
|
||||
if(len < 0) return -1;
|
||||
outlen += len;
|
||||
}
|
||||
|
@ -304,7 +304,7 @@ static int do_print_ex(char_io *io_ch, void *arg, unsigned long lflags, ASN1_STR
|
|||
unsigned char flags;
|
||||
quotes = 0;
|
||||
/* Keep a copy of escape flags */
|
||||
flags = lflags & ESC_FLAGS;
|
||||
flags = (unsigned char)(lflags & ESC_FLAGS);
|
||||
|
||||
type = str->type;
|
||||
|
||||
|
@ -509,3 +509,24 @@ int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags)
|
|||
{
|
||||
return do_print_ex(send_fp_chars, fp, flags, str);
|
||||
}
|
||||
|
||||
/* Utility function: convert any string type to UTF8, returns number of bytes
|
||||
* in output string or a negative error code
|
||||
*/
|
||||
|
||||
int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
|
||||
{
|
||||
ASN1_STRING stmp, *str = &stmp;
|
||||
int mbflag, type, ret;
|
||||
if(!*out || !in) return -1;
|
||||
type = in->type;
|
||||
if((type < 0) || (type > 30)) return -1;
|
||||
mbflag = tag2nbyte[type];
|
||||
if(mbflag == -1) return -1;
|
||||
mbflag |= MBSTRING_FLAG;
|
||||
stmp.data = NULL;
|
||||
ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
|
||||
if(ret < 0) return ret;
|
||||
if(out) *out = stmp.data;
|
||||
return stmp.length;
|
||||
}
|
||||
|
|
|
@ -265,6 +265,50 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
|
|||
return(s);
|
||||
}
|
||||
|
||||
|
||||
int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t)
|
||||
{
|
||||
struct tm *tm;
|
||||
int offset;
|
||||
int year;
|
||||
|
||||
#define g2(p) (((p)[0]-'0')*10+(p)[1]-'0')
|
||||
|
||||
if (s->data[12] == 'Z')
|
||||
offset=0;
|
||||
else
|
||||
{
|
||||
offset = g2(s->data+13)*60+g2(s->data+15);
|
||||
if (s->data[12] == '-')
|
||||
offset = -offset;
|
||||
}
|
||||
|
||||
t -= offset*60; /* FIXME: may overflow in extreme cases */
|
||||
|
||||
#if defined(THREADS) && !defined(WIN32)
|
||||
{ struct tm data; gmtime_r(&t, &data); tm = &data; }
|
||||
#else
|
||||
tm = gmtime(&t);
|
||||
#endif
|
||||
|
||||
#define return_cmp(a,b) if ((a)<(b)) return -1; else if ((a)>(b)) return 1
|
||||
year = g2(s->data);
|
||||
if (year < 50)
|
||||
year += 100;
|
||||
return_cmp(year, tm->tm_year);
|
||||
return_cmp(g2(s->data+2) - 1, tm->tm_mon);
|
||||
return_cmp(g2(s->data+4), tm->tm_mday);
|
||||
return_cmp(g2(s->data+6), tm->tm_hour);
|
||||
return_cmp(g2(s->data+8), tm->tm_min);
|
||||
return_cmp(g2(s->data+10), tm->tm_sec);
|
||||
#undef g2
|
||||
#undef return_cmp
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s)
|
||||
{
|
||||
struct tm tm;
|
||||
|
@ -300,3 +344,4 @@ time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s)
|
|||
* Also time_t is inappropriate for general
|
||||
* UTC times because it may a 32 bit type. */
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -655,7 +655,10 @@ ASN1_ENUMERATED *d2i_ASN1_ENUMERATED(ASN1_ENUMERATED **a,unsigned char **pp,
|
|||
int ASN1_UTCTIME_check(ASN1_UTCTIME *a);
|
||||
ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s,time_t t);
|
||||
int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, char *str);
|
||||
int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t);
|
||||
#if 0
|
||||
time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s);
|
||||
#endif
|
||||
|
||||
int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *a);
|
||||
ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,time_t t);
|
||||
|
@ -809,6 +812,8 @@ int ASN1_i2d_fp(int (*i2d)(),FILE *out,unsigned char *x);
|
|||
int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags);
|
||||
#endif
|
||||
|
||||
int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in);
|
||||
|
||||
#ifndef NO_BIO
|
||||
char *ASN1_d2i_bio(char *(*xnew)(),char *(*d2i)(),BIO *bp,unsigned char **x);
|
||||
int ASN1_i2d_bio(int (*i2d)(),BIO *out,unsigned char *x);
|
||||
|
|
|
@ -292,7 +292,7 @@ static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
|
|||
if (BIO_write(bp,"\n",1) <= 0)
|
||||
goto end;
|
||||
}
|
||||
if (BIO_dump_indent(bp,opp,
|
||||
if (BIO_dump_indent(bp,(char *)opp,
|
||||
((dump == -1 || dump > os->length)?os->length:dump),
|
||||
dump_indent) <= 0)
|
||||
goto end;
|
||||
|
@ -373,7 +373,7 @@ static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
|
|||
if (BIO_write(bp,"\n",1) <= 0)
|
||||
goto end;
|
||||
}
|
||||
if (BIO_dump_indent(bp,p,
|
||||
if (BIO_dump_indent(bp,(char *)p,
|
||||
((dump == -1 || dump > len)?len:dump),
|
||||
dump_indent) <= 0)
|
||||
goto end;
|
||||
|
|
|
@ -62,6 +62,8 @@
|
|||
#include <openssl/pkcs7.h>
|
||||
#include <openssl/objects.h>
|
||||
|
||||
#ifdef PKCS7_INDEFINITE_ENCODING
|
||||
|
||||
int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
|
||||
{
|
||||
M_ASN1_I2D_vars(a);
|
||||
|
@ -102,6 +104,7 @@ int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
|
|||
M_ASN1_I2D_len(a->d.encrypted,i2d_PKCS7_ENCRYPT);
|
||||
break;
|
||||
default:
|
||||
M_ASN1_I2D_len(a->d.other,i2d_ASN1_TYPE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -136,6 +139,7 @@ int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
|
|||
M_ASN1_I2D_put(a->d.encrypted,i2d_PKCS7_ENCRYPT);
|
||||
break;
|
||||
default:
|
||||
M_ASN1_I2D_put(a->d.other,i2d_ASN1_TYPE);
|
||||
break;
|
||||
}
|
||||
M_ASN1_I2D_INF_seq_end();
|
||||
|
@ -144,6 +148,98 @@ int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
|
|||
M_ASN1_I2D_finish();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
|
||||
{
|
||||
int explen = 0;
|
||||
M_ASN1_I2D_vars(a);
|
||||
|
||||
if (a->asn1 != NULL)
|
||||
{
|
||||
if (pp == NULL)
|
||||
return((int)a->length);
|
||||
memcpy(*pp,a->asn1,(int)a->length);
|
||||
*pp+=a->length;
|
||||
return((int)a->length);
|
||||
}
|
||||
|
||||
M_ASN1_I2D_len(a->type,i2d_ASN1_OBJECT);
|
||||
if (a->d.ptr != NULL)
|
||||
{
|
||||
/* Save current length */
|
||||
r = ret;
|
||||
switch (OBJ_obj2nid(a->type))
|
||||
{
|
||||
case NID_pkcs7_data:
|
||||
M_ASN1_I2D_len(a->d.data,i2d_ASN1_OCTET_STRING);
|
||||
break;
|
||||
case NID_pkcs7_signed:
|
||||
M_ASN1_I2D_len(a->d.sign,i2d_PKCS7_SIGNED);
|
||||
break;
|
||||
case NID_pkcs7_enveloped:
|
||||
M_ASN1_I2D_len(a->d.enveloped,i2d_PKCS7_ENVELOPE);
|
||||
break;
|
||||
case NID_pkcs7_signedAndEnveloped:
|
||||
M_ASN1_I2D_len(a->d.signed_and_enveloped,
|
||||
i2d_PKCS7_SIGN_ENVELOPE);
|
||||
break;
|
||||
case NID_pkcs7_digest:
|
||||
M_ASN1_I2D_len(a->d.digest,i2d_PKCS7_DIGEST);
|
||||
break;
|
||||
case NID_pkcs7_encrypted:
|
||||
M_ASN1_I2D_len(a->d.encrypted,i2d_PKCS7_ENCRYPT);
|
||||
break;
|
||||
default:
|
||||
M_ASN1_I2D_len(a->d.other,i2d_ASN1_TYPE);
|
||||
break;
|
||||
}
|
||||
/* Work out explicit tag content size */
|
||||
explen = ret - r;
|
||||
/* Work out explicit tag size: Note: ASN1_object_size
|
||||
* includes the content length.
|
||||
*/
|
||||
ret = r + ASN1_object_size(1, explen, 0);
|
||||
}
|
||||
|
||||
M_ASN1_I2D_seq_total();
|
||||
|
||||
M_ASN1_I2D_put(a->type,i2d_ASN1_OBJECT);
|
||||
|
||||
if (a->d.ptr != NULL)
|
||||
{
|
||||
ASN1_put_object(&p, 1, explen, 0, V_ASN1_CONTEXT_SPECIFIC);
|
||||
switch (OBJ_obj2nid(a->type))
|
||||
{
|
||||
case NID_pkcs7_data:
|
||||
M_ASN1_I2D_put(a->d.data,i2d_ASN1_OCTET_STRING);
|
||||
break;
|
||||
case NID_pkcs7_signed:
|
||||
M_ASN1_I2D_put(a->d.sign,i2d_PKCS7_SIGNED);
|
||||
break;
|
||||
case NID_pkcs7_enveloped:
|
||||
M_ASN1_I2D_put(a->d.enveloped,i2d_PKCS7_ENVELOPE);
|
||||
break;
|
||||
case NID_pkcs7_signedAndEnveloped:
|
||||
M_ASN1_I2D_put(a->d.signed_and_enveloped,
|
||||
i2d_PKCS7_SIGN_ENVELOPE);
|
||||
break;
|
||||
case NID_pkcs7_digest:
|
||||
M_ASN1_I2D_put(a->d.digest,i2d_PKCS7_DIGEST);
|
||||
break;
|
||||
case NID_pkcs7_encrypted:
|
||||
M_ASN1_I2D_put(a->d.encrypted,i2d_PKCS7_ENCRYPT);
|
||||
break;
|
||||
default:
|
||||
M_ASN1_I2D_put(a->d.other,i2d_ASN1_TYPE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
M_ASN1_I2D_finish();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
PKCS7 *d2i_PKCS7(PKCS7 **a, unsigned char **pp, long length)
|
||||
{
|
||||
M_ASN1_D2I_vars(a,PKCS7 *,PKCS7_new);
|
||||
|
@ -206,10 +302,8 @@ PKCS7 *d2i_PKCS7(PKCS7 **a, unsigned char **pp, long length)
|
|||
M_ASN1_D2I_get(ret->d.encrypted,d2i_PKCS7_ENCRYPT);
|
||||
break;
|
||||
default:
|
||||
c.error=ASN1_R_BAD_PKCS7_TYPE;
|
||||
c.line=__LINE__;
|
||||
goto err;
|
||||
/* break; */
|
||||
M_ASN1_D2I_get(ret->d.other,d2i_ASN1_TYPE);
|
||||
break;
|
||||
}
|
||||
if (Tinf == (1|V_ASN1_CONSTRUCTED))
|
||||
{
|
||||
|
@ -286,7 +380,7 @@ void PKCS7_content_free(PKCS7 *a)
|
|||
PKCS7_ENCRYPT_free(a->d.encrypted);
|
||||
break;
|
||||
default:
|
||||
/* MEMORY LEAK */
|
||||
ASN1_TYPE_free(a->d.other);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,6 +65,14 @@ int i2d_X509_REQ_INFO(X509_REQ_INFO *a, unsigned char **pp)
|
|||
{
|
||||
M_ASN1_I2D_vars(a);
|
||||
|
||||
if(a->asn1) {
|
||||
if(pp) {
|
||||
memcpy(*pp, a->asn1, a->length);
|
||||
*pp += a->length;
|
||||
}
|
||||
return a->length;
|
||||
}
|
||||
|
||||
M_ASN1_I2D_len(a->version, i2d_ASN1_INTEGER);
|
||||
M_ASN1_I2D_len(a->subject, i2d_X509_NAME);
|
||||
M_ASN1_I2D_len(a->pubkey, i2d_X509_PUBKEY);
|
||||
|
@ -152,6 +160,7 @@ X509_REQ_INFO *X509_REQ_INFO_new(void)
|
|||
M_ASN1_New(ret->pubkey,X509_PUBKEY_new);
|
||||
M_ASN1_New(ret->attributes,sk_X509_ATTRIBUTE_new_null);
|
||||
ret->req_kludge=0;
|
||||
ret->asn1 = NULL;
|
||||
return(ret);
|
||||
M_ASN1_New_Error(ASN1_F_X509_REQ_INFO_NEW);
|
||||
}
|
||||
|
@ -159,6 +168,7 @@ X509_REQ_INFO *X509_REQ_INFO_new(void)
|
|||
void X509_REQ_INFO_free(X509_REQ_INFO *a)
|
||||
{
|
||||
if (a == NULL) return;
|
||||
if(a->asn1) OPENSSL_free(a->asn1);
|
||||
M_ASN1_INTEGER_free(a->version);
|
||||
X509_NAME_free(a->subject);
|
||||
X509_PUBKEY_free(a->pubkey);
|
||||
|
@ -189,6 +199,17 @@ X509_REQ *d2i_X509_REQ(X509_REQ **a, unsigned char **pp, long length)
|
|||
M_ASN1_D2I_Init();
|
||||
M_ASN1_D2I_start_sequence();
|
||||
M_ASN1_D2I_get(ret->req_info,d2i_X509_REQ_INFO);
|
||||
|
||||
/* Keep a copy of the original encoding for signature checking */
|
||||
ret->req_info->length = c.p - c.q;
|
||||
if(!(ret->req_info->asn1 = OPENSSL_malloc(ret->req_info->length))) {
|
||||
c.line=__LINE__;
|
||||
c.error = ERR_R_MALLOC_FAILURE;
|
||||
goto err;
|
||||
}
|
||||
|
||||
memcpy(ret->req_info->asn1, c.q, ret->req_info->length);
|
||||
|
||||
M_ASN1_D2I_get(ret->sig_alg,d2i_X509_ALGOR);
|
||||
M_ASN1_D2I_get(ret->signature,d2i_ASN1_BIT_STRING);
|
||||
M_ASN1_D2I_Finish(a,X509_REQ_free,ASN1_F_D2I_X509_REQ);
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
#include <openssl/evp.h>
|
||||
#include <openssl/asn1_mac.h>
|
||||
#include <openssl/x509.h>
|
||||
#include <openssl/x509v3.h>
|
||||
|
||||
static int x509_meth_num = 0;
|
||||
static STACK_OF(CRYPTO_EX_DATA_FUNCS) *x509_meth = NULL;
|
||||
|
@ -114,11 +115,14 @@ X509 *X509_new(void)
|
|||
ASN1_CTX c;
|
||||
|
||||
M_ASN1_New_Malloc(ret,X509);
|
||||
ret->references=1;
|
||||
ret->valid=0;
|
||||
ret->references=1;
|
||||
ret->name = NULL;
|
||||
ret->ex_flags = 0;
|
||||
ret->name=NULL;
|
||||
ret->aux=NULL;
|
||||
ret->ex_pathlen = -1;
|
||||
ret->skid = NULL;
|
||||
ret->akid = NULL;
|
||||
ret->aux = NULL;
|
||||
M_ASN1_New(ret->cert_info,X509_CINF_new);
|
||||
M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
|
||||
M_ASN1_New(ret->signature,M_ASN1_BIT_STRING_new);
|
||||
|
@ -151,6 +155,8 @@ void X509_free(X509 *a)
|
|||
X509_ALGOR_free(a->sig_alg);
|
||||
M_ASN1_BIT_STRING_free(a->signature);
|
||||
X509_CERT_AUX_free(a->aux);
|
||||
ASN1_OCTET_STRING_free(a->skid);
|
||||
AUTHORITY_KEYID_free(a->akid);
|
||||
|
||||
if (a->name != NULL) OPENSSL_free(a->name);
|
||||
OPENSSL_free(a);
|
||||
|
|
|
@ -91,19 +91,22 @@ b_dump.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
|||
b_dump.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
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/stack.h ../cryptlib.h
|
||||
b_dump.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
b_dump.o: ../cryptlib.h
|
||||
b_print.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
b_print.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
b_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
b_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
b_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
b_print.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
b_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
b_print.o: ../cryptlib.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/e_os2.h ../../include/openssl/err.h
|
||||
b_sock.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
b_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
b_sock.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
b_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
b_sock.o: ../cryptlib.h
|
||||
bf_buff.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
bf_buff.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
bf_buff.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -112,14 +115,15 @@ bf_buff.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
bf_buff.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bf_buff.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
bf_buff.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
bf_buff.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
bf_buff.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
bf_buff.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
bf_buff.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h
|
||||
bf_buff.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
bf_buff.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
bf_buff.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
bf_buff.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bf_buff.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
bf_buff.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
bf_buff.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
bf_buff.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bf_buff.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
bf_buff.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
bf_buff.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
bf_buff.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
bf_buff.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
bf_nbio.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
bf_nbio.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
bf_nbio.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -128,14 +132,15 @@ bf_nbio.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
bf_nbio.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bf_nbio.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
bf_nbio.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
bf_nbio.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
bf_nbio.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
bf_nbio.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
bf_nbio.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
bf_nbio.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
bf_nbio.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
bf_nbio.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
bf_nbio.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
bf_nbio.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
bf_nbio.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
bf_nbio.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
bf_nbio.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bf_nbio.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
bf_nbio.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
bf_nbio.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
bf_nbio.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
bf_nbio.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bf_nbio.o: ../cryptlib.h
|
||||
bf_null.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
bf_null.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
|
@ -145,80 +150,92 @@ bf_null.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
bf_null.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bf_null.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
bf_null.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
bf_null.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
bf_null.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
bf_null.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
bf_null.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h
|
||||
bf_null.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
bf_null.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
bf_null.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
bf_null.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bf_null.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
bf_null.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
bf_null.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
bf_null.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bf_null.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
bf_null.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
bf_null.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
bf_null.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
bf_null.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
bio_cb.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bio_cb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bio_cb.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bio_cb.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bio_cb.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bio_cb.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bio_cb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bio_cb.o: ../cryptlib.h
|
||||
bio_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
|
||||
bio_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bio_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bio_err.o: ../../include/openssl/stack.h
|
||||
bio_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bio_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bio_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bio_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bio_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bio_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bio_lib.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bio_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bio_lib.o: ../cryptlib.h
|
||||
bss_acpt.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_acpt.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_acpt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_acpt.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_acpt.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_acpt.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bss_acpt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_acpt.o: ../cryptlib.h
|
||||
bss_bio.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
|
||||
bss_bio.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bss_bio.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bss_bio.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bss_bio.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bss_bio.o: ../../include/openssl/symhacks.h
|
||||
bss_conn.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_conn.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_conn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_conn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_conn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_conn.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bss_conn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_conn.o: ../cryptlib.h
|
||||
bss_fd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_fd.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_fd.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_fd.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_fd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_fd.o: ../../include/openssl/stack.h ../cryptlib.h bss_sock.c
|
||||
bss_fd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_fd.o: ../cryptlib.h bss_sock.c
|
||||
bss_file.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_file.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_file.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_file.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_file.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_file.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bss_file.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_file.o: ../cryptlib.h
|
||||
bss_log.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_log.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_log.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_log.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_log.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_log.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bss_log.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_log.o: ../cryptlib.h
|
||||
bss_mem.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_mem.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_mem.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_mem.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bss_mem.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_mem.o: ../cryptlib.h
|
||||
bss_null.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_null.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_null.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bss_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_null.o: ../cryptlib.h
|
||||
bss_sock.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
bss_sock.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
bss_sock.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
bss_sock.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bss_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bss_sock.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
bss_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bss_sock.o: ../cryptlib.h
|
||||
|
|
|
@ -74,72 +74,79 @@ int BIO_dump(BIO *bio, const char *s, int len)
|
|||
}
|
||||
|
||||
int BIO_dump_indent(BIO *bio, const char *s, int len, int indent)
|
||||
{
|
||||
int ret=0;
|
||||
char buf[288+1],tmp[20],str[128+1];
|
||||
int i,j,rows,trunc;
|
||||
unsigned char ch;
|
||||
int dump_width;
|
||||
|
||||
trunc=0;
|
||||
|
||||
{
|
||||
int ret=0;
|
||||
char buf[288+1],tmp[20],str[128+1];
|
||||
int i,j,rows,trunc;
|
||||
unsigned char ch;
|
||||
int dump_width;
|
||||
|
||||
trunc=0;
|
||||
|
||||
#ifdef TRUNCATE
|
||||
for(; (len > 0) && ((s[len-1] == ' ') || (s[len-1] == '\0')); len--)
|
||||
trunc++;
|
||||
for(; (len > 0) && ((s[len-1] == ' ') || (s[len-1] == '\0')); len--)
|
||||
trunc++;
|
||||
#endif
|
||||
|
||||
if (indent < 0)
|
||||
indent = 0;
|
||||
if (indent) {
|
||||
if (indent > 128) indent=128;
|
||||
memset(str,' ',indent);
|
||||
}
|
||||
str[indent]='\0';
|
||||
|
||||
dump_width=DUMP_WIDTH_LESS_INDENT(indent);
|
||||
rows=(len/dump_width);
|
||||
if ((rows*dump_width)<len)
|
||||
rows++;
|
||||
for(i=0;i<rows;i++) {
|
||||
buf[0]='\0'; /* start with empty string */
|
||||
strcpy(buf,str);
|
||||
sprintf(tmp,"%04x - ",i*dump_width);
|
||||
strcat(buf,tmp);
|
||||
for(j=0;j<dump_width;j++) {
|
||||
if (((i*dump_width)+j)>=len) {
|
||||
strcat(buf," ");
|
||||
} else {
|
||||
ch=((unsigned char)*(s+i*dump_width+j)) & 0xff;
|
||||
sprintf(tmp,"%02x%c",ch,j==7?'-':' ');
|
||||
strcat(buf,tmp);
|
||||
}
|
||||
}
|
||||
strcat(buf," ");
|
||||
for(j=0;j<dump_width;j++) {
|
||||
if (((i*dump_width)+j)>=len)
|
||||
break;
|
||||
ch=((unsigned char)*(s+i*dump_width+j)) & 0xff;
|
||||
if (indent < 0)
|
||||
indent = 0;
|
||||
if (indent)
|
||||
{
|
||||
if (indent > 128) indent=128;
|
||||
memset(str,' ',indent);
|
||||
}
|
||||
str[indent]='\0';
|
||||
|
||||
dump_width=DUMP_WIDTH_LESS_INDENT(indent);
|
||||
rows=(len/dump_width);
|
||||
if ((rows*dump_width)<len)
|
||||
rows++;
|
||||
for(i=0;i<rows;i++)
|
||||
{
|
||||
buf[0]='\0'; /* start with empty string */
|
||||
strcpy(buf,str);
|
||||
sprintf(tmp,"%04x - ",i*dump_width);
|
||||
strcat(buf,tmp);
|
||||
for(j=0;j<dump_width;j++)
|
||||
{
|
||||
if (((i*dump_width)+j)>=len)
|
||||
{
|
||||
strcat(buf," ");
|
||||
}
|
||||
else
|
||||
{
|
||||
ch=((unsigned char)*(s+i*dump_width+j)) & 0xff;
|
||||
sprintf(tmp,"%02x%c",ch,j==7?'-':' ');
|
||||
strcat(buf,tmp);
|
||||
}
|
||||
}
|
||||
strcat(buf," ");
|
||||
for(j=0;j<dump_width;j++)
|
||||
{
|
||||
if (((i*dump_width)+j)>=len)
|
||||
break;
|
||||
ch=((unsigned char)*(s+i*dump_width+j)) & 0xff;
|
||||
#ifndef CHARSET_EBCDIC
|
||||
sprintf(tmp,"%c",((ch>=' ')&&(ch<='~'))?ch:'.');
|
||||
sprintf(tmp,"%c",((ch>=' ')&&(ch<='~'))?ch:'.');
|
||||
#else
|
||||
sprintf(tmp,"%c",((ch>=os_toascii[' '])&&(ch<=os_toascii['~']))
|
||||
? os_toebcdic[ch]
|
||||
: '.');
|
||||
sprintf(tmp,"%c",((ch>=os_toascii[' '])&&(ch<=os_toascii['~']))
|
||||
? os_toebcdic[ch]
|
||||
: '.');
|
||||
#endif
|
||||
strcat(buf,tmp);
|
||||
}
|
||||
strcat(buf,"\n");
|
||||
/* if this is the last call then update the ddt_dump thing so that
|
||||
* we will move the selection point in the debug window
|
||||
*/
|
||||
ret+=BIO_write(bio,(char *)buf,strlen(buf));
|
||||
}
|
||||
strcat(buf,tmp);
|
||||
}
|
||||
strcat(buf,"\n");
|
||||
/* if this is the last call then update the ddt_dump thing so that
|
||||
* we will move the selection point in the debug window
|
||||
*/
|
||||
ret+=BIO_write(bio,(char *)buf,strlen(buf));
|
||||
}
|
||||
#ifdef TRUNCATE
|
||||
if (trunc > 0) {
|
||||
sprintf(buf,"%s%04x - <SPACES/NULS>\n",str,len+trunc);
|
||||
ret+=BIO_write(bio,(char *)buf,strlen(buf));
|
||||
}
|
||||
if (trunc > 0)
|
||||
{
|
||||
sprintf(buf,"%s%04x - <SPACES/NULS>\n",str,len+trunc);
|
||||
ret+=BIO_write(bio,(char *)buf,strlen(buf));
|
||||
}
|
||||
#endif
|
||||
return(ret);
|
||||
}
|
||||
|
||||
return(ret);
|
||||
}
|
||||
|
|
|
@ -61,7 +61,6 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <assert.h>
|
||||
|
@ -114,24 +113,15 @@
|
|||
#define LLONG long
|
||||
#endif
|
||||
|
||||
static void fmtstr (void (*)(char **, size_t *, size_t *, int),
|
||||
char **, size_t *, size_t *, const char *, int, int,
|
||||
int);
|
||||
static void fmtint (void (*)(char **, size_t *, size_t *, int),
|
||||
char **, size_t *, size_t *, LLONG, int, int, int, int);
|
||||
static void fmtfp (void (*)(char **, size_t *, size_t *, int),
|
||||
char **, size_t *, size_t *, LDOUBLE, int, int, int);
|
||||
static int dopr_isbig (size_t, size_t);
|
||||
static int dopr_copy (size_t);
|
||||
static void dopr_outch (char **, size_t *, size_t *, int);
|
||||
#ifdef USE_ALLOCATING_PRINT
|
||||
static int doapr_isbig (size_t, size_t);
|
||||
static int doapr_copy (size_t);
|
||||
static void doapr_outch (char **, size_t *, size_t *, int);
|
||||
#endif
|
||||
static void _dopr(void (*)(char **, size_t *, size_t *, int),
|
||||
int (*)(size_t, size_t), int (*)(size_t),
|
||||
char **buffer, size_t *maxlen, size_t *retlen, int *truncated,
|
||||
static void fmtstr (char **, char **, size_t *, size_t *,
|
||||
const char *, int, int, int);
|
||||
static void fmtint (char **, char **, size_t *, size_t *,
|
||||
LLONG, int, int, int, int);
|
||||
static void fmtfp (char **, char **, size_t *, size_t *,
|
||||
LDOUBLE, int, int, int);
|
||||
static void doapr_outch (char **, char **, size_t *, size_t *, int);
|
||||
static void _dopr(char **sbuffer, char **buffer,
|
||||
size_t *maxlen, size_t *retlen, int *truncated,
|
||||
const char *format, va_list args);
|
||||
|
||||
/* format read states */
|
||||
|
@ -163,40 +153,9 @@ static void _dopr(void (*)(char **, size_t *, size_t *, int),
|
|||
#define char_to_int(p) (p - '0')
|
||||
#define MAX(p,q) ((p >= q) ? p : q)
|
||||
|
||||
#ifndef USE_ALLOCATING_PRINT
|
||||
static void
|
||||
dopr(
|
||||
char *buffer,
|
||||
size_t maxlen,
|
||||
size_t *retlen,
|
||||
const char *format,
|
||||
va_list args)
|
||||
{
|
||||
int ignored;
|
||||
_dopr(dopr_outch, dopr_isbig, dopr_copy,
|
||||
&buffer, &maxlen, retlen, &ignored, format, args);
|
||||
}
|
||||
|
||||
#else
|
||||
static void
|
||||
doapr(
|
||||
char **buffer,
|
||||
size_t *retlen,
|
||||
const char *format,
|
||||
va_list args)
|
||||
{
|
||||
size_t dummy_maxlen = 0;
|
||||
int ignored;
|
||||
_dopr(doapr_outch, doapr_isbig, doapr_copy,
|
||||
buffer, &dummy_maxlen, retlen, &ignored, format, args);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
_dopr(
|
||||
void (*outch_fn)(char **, size_t *, size_t *, int),
|
||||
int (*isbig_fn)(size_t, size_t),
|
||||
int (*copy_fn)(size_t),
|
||||
char **sbuffer,
|
||||
char **buffer,
|
||||
size_t *maxlen,
|
||||
size_t *retlen,
|
||||
|
@ -221,7 +180,7 @@ _dopr(
|
|||
ch = *format++;
|
||||
|
||||
while (state != DP_S_DONE) {
|
||||
if ((ch == '\0') || (*isbig_fn)(currlen, *maxlen))
|
||||
if (ch == '\0' || (buffer == NULL && currlen >= *maxlen))
|
||||
state = DP_S_DONE;
|
||||
|
||||
switch (state) {
|
||||
|
@ -229,7 +188,7 @@ _dopr(
|
|||
if (ch == '%')
|
||||
state = DP_S_FLAGS;
|
||||
else
|
||||
(*outch_fn)(buffer, &currlen, maxlen, ch);
|
||||
doapr_outch(sbuffer,buffer, &currlen, maxlen, ch);
|
||||
ch = *format++;
|
||||
break;
|
||||
case DP_S_FLAGS:
|
||||
|
@ -335,7 +294,7 @@ _dopr(
|
|||
value = va_arg(args, int);
|
||||
break;
|
||||
}
|
||||
fmtint(outch_fn, buffer, &currlen, maxlen,
|
||||
fmtint(sbuffer, buffer, &currlen, maxlen,
|
||||
value, 10, min, max, flags);
|
||||
break;
|
||||
case 'X':
|
||||
|
@ -361,7 +320,7 @@ _dopr(
|
|||
unsigned int);
|
||||
break;
|
||||
}
|
||||
fmtint(outch_fn, buffer, &currlen, maxlen, value,
|
||||
fmtint(sbuffer, buffer, &currlen, maxlen, value,
|
||||
ch == 'o' ? 8 : (ch == 'u' ? 10 : 16),
|
||||
min, max, flags);
|
||||
break;
|
||||
|
@ -370,7 +329,7 @@ _dopr(
|
|||
fvalue = va_arg(args, LDOUBLE);
|
||||
else
|
||||
fvalue = va_arg(args, double);
|
||||
fmtfp(outch_fn, buffer, &currlen, maxlen,
|
||||
fmtfp(sbuffer, buffer, &currlen, maxlen,
|
||||
fvalue, min, max, flags);
|
||||
break;
|
||||
case 'E':
|
||||
|
@ -390,19 +349,23 @@ _dopr(
|
|||
fvalue = va_arg(args, double);
|
||||
break;
|
||||
case 'c':
|
||||
(*outch_fn)(buffer, &currlen, maxlen,
|
||||
doapr_outch(sbuffer, buffer, &currlen, maxlen,
|
||||
va_arg(args, int));
|
||||
break;
|
||||
case 's':
|
||||
strvalue = va_arg(args, char *);
|
||||
if (max < 0)
|
||||
max = (*copy_fn)(*maxlen);
|
||||
fmtstr(outch_fn, buffer, &currlen, maxlen, strvalue,
|
||||
if (max < 0) {
|
||||
if (buffer)
|
||||
max = INT_MAX;
|
||||
else
|
||||
max = *maxlen;
|
||||
}
|
||||
fmtstr(sbuffer, buffer, &currlen, maxlen, strvalue,
|
||||
flags, min, max);
|
||||
break;
|
||||
case 'p':
|
||||
value = (long)va_arg(args, void *);
|
||||
fmtint(outch_fn, buffer, &currlen, maxlen,
|
||||
fmtint(sbuffer, buffer, &currlen, maxlen,
|
||||
value, 16, min, max, flags);
|
||||
break;
|
||||
case 'n': /* XXX */
|
||||
|
@ -425,7 +388,7 @@ _dopr(
|
|||
}
|
||||
break;
|
||||
case '%':
|
||||
(*outch_fn)(buffer, &currlen, maxlen, ch);
|
||||
doapr_outch(sbuffer, buffer, &currlen, maxlen, ch);
|
||||
break;
|
||||
case 'w':
|
||||
/* not supported yet, treat as next char */
|
||||
|
@ -449,14 +412,14 @@ _dopr(
|
|||
*truncated = (currlen > *maxlen - 1);
|
||||
if (*truncated)
|
||||
currlen = *maxlen - 1;
|
||||
(*buffer)[currlen] = '\0';
|
||||
*retlen = currlen;
|
||||
doapr_outch(sbuffer, buffer, &currlen, maxlen, '\0');
|
||||
*retlen = currlen - 1;
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
fmtstr(
|
||||
void (*outch_fn)(char **, size_t *, size_t *, int),
|
||||
char **sbuffer,
|
||||
char **buffer,
|
||||
size_t *currlen,
|
||||
size_t *maxlen,
|
||||
|
@ -479,16 +442,16 @@ fmtstr(
|
|||
padlen = -padlen;
|
||||
|
||||
while ((padlen > 0) && (cnt < max)) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, ' ');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
|
||||
--padlen;
|
||||
++cnt;
|
||||
}
|
||||
while (*value && (cnt < max)) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, *value++);
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, *value++);
|
||||
++cnt;
|
||||
}
|
||||
while ((padlen < 0) && (cnt < max)) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, ' ');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
|
||||
++padlen;
|
||||
++cnt;
|
||||
}
|
||||
|
@ -496,7 +459,7 @@ fmtstr(
|
|||
|
||||
static void
|
||||
fmtint(
|
||||
void (*outch_fn)(char **, size_t *, size_t *, int),
|
||||
char **sbuffer,
|
||||
char **buffer,
|
||||
size_t *currlen,
|
||||
size_t *maxlen,
|
||||
|
@ -553,28 +516,28 @@ fmtint(
|
|||
|
||||
/* spaces */
|
||||
while (spadlen > 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, ' ');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
|
||||
--spadlen;
|
||||
}
|
||||
|
||||
/* sign */
|
||||
if (signvalue)
|
||||
(*outch_fn)(buffer, currlen, maxlen, signvalue);
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue);
|
||||
|
||||
/* zeros */
|
||||
if (zpadlen > 0) {
|
||||
while (zpadlen > 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, '0');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, '0');
|
||||
--zpadlen;
|
||||
}
|
||||
}
|
||||
/* digits */
|
||||
while (place > 0)
|
||||
(*outch_fn)(buffer, currlen, maxlen, convert[--place]);
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, convert[--place]);
|
||||
|
||||
/* left justified spaces */
|
||||
while (spadlen < 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, ' ');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
|
||||
++spadlen;
|
||||
}
|
||||
return;
|
||||
|
@ -613,7 +576,7 @@ round(LDOUBLE value)
|
|||
|
||||
static void
|
||||
fmtfp(
|
||||
void (*outch_fn)(char **, size_t *, size_t *, int),
|
||||
char **sbuffer,
|
||||
char **buffer,
|
||||
size_t *currlen,
|
||||
size_t *maxlen,
|
||||
|
@ -694,117 +657,85 @@ fmtfp(
|
|||
|
||||
if ((flags & DP_F_ZERO) && (padlen > 0)) {
|
||||
if (signvalue) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, signvalue);
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue);
|
||||
--padlen;
|
||||
signvalue = 0;
|
||||
}
|
||||
while (padlen > 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, '0');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, '0');
|
||||
--padlen;
|
||||
}
|
||||
}
|
||||
while (padlen > 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, ' ');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
|
||||
--padlen;
|
||||
}
|
||||
if (signvalue)
|
||||
(*outch_fn)(buffer, currlen, maxlen, signvalue);
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue);
|
||||
|
||||
while (iplace > 0)
|
||||
(*outch_fn)(buffer, currlen, maxlen, iconvert[--iplace]);
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, iconvert[--iplace]);
|
||||
|
||||
/*
|
||||
* Decimal point. This should probably use locale to find the correct
|
||||
* char to print out.
|
||||
*/
|
||||
if (max > 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, '.');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, '.');
|
||||
|
||||
while (fplace > 0)
|
||||
(*outch_fn)(buffer, currlen, maxlen, fconvert[--fplace]);
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, fconvert[--fplace]);
|
||||
}
|
||||
while (zpadlen > 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, '0');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, '0');
|
||||
--zpadlen;
|
||||
}
|
||||
|
||||
while (padlen < 0) {
|
||||
(*outch_fn)(buffer, currlen, maxlen, ' ');
|
||||
doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
|
||||
++padlen;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
dopr_copy(
|
||||
size_t len)
|
||||
{
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef USE_ALLOCATING_PRINT
|
||||
static int
|
||||
doapr_copy(
|
||||
size_t len)
|
||||
{
|
||||
/* Return as high an integer as possible */
|
||||
return INT_MAX;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
dopr_isbig(
|
||||
size_t currlen,
|
||||
size_t maxlen)
|
||||
{
|
||||
return currlen > maxlen;
|
||||
}
|
||||
|
||||
#ifdef USE_ALLOCATING_PRINT
|
||||
static int
|
||||
doapr_isbig(
|
||||
size_t currlen,
|
||||
size_t maxlen)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
dopr_outch(
|
||||
char **buffer,
|
||||
size_t *currlen,
|
||||
size_t *maxlen,
|
||||
int c)
|
||||
{
|
||||
if (*currlen < *maxlen)
|
||||
(*buffer)[(*currlen)++] = (char)c;
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef USE_ALLOCATING_PRINT
|
||||
static void
|
||||
doapr_outch(
|
||||
char **sbuffer,
|
||||
char **buffer,
|
||||
size_t *currlen,
|
||||
size_t *maxlen,
|
||||
int c)
|
||||
{
|
||||
if (*buffer == NULL) {
|
||||
if (*maxlen == 0)
|
||||
*maxlen = 1024;
|
||||
*buffer = OPENSSL_malloc(*maxlen);
|
||||
}
|
||||
while (*currlen >= *maxlen) {
|
||||
*maxlen += 1024;
|
||||
*buffer = OPENSSL_realloc(*buffer, *maxlen);
|
||||
}
|
||||
/* What to do if *buffer is NULL? */
|
||||
assert(*buffer != NULL);
|
||||
/* If we haven't at least one buffer, someone has doe a big booboo */
|
||||
assert(*sbuffer != NULL || buffer != NULL);
|
||||
|
||||
if (buffer) {
|
||||
while (*currlen >= *maxlen) {
|
||||
if (*buffer == NULL) {
|
||||
assert(*sbuffer != NULL);
|
||||
if (*maxlen == 0)
|
||||
*maxlen = 1024;
|
||||
*buffer = OPENSSL_malloc(*maxlen);
|
||||
if (*currlen > 0)
|
||||
memcpy(*buffer, *sbuffer, *currlen);
|
||||
*sbuffer = NULL;
|
||||
} else {
|
||||
*maxlen += 1024;
|
||||
*buffer = OPENSSL_realloc(*buffer, *maxlen);
|
||||
}
|
||||
}
|
||||
/* What to do if *buffer is NULL? */
|
||||
assert(*sbuffer != NULL || *buffer != NULL);
|
||||
}
|
||||
|
||||
if (*currlen < *maxlen) {
|
||||
if (*sbuffer)
|
||||
(*sbuffer)[(*currlen)++] = (char)c;
|
||||
else
|
||||
(*buffer)[(*currlen)++] = (char)c;
|
||||
}
|
||||
|
||||
(*buffer)[(*currlen)++] = (char)c;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
|
@ -812,33 +743,39 @@ int BIO_printf (BIO *bio, const char *format, ...)
|
|||
{
|
||||
va_list args;
|
||||
int ret;
|
||||
size_t retlen;
|
||||
#ifdef USE_ALLOCATING_PRINT
|
||||
char *hugebuf;
|
||||
#else
|
||||
MS_STATIC char hugebuf[1024*2]; /* 10k in one chunk is the limit */
|
||||
#endif
|
||||
|
||||
va_start(args, format);
|
||||
|
||||
#ifndef USE_ALLOCATING_PRINT
|
||||
hugebuf[0]='\0';
|
||||
dopr(hugebuf, sizeof(hugebuf), &retlen, format, args);
|
||||
#else
|
||||
hugebuf = NULL;
|
||||
CRYPTO_push_info("doapr()");
|
||||
doapr(&hugebuf, &retlen, format, args);
|
||||
if (hugebuf)
|
||||
{
|
||||
#endif
|
||||
ret=BIO_write(bio, hugebuf, (int)retlen);
|
||||
ret = BIO_vprintf(bio, format, args);
|
||||
|
||||
#ifdef USE_ALLOCATING_PRINT
|
||||
OPENSSL_free(hugebuf);
|
||||
va_end(args);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
int BIO_vprintf (BIO *bio, const char *format, va_list args)
|
||||
{
|
||||
int ret;
|
||||
size_t retlen;
|
||||
MS_STATIC char hugebuf[1024*10];
|
||||
char *hugebufp = hugebuf;
|
||||
size_t hugebufsize = sizeof(hugebuf);
|
||||
char *dynbuf = NULL;
|
||||
int ignored;
|
||||
|
||||
dynbuf = NULL;
|
||||
CRYPTO_push_info("doapr()");
|
||||
_dopr(&hugebufp, &dynbuf, &hugebufsize,
|
||||
&retlen, &ignored, format, args);
|
||||
if (dynbuf)
|
||||
{
|
||||
ret=BIO_write(bio, dynbuf, (int)retlen);
|
||||
OPENSSL_free(dynbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret=BIO_write(bio, hugebuf, (int)retlen);
|
||||
}
|
||||
CRYPTO_pop_info();
|
||||
#endif
|
||||
va_end(args);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
@ -849,12 +786,23 @@ int BIO_printf (BIO *bio, const char *format, ...)
|
|||
int BIO_snprintf(char *buf, size_t n, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
int ret;
|
||||
|
||||
va_start(args, format);
|
||||
|
||||
ret = BIO_vsnprintf(buf, n, format, args);
|
||||
|
||||
va_end(args);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
|
||||
{
|
||||
size_t retlen;
|
||||
int truncated;
|
||||
|
||||
va_start(args, format);
|
||||
_dopr(dopr_outch, dopr_isbig, dopr_copy,
|
||||
&buf, &n, &retlen, &truncated, format, args);
|
||||
_dopr(&buf, NULL, &n, &retlen, &truncated, format, args);
|
||||
|
||||
if (truncated)
|
||||
/* In case of truncation, return -1 like traditional snprintf.
|
||||
* (Current drafts for ISO/IEC 9899 say snprintf should return
|
||||
|
|
|
@ -506,6 +506,6 @@ static int buffer_gets(BIO *b, char *buf, int size)
|
|||
|
||||
static int buffer_puts(BIO *b, const char *str)
|
||||
{
|
||||
return(BIO_write(b,str,strlen(str)));
|
||||
return(buffer_write(b,str,strlen(str)));
|
||||
}
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
#ifndef NO_FP_API
|
||||
# include <stdio.h>
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <openssl/crypto.h>
|
||||
|
||||
|
@ -600,7 +601,9 @@ void BIO_copy_next_retry(BIO *b);
|
|||
long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);
|
||||
|
||||
int BIO_printf(BIO *bio, const char *format, ...);
|
||||
int BIO_vprintf(BIO *bio, const char *format, va_list args);
|
||||
int BIO_snprintf(char *buf, size_t n, const char *format, ...);
|
||||
int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args);
|
||||
|
||||
/* BEGIN ERROR CODES */
|
||||
/* The following lines are auto generated by the script mkerr.pl. Any changes
|
||||
|
@ -635,6 +638,7 @@ int BIO_snprintf(char *buf, size_t n, const char *format, ...);
|
|||
#define BIO_F_CONN_CTRL 127
|
||||
#define BIO_F_CONN_STATE 115
|
||||
#define BIO_F_FILE_CTRL 116
|
||||
#define BIO_F_MEM_READ 128
|
||||
#define BIO_F_MEM_WRITE 117
|
||||
#define BIO_F_SSL_NEW 118
|
||||
#define BIO_F_WSASTARTUP 119
|
||||
|
@ -645,6 +649,7 @@ int BIO_snprintf(char *buf, size_t n, const char *format, ...);
|
|||
#define BIO_R_BAD_HOSTNAME_LOOKUP 102
|
||||
#define BIO_R_BROKEN_PIPE 124
|
||||
#define BIO_R_CONNECT_ERROR 103
|
||||
#define BIO_R_EOF_ON_MEMORY_BIO 127
|
||||
#define BIO_R_ERROR_SETTING_NBIO 104
|
||||
#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET 105
|
||||
#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET 106
|
||||
|
|
|
@ -91,6 +91,7 @@ static ERR_STRING_DATA BIO_str_functs[]=
|
|||
{ERR_PACK(0,BIO_F_CONN_CTRL,0), "CONN_CTRL"},
|
||||
{ERR_PACK(0,BIO_F_CONN_STATE,0), "CONN_STATE"},
|
||||
{ERR_PACK(0,BIO_F_FILE_CTRL,0), "FILE_CTRL"},
|
||||
{ERR_PACK(0,BIO_F_MEM_READ,0), "MEM_READ"},
|
||||
{ERR_PACK(0,BIO_F_MEM_WRITE,0), "MEM_WRITE"},
|
||||
{ERR_PACK(0,BIO_F_SSL_NEW,0), "SSL_new"},
|
||||
{ERR_PACK(0,BIO_F_WSASTARTUP,0), "WSASTARTUP"},
|
||||
|
@ -104,6 +105,7 @@ static ERR_STRING_DATA BIO_str_reasons[]=
|
|||
{BIO_R_BAD_HOSTNAME_LOOKUP ,"bad hostname lookup"},
|
||||
{BIO_R_BROKEN_PIPE ,"broken pipe"},
|
||||
{BIO_R_CONNECT_ERROR ,"connect error"},
|
||||
{BIO_R_EOF_ON_MEMORY_BIO ,"EOF on memory BIO"},
|
||||
{BIO_R_ERROR_SETTING_NBIO ,"error setting nbio"},
|
||||
{BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET,"error setting nbio on accepted socket"},
|
||||
{BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET,"error setting nbio on accept socket"},
|
||||
|
@ -124,8 +126,8 @@ static ERR_STRING_DATA BIO_str_reasons[]=
|
|||
{BIO_R_UNABLE_TO_LISTEN_SOCKET ,"unable to listen socket"},
|
||||
{BIO_R_UNINITIALIZED ,"uninitialized"},
|
||||
{BIO_R_UNSUPPORTED_METHOD ,"unsupported method"},
|
||||
{BIO_R_WRITE_TO_READ_ONLY_BIO ,"write to read only bio"},
|
||||
{BIO_R_WSASTARTUP ,"wsastartup"},
|
||||
{BIO_R_WRITE_TO_READ_ONLY_BIO ,"write to read only BIO"},
|
||||
{BIO_R_WSASTARTUP ,"WSAStartup"},
|
||||
{0,NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -201,13 +201,7 @@ int BIO_write(BIO *b, const void *in, int inl)
|
|||
|
||||
if (i > 0) b->num_write+=(unsigned long)i;
|
||||
|
||||
/* This is evil and not thread safe. If the BIO has been freed,
|
||||
* we must not call the callback. The only way to be able to
|
||||
* determine this is the reference count which is now invalid since
|
||||
* the memory has been free()ed.
|
||||
*/
|
||||
if (b->references <= 0) abort();
|
||||
if (cb != NULL) /* && (b->references >= 1)) */
|
||||
if (cb != NULL)
|
||||
i=(int)cb(b,BIO_CB_WRITE|BIO_CB_RETURN,in,inl,
|
||||
0L,(long)i);
|
||||
return(i);
|
||||
|
@ -238,6 +232,8 @@ int BIO_puts(BIO *b, const char *in)
|
|||
|
||||
i=b->method->bputs(b,in);
|
||||
|
||||
if (i > 0) b->num_write+=(unsigned long)i;
|
||||
|
||||
if (cb != NULL)
|
||||
i=(int)cb(b,BIO_CB_PUTS|BIO_CB_RETURN,in,0,
|
||||
0L,(long)i);
|
||||
|
|
|
@ -188,7 +188,7 @@ static int conn_state(BIO *b, BIO_CONNECT *c)
|
|||
case BIO_CONN_S_GET_PORT:
|
||||
if (c->param_port == NULL)
|
||||
{
|
||||
abort();
|
||||
/* abort(); */
|
||||
goto exit_loop;
|
||||
}
|
||||
else if (BIO_get_port(c->param_port,&c->port) <= 0)
|
||||
|
@ -299,7 +299,7 @@ static int conn_state(BIO *b, BIO_CONNECT *c)
|
|||
ret=1;
|
||||
goto exit_loop;
|
||||
default:
|
||||
abort();
|
||||
/* abort(); */
|
||||
goto exit_loop;
|
||||
}
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ static int MS_CALLBACK slg_puts(BIO *h, const char *str);
|
|||
static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
|
||||
static int MS_CALLBACK slg_new(BIO *h);
|
||||
static int MS_CALLBACK slg_free(BIO *data);
|
||||
static void xopenlog(BIO* bp, const char* name, int level);
|
||||
static void xopenlog(BIO* bp, char* name, int level);
|
||||
static void xsyslog(BIO* bp, int priority, const char* string);
|
||||
static void xcloselog(BIO* bp);
|
||||
#ifdef WIN32
|
||||
|
@ -170,7 +170,36 @@ static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl)
|
|||
int ret= inl;
|
||||
char* buf;
|
||||
char* pp;
|
||||
int priority;
|
||||
int priority, i;
|
||||
static struct
|
||||
{
|
||||
int strl;
|
||||
char str[10];
|
||||
int log_level;
|
||||
}
|
||||
mapping[] =
|
||||
{
|
||||
{ 6, "PANIC ", LOG_EMERG },
|
||||
{ 6, "EMERG ", LOG_EMERG },
|
||||
{ 4, "EMR ", LOG_EMERG },
|
||||
{ 6, "ALERT ", LOG_ALERT },
|
||||
{ 4, "ALR ", LOG_ALERT },
|
||||
{ 5, "CRIT ", LOG_CRIT },
|
||||
{ 4, "CRI ", LOG_CRIT },
|
||||
{ 6, "ERROR ", LOG_ERR },
|
||||
{ 4, "ERR ", LOG_ERR },
|
||||
{ 8, "WARNING ", LOG_WARNING },
|
||||
{ 5, "WARN ", LOG_WARNING },
|
||||
{ 4, "WAR ", LOG_WARNING },
|
||||
{ 7, "NOTICE ", LOG_NOTICE },
|
||||
{ 5, "NOTE ", LOG_NOTICE },
|
||||
{ 4, "NOT ", LOG_NOTICE },
|
||||
{ 5, "INFO ", LOG_INFO },
|
||||
{ 4, "INF ", LOG_INFO },
|
||||
{ 6, "DEBUG ", LOG_DEBUG },
|
||||
{ 4, "DBG ", LOG_DEBUG },
|
||||
{ 0, "", LOG_ERR } /* The default */
|
||||
};
|
||||
|
||||
if((buf= (char *)OPENSSL_malloc(inl+ 1)) == NULL){
|
||||
return(0);
|
||||
|
@ -178,19 +207,10 @@ static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl)
|
|||
strncpy(buf, in, inl);
|
||||
buf[inl]= '\0';
|
||||
|
||||
if(strncmp(buf, "ERR ", 4) == 0){
|
||||
priority= LOG_ERR;
|
||||
pp= buf+ 4;
|
||||
}else if(strncmp(buf, "WAR ", 4) == 0){
|
||||
priority= LOG_WARNING;
|
||||
pp= buf+ 4;
|
||||
}else if(strncmp(buf, "INF ", 4) == 0){
|
||||
priority= LOG_INFO;
|
||||
pp= buf+ 4;
|
||||
}else{
|
||||
priority= LOG_ERR;
|
||||
pp= buf;
|
||||
}
|
||||
i = 0;
|
||||
while(strncmp(buf, mapping[i].str, mapping[i].strl) != 0) i++;
|
||||
priority = mapping[i].log_level;
|
||||
pp = buf + mapping[i].strl;
|
||||
|
||||
xsyslog(b, priority, pp);
|
||||
|
||||
|
@ -223,7 +243,7 @@ static int MS_CALLBACK slg_puts(BIO *bp, const char *str)
|
|||
|
||||
#if defined(WIN32)
|
||||
|
||||
static void xopenlog(BIO* bp, const char* name, int level)
|
||||
static void xopenlog(BIO* bp, char* name, int level)
|
||||
{
|
||||
if ( !register_event_source )
|
||||
{
|
||||
|
@ -257,16 +277,22 @@ static void xsyslog(BIO *bp, int priority, const char *string)
|
|||
|
||||
switch (priority)
|
||||
{
|
||||
case LOG_EMERG:
|
||||
case LOG_ALERT:
|
||||
case LOG_CRIT:
|
||||
case LOG_ERR:
|
||||
evtype = EVENTLOG_ERROR_TYPE;
|
||||
break;
|
||||
case LOG_WARNING:
|
||||
evtype = EVENTLOG_WARNING_TYPE;
|
||||
break;
|
||||
case LOG_NOTICE:
|
||||
case LOG_INFO:
|
||||
case LOG_DEBUG:
|
||||
evtype = EVENTLOG_INFORMATION_TYPE;
|
||||
break;
|
||||
default:
|
||||
default: /* Should never happen, but set it
|
||||
as error anyway. */
|
||||
evtype = EVENTLOG_ERROR_TYPE;
|
||||
break;
|
||||
}
|
||||
|
@ -291,7 +317,7 @@ static void xcloselog(BIO* bp)
|
|||
|
||||
static int VMS_OPC_target = LOG_DAEMON;
|
||||
|
||||
static void xopenlog(BIO* bp, const char* name, int level)
|
||||
static void xopenlog(BIO* bp, char* name, int level)
|
||||
{
|
||||
VMS_OPC_target = level;
|
||||
}
|
||||
|
@ -348,7 +374,7 @@ static void xcloselog(BIO* bp)
|
|||
|
||||
#else /* Unix */
|
||||
|
||||
static void xopenlog(BIO* bp, const char* name, int level)
|
||||
static void xopenlog(BIO* bp, char* name, int level)
|
||||
{
|
||||
openlog(name, LOG_PID|LOG_CONS, level);
|
||||
}
|
||||
|
|
|
@ -163,9 +163,9 @@ static int mem_read(BIO *b, char *out, int outl)
|
|||
}
|
||||
} else if (bm->length == 0)
|
||||
{
|
||||
if (b->num != 0)
|
||||
ret = b->num;
|
||||
if (ret != 0)
|
||||
BIO_set_retry_read(b);
|
||||
ret= b->num;
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
|
@ -208,15 +208,20 @@ static long mem_ctrl(BIO *b, int cmd, long num, void *ptr)
|
|||
switch (cmd)
|
||||
{
|
||||
case BIO_CTRL_RESET:
|
||||
if (bm->data != NULL) {
|
||||
if (bm->data != NULL)
|
||||
{
|
||||
/* For read only case reset to the start again */
|
||||
if(b->flags & BIO_FLAGS_MEM_RDONLY)
|
||||
bm->data -= bm->max - bm->length;
|
||||
else {
|
||||
{
|
||||
bm->data -= bm->max - bm->length;
|
||||
bm->length = bm->max;
|
||||
}
|
||||
else
|
||||
{
|
||||
memset(bm->data,0,bm->max);
|
||||
bm->length=0;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case BIO_CTRL_EOF:
|
||||
ret=(long)(bm->length == 0);
|
||||
|
|
|
@ -173,89 +173,90 @@ bn_add.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
bn_add.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_add.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_add.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_add.o: ../cryptlib.h bn_lcl.h
|
||||
bn_add.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_asm.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_asm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_asm.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_asm.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_asm.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_asm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_asm.o: ../cryptlib.h bn_lcl.h
|
||||
bn_asm.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_blind.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_blind.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_blind.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_blind.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_blind.o: ../../include/openssl/opensslconf.h
|
||||
bn_blind.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bn_blind.o: ../../include/openssl/stack.h ../cryptlib.h bn_lcl.h
|
||||
bn_blind.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bn_blind.o: ../cryptlib.h bn_lcl.h
|
||||
bn_ctx.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_ctx.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_ctx.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_ctx.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_ctx.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_ctx.o: ../cryptlib.h
|
||||
bn_ctx.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
bn_div.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_div.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_div.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_div.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_div.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_div.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_div.o: ../cryptlib.h bn_lcl.h
|
||||
bn_div.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_err.o: ../../include/openssl/crypto.h ../../include/openssl/err.h
|
||||
bn_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
bn_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bn_err.o: ../../include/openssl/stack.h
|
||||
bn_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bn_exp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_exp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_exp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_exp.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_exp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_exp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_exp.o: ../cryptlib.h bn_lcl.h
|
||||
bn_exp.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_exp2.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_exp2.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_exp2.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_exp2.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_exp2.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_exp2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_exp2.o: ../cryptlib.h bn_lcl.h
|
||||
bn_exp2.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_gcd.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_gcd.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_gcd.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_gcd.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_gcd.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_gcd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_gcd.o: ../cryptlib.h bn_lcl.h
|
||||
bn_gcd.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_lib.o: ../cryptlib.h bn_lcl.h
|
||||
bn_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_mont.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_mont.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_mont.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_mont.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_mont.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_mont.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_mont.o: ../cryptlib.h bn_lcl.h
|
||||
bn_mont.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_mpi.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_mpi.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_mpi.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_mpi.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_mpi.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_mpi.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_mpi.o: ../cryptlib.h bn_lcl.h
|
||||
bn_mpi.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_mul.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_mul.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_mul.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_mul.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_mul.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_mul.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_mul.o: ../cryptlib.h bn_lcl.h
|
||||
bn_mul.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_prime.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_prime.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_prime.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -263,46 +264,49 @@ bn_prime.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
bn_prime.o: ../../include/openssl/opensslconf.h
|
||||
bn_prime.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
bn_prime.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_prime.o: ../cryptlib.h bn_lcl.h bn_prime.h
|
||||
bn_prime.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_prime.h
|
||||
bn_print.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_print.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_print.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_print.o: ../../include/openssl/opensslconf.h
|
||||
bn_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bn_print.o: ../../include/openssl/stack.h ../cryptlib.h bn_lcl.h
|
||||
bn_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bn_print.o: ../cryptlib.h bn_lcl.h
|
||||
bn_rand.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_rand.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_rand.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_rand.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_rand.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
|
||||
bn_rand.o: ../../include/openssl/stack.h ../cryptlib.h bn_lcl.h
|
||||
bn_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bn_rand.o: ../cryptlib.h bn_lcl.h
|
||||
bn_recp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_recp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_recp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_recp.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_recp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_recp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_recp.o: ../cryptlib.h bn_lcl.h
|
||||
bn_recp.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_shift.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_shift.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_shift.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_shift.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_shift.o: ../../include/openssl/opensslconf.h
|
||||
bn_shift.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
bn_shift.o: ../../include/openssl/stack.h ../cryptlib.h bn_lcl.h
|
||||
bn_shift.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
bn_shift.o: ../cryptlib.h bn_lcl.h
|
||||
bn_sqr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_sqr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_sqr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_sqr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_sqr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_sqr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_sqr.o: ../cryptlib.h bn_lcl.h
|
||||
bn_sqr.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
bn_word.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
bn_word.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
bn_word.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
bn_word.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
bn_word.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
bn_word.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
bn_word.o: ../cryptlib.h bn_lcl.h
|
||||
bn_word.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h
|
||||
|
|
|
@ -233,7 +233,7 @@ typedef struct bignum_st
|
|||
BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
|
||||
int top; /* Index of last used d +1. */
|
||||
/* The next are internal book keeping for bn_expand. */
|
||||
int max; /* Size of the d array. */
|
||||
int dmax; /* Size of the d array. */
|
||||
int neg; /* one if the number is negative */
|
||||
int flags;
|
||||
} BIGNUM;
|
||||
|
@ -435,9 +435,9 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, BIGNUM *m,
|
|||
|
||||
/* library internal functions */
|
||||
|
||||
#define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->max)?\
|
||||
#define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\
|
||||
(a):bn_expand2((a),(bits)/BN_BITS2+1))
|
||||
#define bn_wexpand(a,words) (((words) <= (a)->max)?(a):bn_expand2((a),(words)))
|
||||
#define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words)))
|
||||
BIGNUM *bn_expand2(BIGNUM *a, int words);
|
||||
|
||||
#define bn_fix_top(a) \
|
||||
|
|
|
@ -227,7 +227,7 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
|
|||
|
||||
#else
|
||||
|
||||
/* Divide h-l by d and return the result. */
|
||||
/* Divide h,l by d and return the result. */
|
||||
/* I need to test this some more :-( */
|
||||
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
|
||||
{
|
||||
|
@ -237,13 +237,8 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
|
|||
if (d == 0) return(BN_MASK2);
|
||||
|
||||
i=BN_num_bits_word(d);
|
||||
if ((i != BN_BITS2) && (h > (BN_ULONG)1<<i))
|
||||
{
|
||||
#if !defined(NO_STDIO) && !defined(WIN16)
|
||||
fprintf(stderr,"Division would overflow (%d)\n",i);
|
||||
#endif
|
||||
abort();
|
||||
}
|
||||
assert((i == BN_BITS2) || (h > (BN_ULONG)1<<i));
|
||||
|
||||
i=BN_BITS2-i;
|
||||
if (h >= d) h-=d;
|
||||
|
||||
|
|
|
@ -205,7 +205,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
|
|||
BN_init(&wnum);
|
||||
wnum.d= &(snum->d[loop]);
|
||||
wnum.top= div_n;
|
||||
wnum.max= snum->max+1; /* a bit of a lie */
|
||||
wnum.dmax= snum->dmax+1; /* a bit of a lie */
|
||||
|
||||
/* Get the top 2 words of sdiv */
|
||||
/* i=sdiv->top; */
|
||||
|
|
|
@ -228,7 +228,7 @@ extern "C" {
|
|||
/* This is used for internal error checking and is not normally used */
|
||||
#ifdef BN_DEBUG
|
||||
# include <assert.h>
|
||||
# define bn_check_top(a) assert ((a)->top >= 0 && (a)->top <= (a)->max);
|
||||
# define bn_check_top(a) assert ((a)->top >= 0 && (a)->top <= (a)->dmax);
|
||||
#else
|
||||
# define bn_check_top(a)
|
||||
#endif
|
||||
|
|
|
@ -56,6 +56,12 @@
|
|||
* [including the GNU Public Licence.]
|
||||
*/
|
||||
|
||||
#ifndef BN_DEBUG
|
||||
# undef NDEBUG /* avoid conflicting definitions */
|
||||
# define NDEBUG
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include "cryptlib.h"
|
||||
#include "bn_lcl.h"
|
||||
|
@ -244,14 +250,8 @@ int BN_num_bits(const BIGNUM *a)
|
|||
|
||||
if (a->top == 0) return(0);
|
||||
l=a->d[a->top-1];
|
||||
assert(l != 0);
|
||||
i=(a->top-1)*BN_BITS2;
|
||||
if (l == 0)
|
||||
{
|
||||
#if !defined(NO_STDIO) && !defined(WIN16)
|
||||
fprintf(stderr,"BAD TOP VALUE\n");
|
||||
#endif
|
||||
abort();
|
||||
}
|
||||
return(i+BN_num_bits_word(l));
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,7 @@ void BN_clear_free(BIGNUM *a)
|
|||
if (a == NULL) return;
|
||||
if (a->d != NULL)
|
||||
{
|
||||
memset(a->d,0,a->max*sizeof(a->d[0]));
|
||||
memset(a->d,0,a->dmax*sizeof(a->d[0]));
|
||||
if (!(BN_get_flags(a,BN_FLG_STATIC_DATA)))
|
||||
OPENSSL_free(a->d);
|
||||
}
|
||||
|
@ -299,7 +299,7 @@ BIGNUM *BN_new(void)
|
|||
ret->flags=BN_FLG_MALLOCED;
|
||||
ret->top=0;
|
||||
ret->neg=0;
|
||||
ret->max=0;
|
||||
ret->dmax=0;
|
||||
ret->d=NULL;
|
||||
return(ret);
|
||||
}
|
||||
|
@ -317,7 +317,7 @@ BIGNUM *bn_expand2(BIGNUM *b, int words)
|
|||
|
||||
bn_check_top(b);
|
||||
|
||||
if (words > b->max)
|
||||
if (words > b->dmax)
|
||||
{
|
||||
bn_check_top(b);
|
||||
if (BN_get_flags(b,BN_FLG_STATIC_DATA))
|
||||
|
@ -427,17 +427,17 @@ BIGNUM *bn_expand2(BIGNUM *b, int words)
|
|||
}
|
||||
|
||||
b->d=a;
|
||||
b->max=words;
|
||||
b->dmax=words;
|
||||
|
||||
/* Now need to zero any data between b->top and b->max */
|
||||
|
||||
A= &(b->d[b->top]);
|
||||
for (i=(b->max - b->top)>>3; i>0; i--,A+=8)
|
||||
for (i=(b->dmax - b->top)>>3; i>0; i--,A+=8)
|
||||
{
|
||||
A[0]=0; A[1]=0; A[2]=0; A[3]=0;
|
||||
A[4]=0; A[5]=0; A[6]=0; A[7]=0;
|
||||
}
|
||||
for (i=(b->max - b->top)&7; i>0; i--,A++)
|
||||
for (i=(b->dmax - b->top)&7; i>0; i--,A++)
|
||||
A[0]=0;
|
||||
#else
|
||||
memset(A,0,sizeof(BN_ULONG)*(words+1));
|
||||
|
@ -508,7 +508,7 @@ BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
|
|||
void BN_clear(BIGNUM *a)
|
||||
{
|
||||
if (a->d != NULL)
|
||||
memset(a->d,0,a->max*sizeof(a->d[0]));
|
||||
memset(a->d,0,a->dmax*sizeof(a->d[0]));
|
||||
a->top=0;
|
||||
a->neg=0;
|
||||
}
|
||||
|
|
|
@ -157,7 +157,22 @@ int BN_from_montgomery(BIGNUM *ret, BIGNUM *a, BN_MONT_CTX *mont,
|
|||
#endif
|
||||
for (i=0; i<nl; i++)
|
||||
{
|
||||
#ifdef __TANDEM
|
||||
{
|
||||
long long t1;
|
||||
long long t2;
|
||||
long long t3;
|
||||
t1 = rp[0] * (n0 & 0177777);
|
||||
t2 = 037777600000l;
|
||||
t2 = n0 & t2;
|
||||
t3 = rp[0] & 0177777;
|
||||
t2 = (t3 * t2) & BN_MASK2;
|
||||
t1 = t1 + t2;
|
||||
v=bn_mul_add_words(rp,np,nl,(BN_ULONG) t1);
|
||||
}
|
||||
#else
|
||||
v=bn_mul_add_words(rp,np,nl,(rp[0]*n0)&BN_MASK2);
|
||||
#endif
|
||||
nrp++;
|
||||
rp++;
|
||||
if (((nrp[-1]+=v)&BN_MASK2) >= v)
|
||||
|
@ -284,7 +299,7 @@ int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
|
|||
buf[1]=0;
|
||||
tmod.d=buf;
|
||||
tmod.top=1;
|
||||
tmod.max=2;
|
||||
tmod.dmax=2;
|
||||
tmod.neg=mod->neg;
|
||||
/* Ri = R^-1 mod N*/
|
||||
if ((BN_mod_inverse(&Ri,R,&tmod,ctx)) == NULL)
|
||||
|
|
|
@ -182,11 +182,16 @@ int BN_mul_word(BIGNUM *a, BN_ULONG w)
|
|||
w&=BN_MASK2;
|
||||
if (a->top)
|
||||
{
|
||||
ll=bn_mul_words(a->d,a->d,a->top,w);
|
||||
if (ll)
|
||||
if (w == 0)
|
||||
BN_zero(a);
|
||||
else
|
||||
{
|
||||
if (bn_wexpand(a,a->top+1) == NULL) return(0);
|
||||
a->d[a->top++]=ll;
|
||||
ll=bn_mul_words(a->d,a->d,a->top,w);
|
||||
if (ll)
|
||||
{
|
||||
if (bn_wexpand(a,a->top+1) == NULL) return(0);
|
||||
a->d[a->top++]=ll;
|
||||
}
|
||||
}
|
||||
}
|
||||
return(1);
|
||||
|
|
|
@ -59,8 +59,10 @@
|
|||
|
||||
bn_div_words_abort(int i)
|
||||
{
|
||||
#ifdef BN_DEBUG
|
||||
#if !defined(NO_STDIO) && !defined(WIN16)
|
||||
fprintf(stderr,"Division would overflow (%d)\n",i);
|
||||
#endif
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -82,9 +82,11 @@ buf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
|||
buf_err.o: ../../include/openssl/crypto.h ../../include/openssl/err.h
|
||||
buf_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslv.h
|
||||
buf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
buf_err.o: ../../include/openssl/symhacks.h
|
||||
buffer.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
buffer.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
buffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
buffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
buffer.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
buffer.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
buffer.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
buffer.o: ../cryptlib.h
|
||||
|
|
|
@ -86,16 +86,16 @@ c_rle.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
|
|||
c_rle.o: ../../include/openssl/crypto.h ../../include/openssl/obj_mac.h
|
||||
c_rle.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
c_rle.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
c_rle.o: ../../include/openssl/stack.h
|
||||
c_rle.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
c_zlib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
|
||||
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/opensslv.h ../../include/openssl/safestack.h
|
||||
c_zlib.o: ../../include/openssl/stack.h
|
||||
c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.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/crypto.h ../../include/openssl/obj_mac.h
|
||||
comp_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
comp_lib.o: ../../include/openssl/stack.h
|
||||
comp_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
|
|
|
@ -84,24 +84,25 @@ conf_api.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h
|
|||
conf_api.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
conf_api.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
conf_api.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
conf_api.o: ../../include/openssl/stack.h
|
||||
conf_api.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
conf_def.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
conf_def.o: ../../include/openssl/conf.h ../../include/openssl/conf_api.h
|
||||
conf_def.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
conf_def.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
conf_def.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
conf_def.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
conf_def.o: ../../include/openssl/stack.h conf_def.h
|
||||
conf_def.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
conf_def.o: conf_def.h
|
||||
conf_err.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
|
||||
conf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
conf_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
conf_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
conf_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
conf_err.o: ../../include/openssl/stack.h
|
||||
conf_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
conf_lib.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
|
||||
conf_lib.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h
|
||||
conf_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
conf_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
conf_lib.o: ../../include/openssl/opensslconf.h
|
||||
conf_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
conf_lib.o: ../../include/openssl/stack.h
|
||||
conf_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
|
|
|
@ -58,6 +58,12 @@
|
|||
|
||||
/* Part of the code in here was originally in conf.c, which is now removed */
|
||||
|
||||
#ifndef CONF_DEBUG
|
||||
# undef NDEBUG /* avoid conflicting definitions */
|
||||
# define NDEBUG
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <openssl/conf.h>
|
||||
#include <openssl/conf_api.h>
|
||||
|
||||
|
@ -267,13 +273,7 @@ CONF_VALUE *_CONF_new_section(CONF *conf, char *section)
|
|||
v->value=(char *)sk;
|
||||
|
||||
vv=(CONF_VALUE *)lh_insert(conf->data,v);
|
||||
if (vv != NULL)
|
||||
{
|
||||
#if !defined(NO_STDIO) && !defined(WIN16)
|
||||
fprintf(stderr,"internal fault\n");
|
||||
#endif
|
||||
abort();
|
||||
}
|
||||
assert(vv == NULL);
|
||||
ok=1;
|
||||
err:
|
||||
if (!ok)
|
||||
|
|
|
@ -86,7 +86,7 @@ $ ENDIF
|
|||
$!
|
||||
$! Define The Different Encryption Types.
|
||||
$!
|
||||
$ ENCRYPT_TYPES = "Basic,MD2,MD5,SHA,MDC2,HMAC,RIPEMD,"+ -
|
||||
$ ENCRYPT_TYPES = "Basic,MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,"+ -
|
||||
"DES,RC2,RC4,RC5,IDEA,BF,CAST,"+ -
|
||||
"BN,RSA,DSA,DH,DSO,"+ -
|
||||
"BUFFER,BIO,STACK,LHASH,RAND,ERR,OBJECTS,"+ -
|
||||
|
@ -176,6 +176,7 @@ $ APPS_PKCS7 = "ENC/ENC;DEC/DEC;SIGN/SIGN;VERIFY/VERIFY,EXAMPLE"
|
|||
$
|
||||
$ LIB_ = "cryptlib,mem,mem_dbg,cversion,ex_data,tmdiff,cpt_err"
|
||||
$ LIB_MD2 = "md2_dgst,md2_one"
|
||||
$ LIB_MD4 = "md4_dgst,md4_one"
|
||||
$ LIB_MD5 = "md5_dgst,md5_one"
|
||||
$ LIB_SHA = "sha_dgst,sha1dgst,sha_one,sha1_one"
|
||||
$ LIB_MDC2 = "mdc2dgst,mdc2_one"
|
||||
|
@ -263,8 +264,8 @@ $! Setup exceptional compilations
|
|||
$!
|
||||
$ COMPILEWITH_CC3 = ",bss_rtcp,"
|
||||
$ COMPILEWITH_CC4 = ",a_utctm,bss_log,"
|
||||
$ COMPILEWITH_CC5 = ",md2_dgst,md5_dgst,mdc2dgst,sha_dgst,sha1dgst," + -
|
||||
"rmd_dgst,bf_enc,"
|
||||
$ COMPILEWITH_CC5 = ",md2_dgst,md4_dgst,md5_dgst,mdc2dgst," + -
|
||||
"sha_dgst,sha1dgst,rmd_dgst,bf_enc,"
|
||||
$!
|
||||
$! Check To See If We Are Going To Use RSAREF.
|
||||
$!
|
||||
|
|
|
@ -73,10 +73,9 @@
|
|||
#include <openssl/ebcdic.h>
|
||||
#endif
|
||||
|
||||
#if defined(VMS) || defined(__VMS)
|
||||
#include "vms_idhacks.h"
|
||||
#endif
|
||||
|
||||
/* Resolve problems on some operating systems with symbol names that clash
|
||||
one way or another */
|
||||
#include <openssl/symhacks.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -276,12 +275,6 @@ int CRYPTO_is_mem_check_on(void);
|
|||
#define OPENSSL_free_locked(addr) CRYPTO_free_locked(addr)
|
||||
|
||||
|
||||
/* Case insensiteve linking causes problems.... */
|
||||
#if defined(WIN16) || defined(VMS)
|
||||
#define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings
|
||||
#endif
|
||||
|
||||
|
||||
const char *SSLeay_version(int type);
|
||||
unsigned long SSLeay(void);
|
||||
|
||||
|
|
|
@ -165,7 +165,8 @@ enc_read.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
enc_read.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
enc_read.o: ../../include/openssl/opensslconf.h
|
||||
enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
enc_read.o: ../../include/openssl/stack.h ../cryptlib.h des_locl.h
|
||||
enc_read.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
enc_read.o: ../cryptlib.h des_locl.h
|
||||
enc_writ.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
enc_writ.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
|
||||
enc_writ.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -173,7 +174,7 @@ enc_writ.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
enc_writ.o: ../../include/openssl/opensslconf.h
|
||||
enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
enc_writ.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
enc_writ.o: ../cryptlib.h des_locl.h
|
||||
enc_writ.o: ../../include/openssl/symhacks.h ../cryptlib.h des_locl.h
|
||||
fcrypt.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||
fcrypt.o: ../../include/openssl/opensslconf.h des_locl.h
|
||||
fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||
|
@ -198,7 +199,8 @@ read_pwd.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
read_pwd.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
read_pwd.o: ../../include/openssl/opensslconf.h
|
||||
read_pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
read_pwd.o: ../../include/openssl/stack.h ../cryptlib.h des_locl.h
|
||||
read_pwd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
read_pwd.o: ../cryptlib.h des_locl.h
|
||||
rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||
rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h
|
||||
set_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||
|
|
|
@ -81,13 +81,17 @@ DES_LONG des_quad_cksum(const unsigned char *input, des_cblock output[],
|
|||
long l;
|
||||
const unsigned char *cp;
|
||||
#ifdef _CRAY
|
||||
short *lp;
|
||||
struct lp_st { int a:32; int b:32; } *lp;
|
||||
#else
|
||||
DES_LONG *lp;
|
||||
#endif
|
||||
|
||||
if (out_count < 1) out_count=1;
|
||||
#ifdef _CRAY
|
||||
lp = (struct lp_st *) &(output[0])[0];
|
||||
#else
|
||||
lp = (DES_LONG *) &(output[0])[0];
|
||||
#endif
|
||||
|
||||
z0=Q_B0((*seed)[0])|Q_B1((*seed)[1])|Q_B2((*seed)[2])|Q_B3((*seed)[3]);
|
||||
z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]);
|
||||
|
@ -120,8 +124,14 @@ DES_LONG des_quad_cksum(const unsigned char *input, des_cblock output[],
|
|||
{
|
||||
/* The MIT library assumes that the checksum is
|
||||
* composed of 2*out_count 32 bit ints */
|
||||
#ifdef _CRAY
|
||||
(*lp).a = z0;
|
||||
(*lp).b = z1;
|
||||
lp++;
|
||||
#else
|
||||
*lp++ = z0;
|
||||
*lp++ = z1;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
return(z0);
|
||||
|
|
|
@ -84,19 +84,22 @@ dh_check.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
|
|||
dh_check.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
dh_check.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
dh_check.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
dh_check.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
dh_check.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
dh_check.o: ../cryptlib.h
|
||||
dh_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
dh_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
|
||||
dh_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
dh_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
dh_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
dh_err.o: ../../include/openssl/symhacks.h
|
||||
dh_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
dh_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
dh_gen.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
|
||||
dh_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
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/stack.h ../cryptlib.h
|
||||
dh_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
dh_gen.o: ../cryptlib.h
|
||||
dh_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
dh_key.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
dh_key.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -106,14 +109,15 @@ 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/md5.h ../../include/openssl/mdc2.h
|
||||
dh_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
dh_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
dh_key.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
dh_key.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
dh_key.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
dh_key.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
dh_key.o: ../../include/openssl/stack.h ../cryptlib.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/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_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
dh_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
dh_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -123,11 +127,12 @@ dh_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
dh_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.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/md5.h ../../include/openssl/mdc2.h
|
||||
dh_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
dh_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
dh_lib.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
dh_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
dh_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
dh_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
dh_lib.o: ../../include/openssl/stack.h ../cryptlib.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
|
||||
|
|
|
@ -88,13 +88,14 @@ dsa_asn1.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
dsa_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
dsa_asn1.o: ../../include/openssl/opensslconf.h
|
||||
dsa_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
dsa_asn1.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
dsa_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
dsa_asn1.o: ../cryptlib.h
|
||||
dsa_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
dsa_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
|
||||
dsa_err.o: ../../include/openssl/dsa.h ../../include/openssl/err.h
|
||||
dsa_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
dsa_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
dsa_err.o: ../../include/openssl/stack.h
|
||||
dsa_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
dsa_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
dsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
dsa_gen.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||
|
@ -103,7 +104,7 @@ dsa_gen.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
dsa_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
dsa_gen.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
|
||||
dsa_gen.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
dsa_gen.o: ../cryptlib.h
|
||||
dsa_gen.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
dsa_key.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
dsa_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
dsa_key.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||
|
@ -112,7 +113,7 @@ dsa_key.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
dsa_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
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: ../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/blowfish.h ../../include/openssl/bn.h
|
||||
dsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -122,14 +123,15 @@ dsa_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
dsa_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
dsa_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
dsa_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
dsa_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
dsa_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
dsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
dsa_lib.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
dsa_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
dsa_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
dsa_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
dsa_lib.o: ../../include/openssl/stack.h ../cryptlib.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/blowfish.h ../../include/openssl/bn.h
|
||||
dsa_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -139,15 +141,15 @@ 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/md5.h ../../include/openssl/mdc2.h
|
||||
dsa_ossl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
dsa_ossl.o: ../../include/openssl/opensslconf.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/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: ../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/blowfish.h ../../include/openssl/bn.h
|
||||
dsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -157,15 +159,15 @@ 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/md5.h ../../include/openssl/mdc2.h
|
||||
dsa_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
dsa_sign.o: ../../include/openssl/opensslconf.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/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: ../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/bio.h ../../include/openssl/blowfish.h
|
||||
dsa_vrf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||
|
@ -175,12 +177,13 @@ 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/md5.h
|
||||
dsa_vrf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
dsa_vrf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
dsa_vrf.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
dsa_vrf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
dsa_vrf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
dsa_vrf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
dsa_vrf.o: ../../include/openssl/sha.h ../../include/openssl/stack.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/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: ../cryptlib.h
|
||||
|
|
|
@ -86,32 +86,35 @@ dso_dl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
dso_dl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
dso_dl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
dso_dl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
dso_dl.o: ../cryptlib.h
|
||||
dso_dl.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
dso_dlfcn.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
dso_dlfcn.o: ../../include/openssl/crypto.h ../../include/openssl/dso.h
|
||||
dso_dlfcn.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
dso_dlfcn.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
dso_dlfcn.o: ../../include/openssl/opensslconf.h
|
||||
dso_dlfcn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
dso_dlfcn.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
dso_dlfcn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
dso_dlfcn.o: ../cryptlib.h
|
||||
dso_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
|
||||
dso_err.o: ../../include/openssl/dso.h ../../include/openssl/err.h
|
||||
dso_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslv.h
|
||||
dso_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
dso_err.o: ../../include/openssl/symhacks.h
|
||||
dso_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
dso_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dso.h
|
||||
dso_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
dso_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
dso_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
dso_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
dso_lib.o: ../cryptlib.h
|
||||
dso_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
dso_null.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
dso_null.o: ../../include/openssl/crypto.h ../../include/openssl/dso.h
|
||||
dso_null.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
dso_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
dso_null.o: ../../include/openssl/opensslconf.h
|
||||
dso_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
dso_null.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
dso_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
dso_null.o: ../cryptlib.h
|
||||
dso_openssl.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
dso_openssl.o: ../../include/openssl/crypto.h ../../include/openssl/dso.h
|
||||
dso_openssl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -119,11 +122,12 @@ dso_openssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
dso_openssl.o: ../../include/openssl/opensslconf.h
|
||||
dso_openssl.o: ../../include/openssl/opensslv.h
|
||||
dso_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
dso_openssl.o: ../cryptlib.h
|
||||
dso_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
dso_win32.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
dso_win32.o: ../../include/openssl/crypto.h ../../include/openssl/dso.h
|
||||
dso_win32.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
dso_win32.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
dso_win32.o: ../../include/openssl/opensslconf.h
|
||||
dso_win32.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
dso_win32.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
dso_win32.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
dso_win32.o: ../cryptlib.h
|
||||
|
|
|
@ -88,14 +88,16 @@ engine_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
|
|||
engine_err.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
engine_err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
engine_err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
engine_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
engine_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
engine_err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
engine_err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
engine_err.o: ../../include/openssl/objects.h
|
||||
engine_err.o: ../../include/openssl/opensslconf.h
|
||||
engine_err.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
engine_err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
engine_err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
engine_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
engine_err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
engine_err.o: ../../include/openssl/symhacks.h
|
||||
engine_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
engine_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
engine_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -105,15 +107,16 @@ engine_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
engine_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
engine_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
engine_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
engine_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
engine_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
engine_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
engine_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
engine_lib.o: ../../include/openssl/objects.h
|
||||
engine_lib.o: ../../include/openssl/opensslconf.h
|
||||
engine_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
engine_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
engine_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
engine_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
engine_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
engine_lib.o: ../cryptlib.h engine_int.h
|
||||
engine_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h engine_int.h
|
||||
engine_list.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
engine_list.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
engine_list.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -123,15 +126,16 @@ engine_list.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
engine_list.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
engine_list.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
engine_list.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
engine_list.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
engine_list.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
engine_list.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
engine_list.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
engine_list.o: ../../include/openssl/objects.h
|
||||
engine_list.o: ../../include/openssl/opensslconf.h
|
||||
engine_list.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
engine_list.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
engine_list.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
engine_list.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
engine_list.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
engine_list.o: ../cryptlib.h engine_int.h
|
||||
engine_list.o: ../../include/openssl/symhacks.h ../cryptlib.h engine_int.h
|
||||
engine_openssl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
engine_openssl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
engine_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -141,8 +145,9 @@ engine_openssl.o: ../../include/openssl/dso.h ../../include/openssl/e_os.h
|
|||
engine_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
|
||||
engine_openssl.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
engine_openssl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
engine_openssl.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
engine_openssl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
engine_openssl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
engine_openssl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
engine_openssl.o: ../../include/openssl/obj_mac.h
|
||||
engine_openssl.o: ../../include/openssl/objects.h
|
||||
engine_openssl.o: ../../include/openssl/opensslconf.h
|
||||
engine_openssl.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
|
@ -150,7 +155,7 @@ engine_openssl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
|||
engine_openssl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
engine_openssl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
engine_openssl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
engine_openssl.o: ../cryptlib.h engine_int.h
|
||||
engine_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h engine_int.h
|
||||
hw_atalla.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
hw_atalla.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
hw_atalla.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -160,16 +165,17 @@ hw_atalla.o: ../../include/openssl/dso.h ../../include/openssl/e_os.h
|
|||
hw_atalla.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
|
||||
hw_atalla.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
hw_atalla.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
hw_atalla.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
hw_atalla.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
hw_atalla.o: ../../include/openssl/objects.h
|
||||
hw_atalla.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
hw_atalla.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
hw_atalla.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
hw_atalla.o: ../../include/openssl/opensslconf.h
|
||||
hw_atalla.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
hw_atalla.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
hw_atalla.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
hw_atalla.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
hw_atalla.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
hw_atalla.o: ../cryptlib.h engine_int.h vendor_defns/atalla.h
|
||||
hw_atalla.o: ../../include/openssl/symhacks.h ../cryptlib.h engine_int.h
|
||||
hw_atalla.o: vendor_defns/atalla.h
|
||||
hw_cswift.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
hw_cswift.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
hw_cswift.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -179,16 +185,17 @@ hw_cswift.o: ../../include/openssl/dso.h ../../include/openssl/e_os.h
|
|||
hw_cswift.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
|
||||
hw_cswift.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
hw_cswift.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
hw_cswift.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
hw_cswift.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
hw_cswift.o: ../../include/openssl/objects.h
|
||||
hw_cswift.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
hw_cswift.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
hw_cswift.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
hw_cswift.o: ../../include/openssl/opensslconf.h
|
||||
hw_cswift.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
hw_cswift.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
hw_cswift.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
hw_cswift.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
hw_cswift.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
hw_cswift.o: ../cryptlib.h engine_int.h vendor_defns/cswift.h
|
||||
hw_cswift.o: ../../include/openssl/symhacks.h ../cryptlib.h engine_int.h
|
||||
hw_cswift.o: vendor_defns/cswift.h
|
||||
hw_ncipher.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
hw_ncipher.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
hw_ncipher.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -198,9 +205,9 @@ hw_ncipher.o: ../../include/openssl/dso.h ../../include/openssl/e_os.h
|
|||
hw_ncipher.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
|
||||
hw_ncipher.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
hw_ncipher.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
hw_ncipher.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
hw_ncipher.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
hw_ncipher.o: ../../include/openssl/objects.h
|
||||
hw_ncipher.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
hw_ncipher.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
hw_ncipher.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
hw_ncipher.o: ../../include/openssl/opensslconf.h
|
||||
hw_ncipher.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
hw_ncipher.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
||||
|
@ -208,6 +215,6 @@ hw_ncipher.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
|||
hw_ncipher.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
hw_ncipher.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
hw_ncipher.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
hw_ncipher.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
hw_ncipher.o: ../../include/openssl/x509_vfy.h ../cryptlib.h engine_int.h
|
||||
hw_ncipher.o: vendor_defns/hwcryptohook.h
|
||||
hw_ncipher.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
hw_ncipher.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
hw_ncipher.o: ../cryptlib.h engine_int.h vendor_defns/hwcryptohook.h
|
||||
|
|
|
@ -83,7 +83,8 @@ err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
|||
err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
err.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
err.o: ../cryptlib.h
|
||||
err_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
err_all.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
err_all.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -94,15 +95,16 @@ err_all.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
err_all.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
err_all.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
err_all.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
err_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
err_all.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
err_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
err_all.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h
|
||||
err_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
|
||||
err_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
err_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
err_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
err_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
err_all.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
err_all.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
err_all.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
err_all.o: ../../include/openssl/opensslv.h ../../include/openssl/pem2.h
|
||||
err_all.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
err_all.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
err_all.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
err_all.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
err_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
err_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
err_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
err_all.o: ../../include/openssl/x509v3.h
|
||||
err_prn.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
|
@ -110,4 +112,5 @@ err_prn.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
|||
err_prn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
err_prn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
err_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
err_prn.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
err_prn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
err_prn.o: ../cryptlib.h
|
||||
|
|
|
@ -537,7 +537,7 @@ char *ERR_error_string(unsigned long e, char *ret)
|
|||
static char buf[256];
|
||||
|
||||
if (ret == NULL) ret=buf;
|
||||
ERR_error_string_n(e, buf, 256);
|
||||
ERR_error_string_n(e, ret, 256);
|
||||
|
||||
return(ret);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -67,6 +67,9 @@ void OpenSSL_add_all_digests(void)
|
|||
#ifndef NO_MD2
|
||||
EVP_add_digest(EVP_md2());
|
||||
#endif
|
||||
#ifndef NO_MD4
|
||||
EVP_add_digest(EVP_md4());
|
||||
#endif
|
||||
#ifndef NO_MD5
|
||||
EVP_add_digest(EVP_md5());
|
||||
EVP_add_digest_alias(SN_md5,"ssl2-md5");
|
||||
|
|
|
@ -292,7 +292,17 @@ int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
|
|||
/* If we are at the end of input and it looks like a
|
||||
* line, process it. */
|
||||
if (((i+1) == inl) && (((n&3) == 0) || eof))
|
||||
{
|
||||
v=B64_EOF;
|
||||
/* In case things were given us in really small
|
||||
records (so two '=' were given in separate
|
||||
updates), eof may contain the incorrect number
|
||||
of ending bytes to skip, so let's redo the count */
|
||||
eof = 0;
|
||||
if (d[n-1] == '=') eof++;
|
||||
if (d[n-2] == '=') eof++;
|
||||
/* There will never be more than two '=' */
|
||||
}
|
||||
|
||||
if ((v == B64_EOF) || (n >= 64))
|
||||
{
|
||||
|
|
|
@ -73,6 +73,9 @@
|
|||
#ifndef NO_MD2
|
||||
#include <openssl/md2.h>
|
||||
#endif
|
||||
#ifndef NO_MD4
|
||||
#include <openssl/md4.h>
|
||||
#endif
|
||||
#ifndef NO_MD5
|
||||
#include <openssl/md5.h>
|
||||
#endif
|
||||
|
@ -309,6 +312,9 @@ typedef struct env_md_ctx_st
|
|||
#ifndef NO_MD5
|
||||
MD5_CTX md5;
|
||||
#endif
|
||||
#ifndef NO_MD4
|
||||
MD4_CTX md4;
|
||||
#endif
|
||||
#ifndef NO_RIPEMD
|
||||
RIPEMD160_CTX ripemd160;
|
||||
#endif
|
||||
|
@ -607,6 +613,7 @@ void BIO_set_cipher(BIO *b,const EVP_CIPHER *c,unsigned char *k,
|
|||
|
||||
EVP_MD *EVP_md_null(void);
|
||||
EVP_MD *EVP_md2(void);
|
||||
EVP_MD *EVP_md4(void);
|
||||
EVP_MD *EVP_md5(void);
|
||||
EVP_MD *EVP_sha(void);
|
||||
EVP_MD *EVP_sha1(void);
|
||||
|
|
|
@ -85,10 +85,11 @@ hmac.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
|||
hmac.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
|
||||
hmac.o: ../../include/openssl/evp.h ../../include/openssl/hmac.h
|
||||
hmac.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
|
||||
hmac.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
hmac.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
hmac.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
hmac.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
hmac.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
hmac.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
hmac.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
hmac.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
hmac.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
hmac.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
hmac.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h
|
||||
hmac.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
hmac.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
hmac.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
hmac.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
|
|
|
@ -38,7 +38,7 @@ $ SDIRS := ,MD2,MD5,SHA,MDC2,HMAC,RIPEMD,-
|
|||
BUFFER,BIO,STACK,LHASH,RAND,ERR,OBJECTS,-
|
||||
EVP,ASN1,PEM,X509,X509V3,-
|
||||
CONF,TXT_DB,PKCS7,PKCS12,COMP
|
||||
$ EXHEADER_ := crypto.h,tmdiff.h,opensslv.h,opensslconf.h,ebcdic.h
|
||||
$ EXHEADER_ := crypto.h,tmdiff.h,opensslv.h,opensslconf.h,ebcdic.h,symhacks.h
|
||||
$ EXHEADER_MD2 := md2.h
|
||||
$ EXHEADER_MD5 := md5.h
|
||||
$ EXHEADER_SHA := sha.h
|
||||
|
|
|
@ -83,7 +83,9 @@ lh_stats.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
|||
lh_stats.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
lh_stats.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
lh_stats.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
lh_stats.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
lh_stats.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
lh_stats.o: ../cryptlib.h
|
||||
lhash.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
|
||||
lhash.o: ../../include/openssl/lhash.h ../../include/openssl/opensslv.h
|
||||
lhash.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
lhash.o: ../../include/openssl/symhacks.h
|
||||
|
|
|
@ -86,4 +86,4 @@ md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|||
md2_one.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
md2_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
md2_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
md2_one.o: ../cryptlib.h
|
||||
md2_one.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
|
|
|
@ -84,6 +84,7 @@ mdc2_one.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
mdc2_one.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
mdc2_one.o: ../../include/openssl/mdc2.h ../../include/openssl/opensslconf.h
|
||||
mdc2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
mdc2_one.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
mdc2_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
mdc2_one.o: ../cryptlib.h
|
||||
mdc2dgst.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
|
||||
mdc2dgst.o: ../../include/openssl/mdc2.h ../../include/openssl/opensslconf.h
|
||||
|
|
|
@ -83,7 +83,7 @@ o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
|
|||
o_names.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
|
||||
o_names.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
o_names.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
o_names.o: ../../include/openssl/stack.h
|
||||
o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
obj_dat.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
obj_dat.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||
obj_dat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
|
@ -91,13 +91,15 @@ obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|||
obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
|
||||
obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
obj_dat.o: ../../include/openssl/stack.h ../cryptlib.h obj_dat.h
|
||||
obj_dat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
obj_dat.o: ../cryptlib.h obj_dat.h
|
||||
obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
|
||||
obj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
obj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
obj_err.o: ../../include/openssl/symhacks.h
|
||||
obj_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
obj_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||
obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
|
@ -105,4 +107,5 @@ obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|||
obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
|
||||
obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
|
||||
obj_lib.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
obj_lib.o: ../cryptlib.h
|
||||
|
|
|
@ -134,7 +134,8 @@ static unsigned long add_hash(ADDED_OBJ *ca)
|
|||
ret=a->nid;
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
/* abort(); */
|
||||
return 0;
|
||||
}
|
||||
ret&=0x3fffffffL;
|
||||
ret|=ca->type<<30L;
|
||||
|
@ -167,7 +168,8 @@ static int add_cmp(ADDED_OBJ *ca, ADDED_OBJ *cb)
|
|||
case ADDED_NID:
|
||||
return(a->nid-b->nid);
|
||||
default:
|
||||
abort();
|
||||
/* abort(); */
|
||||
return 0;
|
||||
}
|
||||
return(1); /* should not get here */
|
||||
}
|
||||
|
|
|
@ -61,12 +61,12 @@
|
|||
* perl obj_dat.pl objects.h obj_dat.h
|
||||
*/
|
||||
|
||||
#define NUM_NID 379
|
||||
#define NUM_SN 346
|
||||
#define NUM_LN 195
|
||||
#define NUM_OBJ 352
|
||||
#define NUM_NID 393
|
||||
#define NUM_SN 392
|
||||
#define NUM_LN 392
|
||||
#define NUM_OBJ 366
|
||||
|
||||
static unsigned char lvalues[2838]={
|
||||
static unsigned char lvalues[2896]={
|
||||
0x00, /* [ 0] OBJ_undef */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 1] OBJ_rsadsi */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 7] OBJ_pkcs */
|
||||
|
@ -419,6 +419,20 @@ static unsigned char lvalues[2838]={
|
|||
0x2B,0x0E,0x03,0x02, /* [2826] OBJ_algorithm */
|
||||
0x2B,0x0E,0x03,0x02,0x0B, /* [2830] OBJ_rsaSignature */
|
||||
0x55,0x08, /* [2835] OBJ_X500algorithms */
|
||||
0x2B, /* [2837] OBJ_org */
|
||||
0x2B,0x06, /* [2838] OBJ_dod */
|
||||
0x2B,0x06,0x01, /* [2840] OBJ_iana */
|
||||
0x2B,0x06,0x01,0x01, /* [2843] OBJ_Directory */
|
||||
0x2B,0x06,0x01,0x02, /* [2847] OBJ_Management */
|
||||
0x2B,0x06,0x01,0x03, /* [2851] OBJ_Experimental */
|
||||
0x2B,0x06,0x01,0x04, /* [2855] OBJ_Private */
|
||||
0x2B,0x06,0x01,0x05, /* [2859] OBJ_Security */
|
||||
0x2B,0x06,0x01,0x06, /* [2863] OBJ_SNMPv2 */
|
||||
0x2B,0x06,0x01,0x07, /* [2867] OBJ_Mail */
|
||||
0x01, /* [2871] OBJ_Enterprises */
|
||||
0xBA,0x82,0x58, /* [2872] OBJ_dcObject */
|
||||
0x09,0x92,0x26,0x89,0x93,0xF2,0x2C,0x64,0x01,0x19,/* [2875] OBJ_domainComponent */
|
||||
0x09,0x92,0x26,0x89,0x93,0xF2,0x2C,0x64,0x04,0x0D,/* [2885] OBJ_Domain */
|
||||
};
|
||||
|
||||
static ASN1_OBJECT nid_objs[NUM_NID]={
|
||||
|
@ -993,8 +1007,9 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
|
|||
&(lvalues[2695]),0},
|
||||
{"id-cct-PKIResponse","id-cct-PKIResponse",NID_id_cct_PKIResponse,8,
|
||||
&(lvalues[2703]),0},
|
||||
{"timestamping","Time Stamping",NID_ad_timeStamping,8,&(lvalues[2711]),0},
|
||||
{"DVCS","dvcs",NID_ad_dvcs,8,&(lvalues[2719]),0},
|
||||
{"ad_timestamping","AD Time Stamping",NID_ad_timeStamping,8,
|
||||
&(lvalues[2711]),0},
|
||||
{"AD_DVCS","ad dvcs",NID_ad_dvcs,8,&(lvalues[2719]),0},
|
||||
{"basicOCSPResponse","Basic OCSP Response",NID_id_pkix_OCSP_basic,9,
|
||||
&(lvalues[2727]),0},
|
||||
{"Nonce","OCSP Nonce",NID_id_pkix_OCSP_Nonce,9,&(lvalues[2736]),0},
|
||||
|
@ -1016,9 +1031,24 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
|
|||
{"rsaSignature","rsaSignature",NID_rsaSignature,5,&(lvalues[2830]),0},
|
||||
{"X500algorithms","directory services - algorithms",
|
||||
NID_X500algorithms,2,&(lvalues[2835]),0},
|
||||
{"ORG","org",NID_org,1,&(lvalues[2837]),0},
|
||||
{"DOD","dod",NID_dod,2,&(lvalues[2838]),0},
|
||||
{"IANA","iana",NID_iana,3,&(lvalues[2840]),0},
|
||||
{"directory","Directory",NID_Directory,4,&(lvalues[2843]),0},
|
||||
{"mgmt","Management",NID_Management,4,&(lvalues[2847]),0},
|
||||
{"experimental","Experimental",NID_Experimental,4,&(lvalues[2851]),0},
|
||||
{"private","Private",NID_Private,4,&(lvalues[2855]),0},
|
||||
{"security","Security",NID_Security,4,&(lvalues[2859]),0},
|
||||
{"snmpv2","SNMPv2",NID_SNMPv2,4,&(lvalues[2863]),0},
|
||||
{"mail","Mail",NID_Mail,4,&(lvalues[2867]),0},
|
||||
{"enterprises","Enterprises",NID_Enterprises,1,&(lvalues[2871]),0},
|
||||
{"dcobject","dcObject",NID_dcObject,3,&(lvalues[2872]),0},
|
||||
{"DC","domainComponent",NID_domainComponent,10,&(lvalues[2875]),0},
|
||||
{"domain","Domain",NID_Domain,10,&(lvalues[2885]),0},
|
||||
};
|
||||
|
||||
static ASN1_OBJECT *sn_objs[NUM_SN]={
|
||||
&(nid_objs[364]),/* "AD_DVCS" */
|
||||
&(nid_objs[91]),/* "BF-CBC" */
|
||||
&(nid_objs[93]),/* "BF-CFB" */
|
||||
&(nid_objs[92]),/* "BF-ECB" */
|
||||
|
@ -1032,6 +1062,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[141]),/* "CRLReason" */
|
||||
&(nid_objs[367]),/* "CrlID" */
|
||||
&(nid_objs[107]),/* "D" */
|
||||
&(nid_objs[391]),/* "DC" */
|
||||
&(nid_objs[31]),/* "DES-CBC" */
|
||||
&(nid_objs[30]),/* "DES-CFB" */
|
||||
&(nid_objs[29]),/* "DES-ECB" */
|
||||
|
@ -1045,16 +1076,17 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[63]),/* "DES-EDE3-OFB" */
|
||||
&(nid_objs[45]),/* "DES-OFB" */
|
||||
&(nid_objs[80]),/* "DESX-CBC" */
|
||||
&(nid_objs[380]),/* "DOD" */
|
||||
&(nid_objs[116]),/* "DSA" */
|
||||
&(nid_objs[66]),/* "DSA-SHA" */
|
||||
&(nid_objs[113]),/* "DSA-SHA1" */
|
||||
&(nid_objs[70]),/* "DSA-SHA1-old" */
|
||||
&(nid_objs[67]),/* "DSA-old" */
|
||||
&(nid_objs[297]),/* "DVCS" */
|
||||
&(nid_objs[364]),/* "DVCS" */
|
||||
&(nid_objs[48]),/* "Email" */
|
||||
&(nid_objs[99]),/* "G" */
|
||||
&(nid_objs[101]),/* "I" */
|
||||
&(nid_objs[381]),/* "IANA" */
|
||||
&(nid_objs[34]),/* "IDEA-CBC" */
|
||||
&(nid_objs[35]),/* "IDEA-CFB" */
|
||||
&(nid_objs[36]),/* "IDEA-ECB" */
|
||||
|
@ -1072,6 +1104,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[17]),/* "O" */
|
||||
&(nid_objs[178]),/* "OCSP" */
|
||||
&(nid_objs[180]),/* "OCSPSigning" */
|
||||
&(nid_objs[379]),/* "ORG" */
|
||||
&(nid_objs[18]),/* "OU" */
|
||||
&(nid_objs[ 9]),/* "PBE-MD2-DES" */
|
||||
&(nid_objs[168]),/* "PBE-MD2-RC2-64" */
|
||||
|
@ -1085,6 +1118,9 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[68]),/* "PBE-SHA1-RC2-64" */
|
||||
&(nid_objs[144]),/* "PBE-SHA1-RC4-128" */
|
||||
&(nid_objs[145]),/* "PBE-SHA1-RC4-40" */
|
||||
&(nid_objs[161]),/* "PBES2" */
|
||||
&(nid_objs[69]),/* "PBKDF2" */
|
||||
&(nid_objs[162]),/* "PBMAC1" */
|
||||
&(nid_objs[127]),/* "PKIX" */
|
||||
&(nid_objs[98]),/* "RC2-40-CBC" */
|
||||
&(nid_objs[166]),/* "RC2-64-CBC" */
|
||||
|
@ -1130,6 +1166,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[287]),/* "ac-auditEntity" */
|
||||
&(nid_objs[288]),/* "ac-targeting" */
|
||||
&(nid_objs[368]),/* "acceptableResponses" */
|
||||
&(nid_objs[363]),/* "ad_timestamping" */
|
||||
&(nid_objs[376]),/* "algorithm" */
|
||||
&(nid_objs[370]),/* "archiveCutoff" */
|
||||
&(nid_objs[177]),/* "authorityInfoAccess" */
|
||||
|
@ -1138,17 +1175,31 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[365]),/* "basicOCSPResponse" */
|
||||
&(nid_objs[285]),/* "biometricInfo" */
|
||||
&(nid_objs[179]),/* "caIssuers" */
|
||||
&(nid_objs[152]),/* "certBag" */
|
||||
&(nid_objs[89]),/* "certificatePolicies" */
|
||||
&(nid_objs[54]),/* "challengePassword" */
|
||||
&(nid_objs[130]),/* "clientAuth" */
|
||||
&(nid_objs[131]),/* "codeSigning" */
|
||||
&(nid_objs[50]),/* "contentType" */
|
||||
&(nid_objs[53]),/* "countersignature" */
|
||||
&(nid_objs[153]),/* "crlBag" */
|
||||
&(nid_objs[103]),/* "crlDistributionPoints" */
|
||||
&(nid_objs[88]),/* "crlNumber" */
|
||||
&(nid_objs[390]),/* "dcobject" */
|
||||
&(nid_objs[140]),/* "deltaCRL" */
|
||||
&(nid_objs[28]),/* "dhKeyAgreement" */
|
||||
&(nid_objs[382]),/* "directory" */
|
||||
&(nid_objs[174]),/* "dnQualifier" */
|
||||
&(nid_objs[392]),/* "domain" */
|
||||
&(nid_objs[132]),/* "emailProtection" */
|
||||
&(nid_objs[389]),/* "enterprises" */
|
||||
&(nid_objs[384]),/* "experimental" */
|
||||
&(nid_objs[172]),/* "extReq" */
|
||||
&(nid_objs[56]),/* "extendedCertificateAttributes" */
|
||||
&(nid_objs[126]),/* "extendedKeyUsage" */
|
||||
&(nid_objs[372]),/* "extendedStatus" */
|
||||
&(nid_objs[156]),/* "friendlyName" */
|
||||
&(nid_objs[163]),/* "hmacWithSHA1" */
|
||||
&(nid_objs[266]),/* "id-aca" */
|
||||
&(nid_objs[355]),/* "id-aca-accessIdentity" */
|
||||
&(nid_objs[354]),/* "id-aca-authenticationInfo" */
|
||||
|
@ -1320,8 +1371,13 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[295]),/* "ipsecTunnel" */
|
||||
&(nid_objs[296]),/* "ipsecUser" */
|
||||
&(nid_objs[86]),/* "issuerAltName" */
|
||||
&(nid_objs[150]),/* "keyBag" */
|
||||
&(nid_objs[83]),/* "keyUsage" */
|
||||
&(nid_objs[157]),/* "localKeyID" */
|
||||
&(nid_objs[388]),/* "mail" */
|
||||
&(nid_objs[182]),/* "member-body" */
|
||||
&(nid_objs[51]),/* "messageDigest" */
|
||||
&(nid_objs[383]),/* "mgmt" */
|
||||
&(nid_objs[136]),/* "msCTLSign" */
|
||||
&(nid_objs[135]),/* "msCodeCom" */
|
||||
&(nid_objs[134]),/* "msCodeInd" */
|
||||
|
@ -1343,38 +1399,62 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
|
|||
&(nid_objs[139]),/* "nsSGC" */
|
||||
&(nid_objs[77]),/* "nsSslServerName" */
|
||||
&(nid_objs[374]),/* "path" */
|
||||
&(nid_objs[112]),/* "pbeWithMD5AndCast5CBC" */
|
||||
&(nid_objs[ 2]),/* "pkcs" */
|
||||
&(nid_objs[186]),/* "pkcs1" */
|
||||
&(nid_objs[27]),/* "pkcs3" */
|
||||
&(nid_objs[187]),/* "pkcs5" */
|
||||
&(nid_objs[20]),/* "pkcs7" */
|
||||
&(nid_objs[21]),/* "pkcs7-data" */
|
||||
&(nid_objs[25]),/* "pkcs7-digestData" */
|
||||
&(nid_objs[26]),/* "pkcs7-encryptedData" */
|
||||
&(nid_objs[23]),/* "pkcs7-envelopedData" */
|
||||
&(nid_objs[24]),/* "pkcs7-signedAndEnvelopedData" */
|
||||
&(nid_objs[22]),/* "pkcs7-signedData" */
|
||||
&(nid_objs[151]),/* "pkcs8ShroudedKeyBag" */
|
||||
&(nid_objs[47]),/* "pkcs9" */
|
||||
&(nid_objs[385]),/* "private" */
|
||||
&(nid_objs[84]),/* "privateKeyUsagePeriod" */
|
||||
&(nid_objs[286]),/* "qcStatements" */
|
||||
&(nid_objs[ 6]),/* "rsaEncryption" */
|
||||
&(nid_objs[377]),/* "rsaSignature" */
|
||||
&(nid_objs[ 1]),/* "rsadsi" */
|
||||
&(nid_objs[155]),/* "safeContentsBag" */
|
||||
&(nid_objs[291]),/* "sbqp-autonomousSysNum" */
|
||||
&(nid_objs[290]),/* "sbqp-ipAddrBlock" */
|
||||
&(nid_objs[292]),/* "sbqp-routerIdentifier" */
|
||||
&(nid_objs[159]),/* "sdsiCertificate" */
|
||||
&(nid_objs[154]),/* "secretBag" */
|
||||
&(nid_objs[386]),/* "security" */
|
||||
&(nid_objs[129]),/* "serverAuth" */
|
||||
&(nid_objs[371]),/* "serviceLocator" */
|
||||
&(nid_objs[52]),/* "signingTime" */
|
||||
&(nid_objs[387]),/* "snmpv2" */
|
||||
&(nid_objs[85]),/* "subjectAltName" */
|
||||
&(nid_objs[82]),/* "subjectKeyIdentifier" */
|
||||
&(nid_objs[293]),/* "textNotice" */
|
||||
&(nid_objs[133]),/* "timeStamping" */
|
||||
&(nid_objs[363]),/* "timestamping" */
|
||||
&(nid_objs[375]),/* "trustRoot" */
|
||||
&(nid_objs[55]),/* "unstructuredAddress" */
|
||||
&(nid_objs[49]),/* "unstructuredName" */
|
||||
&(nid_objs[373]),/* "valid" */
|
||||
&(nid_objs[158]),/* "x509Certificate" */
|
||||
&(nid_objs[160]),/* "x509Crl" */
|
||||
};
|
||||
|
||||
static ASN1_OBJECT *ln_objs[NUM_LN]={
|
||||
&(nid_objs[363]),/* "AD Time Stamping" */
|
||||
&(nid_objs[368]),/* "Acceptable OCSP Responses" */
|
||||
&(nid_objs[177]),/* "Authority Information Access" */
|
||||
&(nid_objs[365]),/* "Basic OCSP Response" */
|
||||
&(nid_objs[285]),/* "Biometric Info" */
|
||||
&(nid_objs[179]),/* "CA Issuers" */
|
||||
&(nid_objs[131]),/* "Code Signing" */
|
||||
&(nid_objs[382]),/* "Directory" */
|
||||
&(nid_objs[392]),/* "Domain" */
|
||||
&(nid_objs[132]),/* "E-mail Protection" */
|
||||
&(nid_objs[389]),/* "Enterprises" */
|
||||
&(nid_objs[384]),/* "Experimental" */
|
||||
&(nid_objs[372]),/* "Extended OCSP Status" */
|
||||
&(nid_objs[172]),/* "Extension Request" */
|
||||
&(nid_objs[294]),/* "IPSec End System" */
|
||||
|
@ -1383,6 +1463,8 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[182]),/* "ISO Member Body" */
|
||||
&(nid_objs[183]),/* "ISO US Member Body" */
|
||||
&(nid_objs[142]),/* "Invalidity Date" */
|
||||
&(nid_objs[388]),/* "Mail" */
|
||||
&(nid_objs[383]),/* "Management" */
|
||||
&(nid_objs[135]),/* "Microsoft Commercial Code Signing" */
|
||||
&(nid_objs[138]),/* "Microsoft Encrypted File System" */
|
||||
&(nid_objs[171]),/* "Microsoft Extension Request" */
|
||||
|
@ -1402,27 +1484,31 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[73]),/* "Netscape Revocation Url" */
|
||||
&(nid_objs[77]),/* "Netscape SSL Server Name" */
|
||||
&(nid_objs[139]),/* "Netscape Server Gated Crypto" */
|
||||
&(nid_objs[178]),/* "OCSP" */
|
||||
&(nid_objs[370]),/* "OCSP Archive Cutoff" */
|
||||
&(nid_objs[367]),/* "OCSP CRL ID" */
|
||||
&(nid_objs[366]),/* "OCSP Nonce" */
|
||||
&(nid_objs[371]),/* "OCSP Service Locator" */
|
||||
&(nid_objs[180]),/* "OCSP Signing" */
|
||||
&(nid_objs[178]),/* "OCSP" */
|
||||
&(nid_objs[161]),/* "PBES2" */
|
||||
&(nid_objs[69]),/* "PBKDF2" */
|
||||
&(nid_objs[162]),/* "PBMAC1" */
|
||||
&(nid_objs[127]),/* "PKIX" */
|
||||
&(nid_objs[164]),/* "Policy Qualifier CPS" */
|
||||
&(nid_objs[165]),/* "Policy Qualifier User Notice" */
|
||||
&(nid_objs[ 2]),/* "RSA Data Security, Inc. PKCS" */
|
||||
&(nid_objs[385]),/* "Private" */
|
||||
&(nid_objs[ 1]),/* "RSA Data Security, Inc." */
|
||||
&(nid_objs[167]),/* "S/MIME Capabilities" */
|
||||
&(nid_objs[ 2]),/* "RSA Data Security, Inc. PKCS" */
|
||||
&(nid_objs[188]),/* "S/MIME" */
|
||||
&(nid_objs[167]),/* "S/MIME Capabilities" */
|
||||
&(nid_objs[387]),/* "SNMPv2" */
|
||||
&(nid_objs[386]),/* "Security" */
|
||||
&(nid_objs[143]),/* "Strong Extranet ID" */
|
||||
&(nid_objs[130]),/* "TLS Web Client Authentication" */
|
||||
&(nid_objs[129]),/* "TLS Web Server Authentication" */
|
||||
&(nid_objs[133]),/* "Time Stamping" */
|
||||
&(nid_objs[363]),/* "Time Stamping" */
|
||||
&(nid_objs[375]),/* "Trust Root" */
|
||||
&(nid_objs[12]),/* "X509" */
|
||||
&(nid_objs[90]),/* "X509v3 Authority Key Identifier" */
|
||||
&(nid_objs[87]),/* "X509v3 Basic Constraints" */
|
||||
&(nid_objs[103]),/* "X509v3 CRL Distribution Points" */
|
||||
|
@ -1436,8 +1522,12 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[84]),/* "X509v3 Private Key Usage Period" */
|
||||
&(nid_objs[85]),/* "X509v3 Subject Alternative Name" */
|
||||
&(nid_objs[82]),/* "X509v3 Subject Key Identifier" */
|
||||
&(nid_objs[185]),/* "X9.57 CM ?" */
|
||||
&(nid_objs[184]),/* "X9.57" */
|
||||
&(nid_objs[185]),/* "X9.57 CM ?" */
|
||||
&(nid_objs[289]),/* "aaControls" */
|
||||
&(nid_objs[287]),/* "ac-auditEntity" */
|
||||
&(nid_objs[288]),/* "ac-targeting" */
|
||||
&(nid_objs[364]),/* "ad dvcs" */
|
||||
&(nid_objs[376]),/* "algorithm" */
|
||||
&(nid_objs[91]),/* "bf-cbc" */
|
||||
&(nid_objs[93]),/* "bf-cfb" */
|
||||
|
@ -1454,6 +1544,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[53]),/* "countersignature" */
|
||||
&(nid_objs[14]),/* "countryName" */
|
||||
&(nid_objs[153]),/* "crlBag" */
|
||||
&(nid_objs[390]),/* "dcObject" */
|
||||
&(nid_objs[31]),/* "des-cbc" */
|
||||
&(nid_objs[30]),/* "des-cfb" */
|
||||
&(nid_objs[29]),/* "des-ecb" */
|
||||
|
@ -1472,18 +1563,184 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[11]),/* "directory services (X.500)" */
|
||||
&(nid_objs[378]),/* "directory services - algorithms" */
|
||||
&(nid_objs[174]),/* "dnQualifier" */
|
||||
&(nid_objs[380]),/* "dod" */
|
||||
&(nid_objs[391]),/* "domainComponent" */
|
||||
&(nid_objs[116]),/* "dsaEncryption" */
|
||||
&(nid_objs[67]),/* "dsaEncryption-old" */
|
||||
&(nid_objs[66]),/* "dsaWithSHA" */
|
||||
&(nid_objs[113]),/* "dsaWithSHA1" */
|
||||
&(nid_objs[70]),/* "dsaWithSHA1-old" */
|
||||
&(nid_objs[297]),/* "dvcs" */
|
||||
&(nid_objs[364]),/* "dvcs" */
|
||||
&(nid_objs[48]),/* "emailAddress" */
|
||||
&(nid_objs[56]),/* "extendedCertificateAttributes" */
|
||||
&(nid_objs[156]),/* "friendlyName" */
|
||||
&(nid_objs[99]),/* "givenName" */
|
||||
&(nid_objs[163]),/* "hmacWithSHA1" */
|
||||
&(nid_objs[381]),/* "iana" */
|
||||
&(nid_objs[266]),/* "id-aca" */
|
||||
&(nid_objs[355]),/* "id-aca-accessIdentity" */
|
||||
&(nid_objs[354]),/* "id-aca-authenticationInfo" */
|
||||
&(nid_objs[356]),/* "id-aca-chargingIdentity" */
|
||||
&(nid_objs[357]),/* "id-aca-group" */
|
||||
&(nid_objs[358]),/* "id-aca-role" */
|
||||
&(nid_objs[176]),/* "id-ad" */
|
||||
&(nid_objs[262]),/* "id-alg" */
|
||||
&(nid_objs[323]),/* "id-alg-des40" */
|
||||
&(nid_objs[326]),/* "id-alg-dh-pop" */
|
||||
&(nid_objs[325]),/* "id-alg-dh-sig-hmac-sha1" */
|
||||
&(nid_objs[324]),/* "id-alg-noSignature" */
|
||||
&(nid_objs[268]),/* "id-cct" */
|
||||
&(nid_objs[361]),/* "id-cct-PKIData" */
|
||||
&(nid_objs[362]),/* "id-cct-PKIResponse" */
|
||||
&(nid_objs[360]),/* "id-cct-crs" */
|
||||
&(nid_objs[81]),/* "id-ce" */
|
||||
&(nid_objs[263]),/* "id-cmc" */
|
||||
&(nid_objs[334]),/* "id-cmc-addExtensions" */
|
||||
&(nid_objs[346]),/* "id-cmc-confirmCertAcceptance" */
|
||||
&(nid_objs[330]),/* "id-cmc-dataReturn" */
|
||||
&(nid_objs[336]),/* "id-cmc-decryptedPOP" */
|
||||
&(nid_objs[335]),/* "id-cmc-encryptedPOP" */
|
||||
&(nid_objs[339]),/* "id-cmc-getCRL" */
|
||||
&(nid_objs[338]),/* "id-cmc-getCert" */
|
||||
&(nid_objs[328]),/* "id-cmc-identification" */
|
||||
&(nid_objs[329]),/* "id-cmc-identityProof" */
|
||||
&(nid_objs[337]),/* "id-cmc-lraPOPWitness" */
|
||||
&(nid_objs[344]),/* "id-cmc-popLinkRandom" */
|
||||
&(nid_objs[345]),/* "id-cmc-popLinkWitness" */
|
||||
&(nid_objs[343]),/* "id-cmc-queryPending" */
|
||||
&(nid_objs[333]),/* "id-cmc-recipientNonce" */
|
||||
&(nid_objs[341]),/* "id-cmc-regInfo" */
|
||||
&(nid_objs[342]),/* "id-cmc-responseInfo" */
|
||||
&(nid_objs[340]),/* "id-cmc-revokeRequest" */
|
||||
&(nid_objs[332]),/* "id-cmc-senderNonce" */
|
||||
&(nid_objs[327]),/* "id-cmc-statusInfo" */
|
||||
&(nid_objs[331]),/* "id-cmc-transactionId" */
|
||||
&(nid_objs[260]),/* "id-it" */
|
||||
&(nid_objs[302]),/* "id-it-caKeyUpdateInfo" */
|
||||
&(nid_objs[298]),/* "id-it-caProtEncCert" */
|
||||
&(nid_objs[311]),/* "id-it-confirmWaitTime" */
|
||||
&(nid_objs[303]),/* "id-it-currentCRL" */
|
||||
&(nid_objs[300]),/* "id-it-encKeyPairTypes" */
|
||||
&(nid_objs[310]),/* "id-it-implicitConfirm" */
|
||||
&(nid_objs[308]),/* "id-it-keyPairParamRep" */
|
||||
&(nid_objs[307]),/* "id-it-keyPairParamReq" */
|
||||
&(nid_objs[312]),/* "id-it-origPKIMessage" */
|
||||
&(nid_objs[301]),/* "id-it-preferredSymmAlg" */
|
||||
&(nid_objs[309]),/* "id-it-revPassphrase" */
|
||||
&(nid_objs[299]),/* "id-it-signKeyPairTypes" */
|
||||
&(nid_objs[305]),/* "id-it-subscriptionRequest" */
|
||||
&(nid_objs[306]),/* "id-it-subscriptionResponse" */
|
||||
&(nid_objs[304]),/* "id-it-unsupportedOIDs" */
|
||||
&(nid_objs[128]),/* "id-kp" */
|
||||
&(nid_objs[280]),/* "id-mod-attribute-cert" */
|
||||
&(nid_objs[274]),/* "id-mod-cmc" */
|
||||
&(nid_objs[277]),/* "id-mod-cmp" */
|
||||
&(nid_objs[284]),/* "id-mod-cmp2000" */
|
||||
&(nid_objs[273]),/* "id-mod-crmf" */
|
||||
&(nid_objs[283]),/* "id-mod-dvcs" */
|
||||
&(nid_objs[275]),/* "id-mod-kea-profile-88" */
|
||||
&(nid_objs[276]),/* "id-mod-kea-profile-93" */
|
||||
&(nid_objs[282]),/* "id-mod-ocsp" */
|
||||
&(nid_objs[278]),/* "id-mod-qualified-cert-88" */
|
||||
&(nid_objs[279]),/* "id-mod-qualified-cert-93" */
|
||||
&(nid_objs[281]),/* "id-mod-timestamp-protocol" */
|
||||
&(nid_objs[264]),/* "id-on" */
|
||||
&(nid_objs[347]),/* "id-on-personalData" */
|
||||
&(nid_objs[265]),/* "id-pda" */
|
||||
&(nid_objs[352]),/* "id-pda-countryOfCitizenship" */
|
||||
&(nid_objs[353]),/* "id-pda-countryOfResidence" */
|
||||
&(nid_objs[348]),/* "id-pda-dateOfBirth" */
|
||||
&(nid_objs[351]),/* "id-pda-gender" */
|
||||
&(nid_objs[349]),/* "id-pda-placeOfBirth" */
|
||||
&(nid_objs[350]),/* "id-pda-pseudonym" */
|
||||
&(nid_objs[175]),/* "id-pe" */
|
||||
&(nid_objs[261]),/* "id-pkip" */
|
||||
&(nid_objs[258]),/* "id-pkix-mod" */
|
||||
&(nid_objs[269]),/* "id-pkix1-explicit-88" */
|
||||
&(nid_objs[271]),/* "id-pkix1-explicit-93" */
|
||||
&(nid_objs[270]),/* "id-pkix1-implicit-88" */
|
||||
&(nid_objs[272]),/* "id-pkix1-implicit-93" */
|
||||
&(nid_objs[267]),/* "id-qcs" */
|
||||
&(nid_objs[359]),/* "id-qcs-pkixQCSyntax-v1" */
|
||||
&(nid_objs[259]),/* "id-qt" */
|
||||
&(nid_objs[313]),/* "id-regCtrl" */
|
||||
&(nid_objs[316]),/* "id-regCtrl-authenticator" */
|
||||
&(nid_objs[319]),/* "id-regCtrl-oldCertID" */
|
||||
&(nid_objs[318]),/* "id-regCtrl-pkiArchiveOptions" */
|
||||
&(nid_objs[317]),/* "id-regCtrl-pkiPublicationInfo" */
|
||||
&(nid_objs[320]),/* "id-regCtrl-protocolEncrKey" */
|
||||
&(nid_objs[315]),/* "id-regCtrl-regToken" */
|
||||
&(nid_objs[314]),/* "id-regInfo" */
|
||||
&(nid_objs[322]),/* "id-regInfo-certReq" */
|
||||
&(nid_objs[321]),/* "id-regInfo-utf8Pairs" */
|
||||
&(nid_objs[191]),/* "id-smime-aa" */
|
||||
&(nid_objs[215]),/* "id-smime-aa-contentHint" */
|
||||
&(nid_objs[218]),/* "id-smime-aa-contentIdentifier" */
|
||||
&(nid_objs[221]),/* "id-smime-aa-contentReference" */
|
||||
&(nid_objs[240]),/* "id-smime-aa-dvcs-dvc" */
|
||||
&(nid_objs[217]),/* "id-smime-aa-encapContentType" */
|
||||
&(nid_objs[222]),/* "id-smime-aa-encrypKeyPref" */
|
||||
&(nid_objs[220]),/* "id-smime-aa-equivalentLabels" */
|
||||
&(nid_objs[232]),/* "id-smime-aa-ets-CertificateRefs" */
|
||||
&(nid_objs[233]),/* "id-smime-aa-ets-RevocationRefs" */
|
||||
&(nid_objs[238]),/* "id-smime-aa-ets-archiveTimeStamp" */
|
||||
&(nid_objs[237]),/* "id-smime-aa-ets-certCRLTimestamp" */
|
||||
&(nid_objs[234]),/* "id-smime-aa-ets-certValues" */
|
||||
&(nid_objs[227]),/* "id-smime-aa-ets-commitmentType" */
|
||||
&(nid_objs[231]),/* "id-smime-aa-ets-contentTimestamp" */
|
||||
&(nid_objs[236]),/* "id-smime-aa-ets-escTimeStamp" */
|
||||
&(nid_objs[230]),/* "id-smime-aa-ets-otherSigCert" */
|
||||
&(nid_objs[235]),/* "id-smime-aa-ets-revocationValues" */
|
||||
&(nid_objs[226]),/* "id-smime-aa-ets-sigPolicyId" */
|
||||
&(nid_objs[229]),/* "id-smime-aa-ets-signerAttr" */
|
||||
&(nid_objs[228]),/* "id-smime-aa-ets-signerLocation" */
|
||||
&(nid_objs[219]),/* "id-smime-aa-macValue" */
|
||||
&(nid_objs[214]),/* "id-smime-aa-mlExpandHistory" */
|
||||
&(nid_objs[216]),/* "id-smime-aa-msgSigDigest" */
|
||||
&(nid_objs[212]),/* "id-smime-aa-receiptRequest" */
|
||||
&(nid_objs[213]),/* "id-smime-aa-securityLabel" */
|
||||
&(nid_objs[239]),/* "id-smime-aa-signatureType" */
|
||||
&(nid_objs[223]),/* "id-smime-aa-signingCertificate" */
|
||||
&(nid_objs[224]),/* "id-smime-aa-smimeEncryptCerts" */
|
||||
&(nid_objs[225]),/* "id-smime-aa-timeStampToken" */
|
||||
&(nid_objs[192]),/* "id-smime-alg" */
|
||||
&(nid_objs[243]),/* "id-smime-alg-3DESwrap" */
|
||||
&(nid_objs[246]),/* "id-smime-alg-CMS3DESwrap" */
|
||||
&(nid_objs[247]),/* "id-smime-alg-CMSRC2wrap" */
|
||||
&(nid_objs[245]),/* "id-smime-alg-ESDH" */
|
||||
&(nid_objs[241]),/* "id-smime-alg-ESDHwith3DES" */
|
||||
&(nid_objs[242]),/* "id-smime-alg-ESDHwithRC2" */
|
||||
&(nid_objs[244]),/* "id-smime-alg-RC2wrap" */
|
||||
&(nid_objs[193]),/* "id-smime-cd" */
|
||||
&(nid_objs[248]),/* "id-smime-cd-ldap" */
|
||||
&(nid_objs[190]),/* "id-smime-ct" */
|
||||
&(nid_objs[210]),/* "id-smime-ct-DVCSRequestData" */
|
||||
&(nid_objs[211]),/* "id-smime-ct-DVCSResponseData" */
|
||||
&(nid_objs[208]),/* "id-smime-ct-TDTInfo" */
|
||||
&(nid_objs[207]),/* "id-smime-ct-TSTInfo" */
|
||||
&(nid_objs[205]),/* "id-smime-ct-authData" */
|
||||
&(nid_objs[209]),/* "id-smime-ct-contentInfo" */
|
||||
&(nid_objs[206]),/* "id-smime-ct-publishCert" */
|
||||
&(nid_objs[204]),/* "id-smime-ct-receipt" */
|
||||
&(nid_objs[195]),/* "id-smime-cti" */
|
||||
&(nid_objs[255]),/* "id-smime-cti-ets-proofOfApproval" */
|
||||
&(nid_objs[256]),/* "id-smime-cti-ets-proofOfCreation" */
|
||||
&(nid_objs[253]),/* "id-smime-cti-ets-proofOfDelivery" */
|
||||
&(nid_objs[251]),/* "id-smime-cti-ets-proofOfOrigin" */
|
||||
&(nid_objs[252]),/* "id-smime-cti-ets-proofOfReceipt" */
|
||||
&(nid_objs[254]),/* "id-smime-cti-ets-proofOfSender" */
|
||||
&(nid_objs[189]),/* "id-smime-mod" */
|
||||
&(nid_objs[196]),/* "id-smime-mod-cms" */
|
||||
&(nid_objs[197]),/* "id-smime-mod-ess" */
|
||||
&(nid_objs[202]),/* "id-smime-mod-ets-eSigPolicy-88" */
|
||||
&(nid_objs[203]),/* "id-smime-mod-ets-eSigPolicy-97" */
|
||||
&(nid_objs[200]),/* "id-smime-mod-ets-eSignature-88" */
|
||||
&(nid_objs[201]),/* "id-smime-mod-ets-eSignature-97" */
|
||||
&(nid_objs[199]),/* "id-smime-mod-msg-v3" */
|
||||
&(nid_objs[198]),/* "id-smime-mod-oid" */
|
||||
&(nid_objs[194]),/* "id-smime-spq" */
|
||||
&(nid_objs[250]),/* "id-smime-spq-ets-sqt-unotice" */
|
||||
&(nid_objs[249]),/* "id-smime-spq-ets-sqt-uri" */
|
||||
&(nid_objs[34]),/* "idea-cbc" */
|
||||
&(nid_objs[35]),/* "idea-cfb" */
|
||||
&(nid_objs[36]),/* "idea-ecb" */
|
||||
|
@ -1504,8 +1761,11 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[96]),/* "mdc2WithRSA" */
|
||||
&(nid_objs[51]),/* "messageDigest" */
|
||||
&(nid_objs[173]),/* "name" */
|
||||
&(nid_objs[369]),/* "noCheck" */
|
||||
&(nid_objs[379]),/* "org" */
|
||||
&(nid_objs[17]),/* "organizationName" */
|
||||
&(nid_objs[18]),/* "organizationalUnitName" */
|
||||
&(nid_objs[374]),/* "path" */
|
||||
&(nid_objs[ 9]),/* "pbeWithMD2AndDES-CBC" */
|
||||
&(nid_objs[168]),/* "pbeWithMD2AndRC2-CBC" */
|
||||
&(nid_objs[112]),/* "pbeWithMD5AndCast5CBC" */
|
||||
|
@ -1519,6 +1779,10 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[145]),/* "pbeWithSHA1And40BitRC4" */
|
||||
&(nid_objs[170]),/* "pbeWithSHA1AndDES-CBC" */
|
||||
&(nid_objs[68]),/* "pbeWithSHA1AndRC2-CBC" */
|
||||
&(nid_objs[186]),/* "pkcs1" */
|
||||
&(nid_objs[27]),/* "pkcs3" */
|
||||
&(nid_objs[187]),/* "pkcs5" */
|
||||
&(nid_objs[20]),/* "pkcs7" */
|
||||
&(nid_objs[21]),/* "pkcs7-data" */
|
||||
&(nid_objs[25]),/* "pkcs7-digestData" */
|
||||
&(nid_objs[26]),/* "pkcs7-encryptedData" */
|
||||
|
@ -1526,6 +1790,8 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[24]),/* "pkcs7-signedAndEnvelopedData" */
|
||||
&(nid_objs[22]),/* "pkcs7-signedData" */
|
||||
&(nid_objs[151]),/* "pkcs8ShroudedKeyBag" */
|
||||
&(nid_objs[47]),/* "pkcs9" */
|
||||
&(nid_objs[286]),/* "qcStatements" */
|
||||
&(nid_objs[98]),/* "rc2-40-cbc" */
|
||||
&(nid_objs[166]),/* "rc2-64-cbc" */
|
||||
&(nid_objs[37]),/* "rc2-cbc" */
|
||||
|
@ -1542,8 +1808,12 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[119]),/* "ripemd160WithRSA" */
|
||||
&(nid_objs[19]),/* "rsa" */
|
||||
&(nid_objs[ 6]),/* "rsaEncryption" */
|
||||
&(nid_objs[377]),/* "rsaSignature" */
|
||||
&(nid_objs[124]),/* "run length compression" */
|
||||
&(nid_objs[155]),/* "safeContentsBag" */
|
||||
&(nid_objs[291]),/* "sbqp-autonomousSysNum" */
|
||||
&(nid_objs[290]),/* "sbqp-ipAddrBlock" */
|
||||
&(nid_objs[292]),/* "sbqp-routerIdentifier" */
|
||||
&(nid_objs[159]),/* "sdsiCertificate" */
|
||||
&(nid_objs[154]),/* "secretBag" */
|
||||
&(nid_objs[105]),/* "serialNumber" */
|
||||
|
@ -1555,11 +1825,13 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
&(nid_objs[52]),/* "signingTime" */
|
||||
&(nid_objs[16]),/* "stateOrProvinceName" */
|
||||
&(nid_objs[100]),/* "surname" */
|
||||
&(nid_objs[293]),/* "textNotice" */
|
||||
&(nid_objs[106]),/* "title" */
|
||||
&(nid_objs[ 0]),/* "undefined" */
|
||||
&(nid_objs[102]),/* "uniqueIdentifier" */
|
||||
&(nid_objs[55]),/* "unstructuredAddress" */
|
||||
&(nid_objs[49]),/* "unstructuredName" */
|
||||
&(nid_objs[373]),/* "valid" */
|
||||
&(nid_objs[158]),/* "x509Certificate" */
|
||||
&(nid_objs[160]),/* "x509Crl" */
|
||||
&(nid_objs[125]),/* "zlib compression" */
|
||||
|
@ -1567,13 +1839,17 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
|
|||
|
||||
static ASN1_OBJECT *obj_objs[NUM_OBJ]={
|
||||
&(nid_objs[ 0]),/* OBJ_undef 0 */
|
||||
&(nid_objs[389]),/* OBJ_Enterprises 1 */
|
||||
&(nid_objs[181]),/* OBJ_iso 1 */
|
||||
&(nid_objs[182]),/* OBJ_member_body 1 2 */
|
||||
&(nid_objs[379]),/* OBJ_org 1 3 */
|
||||
&(nid_objs[11]),/* OBJ_X500 2 5 */
|
||||
&(nid_objs[380]),/* OBJ_dod 1 3 6 */
|
||||
&(nid_objs[12]),/* OBJ_X509 2 5 4 */
|
||||
&(nid_objs[378]),/* OBJ_X500algorithms 2 5 8 */
|
||||
&(nid_objs[81]),/* OBJ_id_ce 2 5 29 */
|
||||
&(nid_objs[183]),/* OBJ_ISO_US 1 2 840 */
|
||||
&(nid_objs[381]),/* OBJ_iana 1 3 6 1 */
|
||||
&(nid_objs[13]),/* OBJ_commonName 2 5 4 3 */
|
||||
&(nid_objs[100]),/* OBJ_surname 2 5 4 4 */
|
||||
&(nid_objs[105]),/* OBJ_serialNumber 2 5 4 5 */
|
||||
|
@ -1603,6 +1879,14 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
|
|||
&(nid_objs[89]),/* OBJ_certificate_policies 2 5 29 32 */
|
||||
&(nid_objs[90]),/* OBJ_authority_key_identifier 2 5 29 35 */
|
||||
&(nid_objs[126]),/* OBJ_ext_key_usage 2 5 29 37 */
|
||||
&(nid_objs[390]),/* OBJ_dcObject 1466 344 */
|
||||
&(nid_objs[382]),/* OBJ_Directory 1 3 6 1 1 */
|
||||
&(nid_objs[383]),/* OBJ_Management 1 3 6 1 2 */
|
||||
&(nid_objs[384]),/* OBJ_Experimental 1 3 6 1 3 */
|
||||
&(nid_objs[385]),/* OBJ_Private 1 3 6 1 4 */
|
||||
&(nid_objs[386]),/* OBJ_Security 1 3 6 1 5 */
|
||||
&(nid_objs[387]),/* OBJ_SNMPv2 1 3 6 1 6 */
|
||||
&(nid_objs[388]),/* OBJ_Mail 1 3 6 1 7 */
|
||||
&(nid_objs[376]),/* OBJ_algorithm 1 3 14 3 2 */
|
||||
&(nid_objs[19]),/* OBJ_rsa 2 5 8 1 1 */
|
||||
&(nid_objs[96]),/* OBJ_mdc2WithRSA 2 5 8 3 100 */
|
||||
|
@ -1828,6 +2112,8 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
|
|||
&(nid_objs[78]),/* OBJ_netscape_comment 2 16 840 1 113730 1 13 */
|
||||
&(nid_objs[79]),/* OBJ_netscape_cert_sequence 2 16 840 1 113730 2 5 */
|
||||
&(nid_objs[139]),/* OBJ_ns_sgc 2 16 840 1 113730 4 1 */
|
||||
&(nid_objs[391]),/* OBJ_domainComponent 0 9 2342 19200300 100 1 25 */
|
||||
&(nid_objs[392]),/* OBJ_Domain 0 9 2342 19200300 100 4 13 */
|
||||
&(nid_objs[189]),/* OBJ_id_smime_mod 1 2 840 113549 1 9 16 0 */
|
||||
&(nid_objs[190]),/* OBJ_id_smime_ct 1 2 840 113549 1 9 16 1 */
|
||||
&(nid_objs[191]),/* OBJ_id_smime_aa 1 2 840 113549 1 9 16 2 */
|
||||
|
|
|
@ -46,10 +46,28 @@ while (<IN>)
|
|||
next unless /^\#define\s+(\S+)\s+(.*)$/;
|
||||
$v=$1;
|
||||
$d=$2;
|
||||
$d =~ s/^\"//;
|
||||
$d =~ s/\"$//;
|
||||
if ($v =~ /^SN_(.*)$/)
|
||||
{ $sn{$1}=$d; }
|
||||
{
|
||||
if(defined $snames{$d})
|
||||
{
|
||||
print "WARNING: Duplicate short name \"$d\"\n";
|
||||
}
|
||||
else
|
||||
{ $snames{$d} = "X"; }
|
||||
$sn{$1}=$d;
|
||||
}
|
||||
elsif ($v =~ /^LN_(.*)$/)
|
||||
{ $ln{$1}=$d; }
|
||||
{
|
||||
if(defined $lnames{$d})
|
||||
{
|
||||
print "WARNING: Duplicate long name \"$d\"\n";
|
||||
}
|
||||
else
|
||||
{ $lnames{$d} = "X"; }
|
||||
$ln{$1}=$d;
|
||||
}
|
||||
elsif ($v =~ /^NID_(.*)$/)
|
||||
{ $nid{$d}=$1; }
|
||||
elsif ($v =~ /^OBJ_(.*)$/)
|
||||
|
@ -78,11 +96,20 @@ for ($i=0; $i<$n; $i++)
|
|||
{
|
||||
$sn=defined($sn{$nid{$i}})?"$sn{$nid{$i}}":"NULL";
|
||||
$ln=defined($ln{$nid{$i}})?"$ln{$nid{$i}}":"NULL";
|
||||
$sn=$ln if ($sn eq "NULL");
|
||||
$ln=$sn if ($ln eq "NULL");
|
||||
|
||||
if ($sn eq "NULL") {
|
||||
$sn=$ln;
|
||||
$sn{$nid{$i}} = $ln;
|
||||
}
|
||||
|
||||
if ($ln eq "NULL") {
|
||||
$ln=$sn;
|
||||
$ln{$nid{$i}} = $sn;
|
||||
}
|
||||
|
||||
$out ="{";
|
||||
$out.=$sn;
|
||||
$out.=",".$ln;
|
||||
$out.="\"$sn\"";
|
||||
$out.=","."\"$ln\"";
|
||||
$out.=",NID_$nid{$i},";
|
||||
if (defined($obj{$nid{$i}}))
|
||||
{
|
||||
|
@ -117,13 +144,13 @@ for ($i=0; $i<$n; $i++)
|
|||
@a=grep(defined($sn{$nid{$_}}),0 .. $n);
|
||||
foreach (sort { $sn{$nid{$a}} cmp $sn{$nid{$b}} } @a)
|
||||
{
|
||||
push(@sn,sprintf("&(nid_objs[%2d]),/* $sn{$nid{$_}} */\n",$_));
|
||||
push(@sn,sprintf("&(nid_objs[%2d]),/* \"$sn{$nid{$_}}\" */\n",$_));
|
||||
}
|
||||
|
||||
@a=grep(defined($ln{$nid{$_}}),0 .. $n);
|
||||
foreach (sort { $ln{$nid{$a}} cmp $ln{$nid{$b}} } @a)
|
||||
{
|
||||
push(@ln,sprintf("&(nid_objs[%2d]),/* $ln{$nid{$_}} */\n",$_));
|
||||
push(@ln,sprintf("&(nid_objs[%2d]),/* \"$ln{$nid{$_}}\" */\n",$_));
|
||||
}
|
||||
|
||||
@a=grep(defined($obj{$nid{$_}}),0 .. $n);
|
||||
|
|
|
@ -1290,13 +1290,13 @@
|
|||
#define NID_ad_ca_issuers 179
|
||||
#define OBJ_ad_ca_issuers OBJ_id_ad,2L
|
||||
|
||||
#define SN_ad_timeStamping "timestamping"
|
||||
#define LN_ad_timeStamping "Time Stamping"
|
||||
#define SN_ad_timeStamping "ad_timestamping"
|
||||
#define LN_ad_timeStamping "AD Time Stamping"
|
||||
#define NID_ad_timeStamping 363
|
||||
#define OBJ_ad_timeStamping OBJ_id_ad,3L
|
||||
|
||||
#define SN_ad_dvcs "DVCS"
|
||||
#define LN_ad_dvcs "dvcs"
|
||||
#define SN_ad_dvcs "AD_DVCS"
|
||||
#define LN_ad_dvcs "ad dvcs"
|
||||
#define NID_ad_dvcs 364
|
||||
#define OBJ_ad_dvcs OBJ_id_ad,4L
|
||||
|
||||
|
@ -1714,6 +1714,78 @@
|
|||
#define NID_ns_sgc 139
|
||||
#define OBJ_ns_sgc OBJ_netscape,4L,1L
|
||||
|
||||
#define SN_org "ORG"
|
||||
#define LN_org "org"
|
||||
#define NID_org 379
|
||||
#define OBJ_org OBJ_iso,3L
|
||||
|
||||
#define SN_dod "DOD"
|
||||
#define LN_dod "dod"
|
||||
#define NID_dod 380
|
||||
#define OBJ_dod OBJ_org,6L
|
||||
|
||||
#define SN_iana "IANA"
|
||||
#define LN_iana "iana"
|
||||
#define NID_iana 381
|
||||
#define OBJ_iana OBJ_dod,1L
|
||||
|
||||
#define OBJ_internet OBJ_iana
|
||||
|
||||
#define SN_Directory "directory"
|
||||
#define LN_Directory "Directory"
|
||||
#define NID_Directory 382
|
||||
#define OBJ_Directory OBJ_internet,1L
|
||||
|
||||
#define SN_Management "mgmt"
|
||||
#define LN_Management "Management"
|
||||
#define NID_Management 383
|
||||
#define OBJ_Management OBJ_internet,2L
|
||||
|
||||
#define SN_Experimental "experimental"
|
||||
#define LN_Experimental "Experimental"
|
||||
#define NID_Experimental 384
|
||||
#define OBJ_Experimental OBJ_internet,3L
|
||||
|
||||
#define SN_Private "private"
|
||||
#define LN_Private "Private"
|
||||
#define NID_Private 385
|
||||
#define OBJ_Private OBJ_internet,4L
|
||||
|
||||
#define SN_Security "security"
|
||||
#define LN_Security "Security"
|
||||
#define NID_Security 386
|
||||
#define OBJ_Security OBJ_internet,5L
|
||||
|
||||
#define SN_SNMPv2 "snmpv2"
|
||||
#define LN_SNMPv2 "SNMPv2"
|
||||
#define NID_SNMPv2 387
|
||||
#define OBJ_SNMPv2 OBJ_internet,6L
|
||||
|
||||
#define SN_Mail "mail"
|
||||
#define LN_Mail "Mail"
|
||||
#define NID_Mail 388
|
||||
#define OBJ_Mail OBJ_internet,7L
|
||||
|
||||
#define SN_Enterprises "enterprises"
|
||||
#define LN_Enterprises "Enterprises"
|
||||
#define NID_Enterprises 389
|
||||
#define OBJ_Enterprises OBJ_private,1L
|
||||
|
||||
#define SN_dcObject "dcobject"
|
||||
#define LN_dcObject "dcObject"
|
||||
#define NID_dcObject 390
|
||||
#define OBJ_dcObject OBJ_enterprises,1466L,344L
|
||||
|
||||
#define SN_domainComponent "DC"
|
||||
#define LN_domainComponent "domainComponent"
|
||||
#define NID_domainComponent 391
|
||||
#define OBJ_domainComponent 0L,9L,2342L,19200300L,100L,1L,25L
|
||||
|
||||
#define SN_Domain "domain"
|
||||
#define LN_Domain "Domain"
|
||||
#define NID_Domain 392
|
||||
#define OBJ_Domain 0L,9L,2342L,19200300L,100L,4L,13L
|
||||
|
||||
#define SN_rle_compression "RLE"
|
||||
#define LN_rle_compression "run length compression"
|
||||
#define NID_rle_compression 124
|
||||
|
|
|
@ -376,3 +376,17 @@ id_pkix_OCSP_trustRoot 375
|
|||
algorithm 376
|
||||
rsaSignature 377
|
||||
X500algorithms 378
|
||||
org 379
|
||||
dod 380
|
||||
iana 381
|
||||
Directory 382
|
||||
Management 383
|
||||
Experimental 384
|
||||
Private 385
|
||||
Security 386
|
||||
SNMPv2 387
|
||||
Mail 388
|
||||
Enterprises 389
|
||||
dcObject 390
|
||||
domainComponent 391
|
||||
Domain 392
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
1 : ISO : iso
|
||||
|
||||
iso 2 : member-body : ISO Member Body
|
||||
|
||||
member-body 840 : ISO-US : ISO US Member Body
|
||||
ISO-US 10040 : X9-57 : X9.57
|
||||
X9-57 4 : X9cm : X9.57 CM ?
|
||||
|
@ -320,8 +322,7 @@ id-kp 6 : ipsecTunnel : IPSec Tunnel
|
|||
id-kp 7 : ipsecUser : IPSec User
|
||||
!Cname time-stamp
|
||||
id-kp 8 : timeStamping : Time Stamping
|
||||
#??? According to PKIX, id-kp 9 is temporalDataAuthority
|
||||
#??? I've no idea where OCSP-sign comes from -- Richard Levitte
|
||||
# From OCSP spec RFC2560
|
||||
!Cname OCSP-sign
|
||||
id-kp 9 : OCSPSigning : OCSP Signing
|
||||
id-kp 10 : DVCS : dvcs
|
||||
|
@ -421,9 +422,9 @@ id-ad 1 : OCSP : OCSP
|
|||
!Cname ad-ca-issuers
|
||||
id-ad 2 : caIssuers : CA Issuers
|
||||
!Cname ad-timeStamping
|
||||
id-ad 3 : timestamping : Time Stamping
|
||||
id-ad 3 : ad_timestamping : AD Time Stamping
|
||||
!Cname ad-dvcs
|
||||
id-ad 4 : DVCS : dvcs
|
||||
id-ad 4 : AD_DVCS : ad dvcs
|
||||
|
||||
|
||||
!Alias id-pkix-OCSP ad-OCSP
|
||||
|
@ -560,8 +561,33 @@ netscape-data-type 5 : nsCertSequence : Netscape Certificate Sequence
|
|||
!Cname ns-sgc
|
||||
netscape 4 1 : nsSGC : Netscape Server Gated Crypto
|
||||
|
||||
# iso(1)
|
||||
iso 3 : ORG : org
|
||||
org 6 : DOD : dod
|
||||
dod 1 : IANA : iana
|
||||
!Alias internet iana
|
||||
|
||||
internet 1 : directory : Directory
|
||||
internet 2 : mgmt : Management
|
||||
internet 3 : experimental : Experimental
|
||||
internet 4 : private : Private
|
||||
internet 5 : security : Security
|
||||
internet 6 : snmpv2 : SNMPv2
|
||||
internet 7 : mail : Mail
|
||||
|
||||
private 1 : enterprises : Enterprises
|
||||
|
||||
# RFC 2247
|
||||
enterprises 1466 344 : dcobject : dcObject
|
||||
|
||||
# Stray OIDs we don't know the full name of each step for
|
||||
# RFC 2247
|
||||
0 9 2342 19200300 100 1 25 : DC : domainComponent
|
||||
0 9 2342 19200300 100 4 13 : domain : Domain
|
||||
|
||||
# What the hell are these OIDs, really?
|
||||
!Cname rle-compression
|
||||
1 1 1 1 666 1 : RLE : run length compression
|
||||
!Cname zlib-compression
|
||||
1 1 1 1 666 2 : ZLIB : zlib compression
|
||||
|
||||
|
|
|
@ -87,15 +87,16 @@ pem_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pem_all.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pem_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pem_all.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pem_all.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pem_all.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pem_all.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pem_all.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
pem_all.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
||||
pem_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pem_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pem_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pem_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pem_all.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pem_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pem_all.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pem_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
pem_all.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h
|
||||
pem_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
pem_all.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pem_all.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pem_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pem_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pem_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pem_all.o: ../cryptlib.h
|
||||
pem_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
|
@ -106,15 +107,16 @@ pem_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pem_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
pem_err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
pem_err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
pem_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pem_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pem_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
pem_err.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h
|
||||
pem_err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
pem_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pem_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pem_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pem_err.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
pem_err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
pem_err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pem_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pem_err.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
pem_err.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
||||
pem_err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pem_err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pem_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pem_err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pem_err.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
pem_err.o: ../../include/openssl/x509_vfy.h
|
||||
pem_info.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pem_info.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
|
@ -124,17 +126,18 @@ pem_info.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pem_info.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pem_info.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pem_info.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pem_info.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pem_info.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pem_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pem_info.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pem_info.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pem_info.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pem_info.o: ../../include/openssl/opensslconf.h
|
||||
pem_info.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
pem_info.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
||||
pem_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pem_info.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pem_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pem_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pem_info.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pem_info.o: ../cryptlib.h
|
||||
pem_info.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
pem_info.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
pem_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pem_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
pem_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -143,16 +146,17 @@ pem_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pem_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pem_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pem_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pem_lib.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pem_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pem_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pem_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
pem_lib.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h
|
||||
pem_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
|
||||
pem_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pem_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pem_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pem_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pem_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pem_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pem_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pem_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
pem_lib.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h
|
||||
pem_lib.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
pem_lib.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
pem_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pem_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pem_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pem_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pem_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pem_lib.o: ../cryptlib.h
|
||||
pem_seal.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
|
@ -163,17 +167,19 @@ pem_seal.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pem_seal.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pem_seal.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pem_seal.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pem_seal.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pem_seal.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pem_seal.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pem_seal.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pem_seal.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pem_seal.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pem_seal.o: ../../include/openssl/opensslconf.h
|
||||
pem_seal.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
pem_seal.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
||||
pem_seal.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
pem_seal.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pem_seal.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pem_seal.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pem_seal.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
pem_seal.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
pem_seal.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pem_seal.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pem_seal.o: ../cryptlib.h
|
||||
pem_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pem_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
pem_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -182,14 +188,16 @@ pem_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pem_sign.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pem_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pem_sign.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pem_sign.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pem_sign.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pem_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pem_sign.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pem_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pem_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pem_sign.o: ../../include/openssl/opensslconf.h
|
||||
pem_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
pem_sign.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
||||
pem_sign.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
pem_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pem_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pem_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pem_sign.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
pem_sign.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
pem_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pem_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pem_sign.o: ../cryptlib.h
|
||||
|
|
|
@ -531,9 +531,7 @@ void PEM_dek_info(char *buf, const char *type, int len, char *str);
|
|||
|
||||
#ifndef SSLEAY_MACROS
|
||||
|
||||
#ifdef VMS
|
||||
#include <openssl/vms_idhacks.h>
|
||||
#endif
|
||||
#include <openssl/symhacks.h>
|
||||
|
||||
DECLARE_PEM_rw(X509, X509)
|
||||
|
||||
|
|
|
@ -92,15 +92,16 @@ p12_add.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_add.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_add.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_add.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_add.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_add.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_add.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_add.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_add.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_add.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_add.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_add.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_add.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_add.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_add.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_add.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_add.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
p12_add.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
p12_add.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
p12_add.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
p12_add.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
p12_add.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
p12_add.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
p12_add.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_attr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_attr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
|
@ -110,16 +111,18 @@ p12_attr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_attr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_attr.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_attr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_attr.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_attr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_attr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_attr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_attr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_attr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_attr.o: ../../include/openssl/opensslconf.h
|
||||
p12_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_attr.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_attr.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_attr.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_attr.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_attr.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_attr.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_attr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_attr.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_attr.o: ../cryptlib.h
|
||||
p12_bags.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||
p12_bags.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||
p12_bags.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||
|
@ -129,16 +132,17 @@ p12_bags.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
|||
p12_bags.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
p12_bags.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
p12_bags.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
p12_bags.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_bags.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_bags.o: ../../include/openssl/opensslconf.h
|
||||
p12_bags.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
p12_bags.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_bags.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_bags.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_bags.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_bags.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_bags.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_bags.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_bags.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_bags.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_bags.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_bags.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_bags.o: ../cryptlib.h
|
||||
p12_crpt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_crpt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
p12_crpt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -147,16 +151,18 @@ p12_crpt.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_crpt.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_crpt.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_crpt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_crpt.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_crpt.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_crpt.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_crpt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_crpt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_crpt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_crpt.o: ../../include/openssl/opensslconf.h
|
||||
p12_crpt.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_crpt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_crpt.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_crpt.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_crpt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_crpt.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_crpt.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_crpt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_crpt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_crpt.o: ../cryptlib.h
|
||||
p12_crt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_crt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
p12_crt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -165,15 +171,16 @@ p12_crt.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_crt.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_crt.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_crt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_crt.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_crt.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_crt.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_crt.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_crt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_crt.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_crt.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_crt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_crt.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_crt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_crt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_crt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_crt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
p12_crt.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
p12_crt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
p12_crt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
p12_crt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
p12_crt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
p12_crt.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
p12_crt.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_decr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_decr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
|
@ -183,16 +190,18 @@ p12_decr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_decr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_decr.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_decr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_decr.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_decr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_decr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_decr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_decr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_decr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_decr.o: ../../include/openssl/opensslconf.h
|
||||
p12_decr.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_decr.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_decr.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_decr.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_decr.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_decr.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_decr.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_decr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_decr.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_decr.o: ../cryptlib.h
|
||||
p12_init.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_init.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
p12_init.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -201,16 +210,18 @@ p12_init.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_init.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_init.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_init.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_init.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_init.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_init.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_init.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_init.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_init.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_init.o: ../../include/openssl/opensslconf.h
|
||||
p12_init.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_init.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_init.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_init.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_init.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_init.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_init.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_init.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_init.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_init.o: ../cryptlib.h
|
||||
p12_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_key.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
p12_key.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -219,15 +230,16 @@ p12_key.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_key.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_key.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_key.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_key.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_key.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_key.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_key.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_key.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_key.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_key.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_key.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_key.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_key.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
p12_key.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
p12_key.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
p12_key.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
p12_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
p12_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
p12_key.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
p12_key.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_kiss.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_kiss.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
|
@ -237,16 +249,18 @@ p12_kiss.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_kiss.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_kiss.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_kiss.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_kiss.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_kiss.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_kiss.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_kiss.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_kiss.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_kiss.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_kiss.o: ../../include/openssl/opensslconf.h
|
||||
p12_kiss.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_kiss.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_kiss.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_kiss.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_kiss.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_kiss.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_kiss.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_kiss.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_kiss.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_kiss.o: ../cryptlib.h
|
||||
p12_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||
p12_lib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||
p12_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||
|
@ -256,14 +270,15 @@ p12_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
|||
p12_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
p12_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
p12_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
p12_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
p12_lib.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
p12_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
p12_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
p12_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
p12_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
p12_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
p12_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_lib.o: ../cryptlib.h
|
||||
p12_mac.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||
|
@ -275,14 +290,15 @@ p12_mac.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
|||
p12_mac.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
p12_mac.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
p12_mac.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
p12_mac.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_mac.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_mac.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
p12_mac.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
p12_mac.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
p12_mac.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
p12_mac.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
p12_mac.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
p12_mac.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
p12_mac.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_mac.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_mac.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_mac.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_mac.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_mac.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_mac.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_mac.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_mac.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_mac.o: ../cryptlib.h
|
||||
p12_mutl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
|
@ -294,17 +310,17 @@ p12_mutl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
p12_mutl.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_mutl.o: ../../include/openssl/hmac.h ../../include/openssl/idea.h
|
||||
p12_mutl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
p12_mutl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_mutl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_mutl.o: ../../include/openssl/opensslconf.h
|
||||
p12_mutl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
p12_mutl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_mutl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_mutl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_mutl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
|
||||
p12_mutl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
p12_mutl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
p12_mutl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
p12_mutl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
p12_mutl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_mutl.o: ../cryptlib.h
|
||||
p12_mutl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
p12_mutl.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_npas.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_npas.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
p12_npas.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -313,17 +329,17 @@ p12_npas.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_npas.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
p12_npas.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
p12_npas.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
p12_npas.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_npas.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_npas.o: ../../include/openssl/opensslconf.h
|
||||
p12_npas.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
p12_npas.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_npas.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_npas.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
p12_npas.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h
|
||||
p12_npas.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_npas.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_npas.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_npas.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_npas.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_npas.o: ../../include/openssl/x509_vfy.h
|
||||
p12_npas.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_npas.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_sbag.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
|
||||
p12_sbag.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
|
||||
p12_sbag.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||
|
@ -333,16 +349,17 @@ p12_sbag.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
|||
p12_sbag.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
p12_sbag.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
p12_sbag.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
p12_sbag.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_sbag.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_sbag.o: ../../include/openssl/opensslconf.h
|
||||
p12_sbag.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
p12_sbag.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_sbag.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_sbag.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_sbag.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_sbag.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_sbag.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_sbag.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_sbag.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_sbag.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
p12_sbag.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
p12_sbag.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
p12_sbag.o: ../cryptlib.h
|
||||
p12_utl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
p12_utl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
p12_utl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -351,15 +368,16 @@ p12_utl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
p12_utl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
p12_utl.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
p12_utl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
p12_utl.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
p12_utl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
p12_utl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
p12_utl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
p12_utl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
p12_utl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
p12_utl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
p12_utl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
p12_utl.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
p12_utl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
p12_utl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
p12_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
p12_utl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
p12_utl.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
p12_utl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
p12_utl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
p12_utl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
p12_utl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
p12_utl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
p12_utl.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
pk12err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pk12err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
|
@ -369,12 +387,13 @@ pk12err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pk12err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
pk12err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
pk12err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
pk12err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pk12err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pk12err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
pk12err.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
pk12err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pk12err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pk12err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pk12err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pk12err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
pk12err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pk12err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pk12err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs12.h
|
||||
pk12err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
pk12err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pk12err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pk12err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pk12err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pk12err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
|
|
|
@ -86,6 +86,8 @@ PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if(!X509_check_private_key(cert, pkey)) return NULL;
|
||||
|
||||
if(!(bags = sk_PKCS12_SAFEBAG_new (NULL))) {
|
||||
PKCS12err(PKCS12_F_PKCS12_CREATE,ERR_R_MALLOC_FAILURE);
|
||||
return NULL;
|
||||
|
|
|
@ -105,16 +105,17 @@ pk7_attr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pk7_attr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
pk7_attr.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
pk7_attr.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
pk7_attr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pk7_attr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pk7_attr.o: ../../include/openssl/opensslconf.h
|
||||
pk7_attr.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
pk7_attr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pk7_attr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pk7_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
|
||||
pk7_attr.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
||||
pk7_attr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pk7_attr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pk7_attr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pk7_attr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pk7_attr.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pk7_attr.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
pk7_attr.o: ../../include/openssl/x509_vfy.h
|
||||
pk7_doit.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pk7_doit.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
pk7_doit.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -124,17 +125,18 @@ pk7_doit.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
|||
pk7_doit.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pk7_doit.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pk7_doit.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pk7_doit.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pk7_doit.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pk7_doit.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pk7_doit.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pk7_doit.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pk7_doit.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pk7_doit.o: ../../include/openssl/opensslconf.h
|
||||
pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||
pk7_doit.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
pk7_doit.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pk7_doit.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pk7_doit.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pk7_doit.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
pk7_doit.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
|
||||
pk7_doit.o: ../cryptlib.h
|
||||
pk7_doit.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pk7_doit.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pk7_doit.o: ../../include/openssl/x509v3.h ../cryptlib.h
|
||||
pk7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pk7_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
pk7_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -143,14 +145,15 @@ pk7_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pk7_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pk7_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pk7_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pk7_lib.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pk7_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pk7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pk7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||
pk7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pk7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pk7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pk7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pk7_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pk7_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pk7_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pk7_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
pk7_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
|
||||
pk7_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pk7_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pk7_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pk7_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pk7_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pk7_lib.o: ../cryptlib.h
|
||||
pk7_mime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
|
@ -161,16 +164,18 @@ pk7_mime.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pk7_mime.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pk7_mime.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pk7_mime.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pk7_mime.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pk7_mime.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pk7_mime.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pk7_mime.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pk7_mime.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pk7_mime.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pk7_mime.o: ../../include/openssl/opensslconf.h
|
||||
pk7_mime.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||
pk7_mime.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
pk7_mime.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
pk7_mime.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
pk7_mime.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
pk7_mime.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
pk7_mime.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
pk7_mime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
pk7_mime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pk7_mime.o: ../cryptlib.h
|
||||
pk7_smime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pk7_smime.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
pk7_smime.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -180,17 +185,18 @@ pk7_smime.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
|
|||
pk7_smime.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
pk7_smime.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
pk7_smime.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
pk7_smime.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
pk7_smime.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pk7_smime.o: ../../include/openssl/objects.h
|
||||
pk7_smime.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
pk7_smime.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pk7_smime.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pk7_smime.o: ../../include/openssl/opensslconf.h
|
||||
pk7_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||
pk7_smime.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pk7_smime.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pk7_smime.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pk7_smime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pk7_smime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pk7_smime.o: ../../include/openssl/x509v3.h ../cryptlib.h
|
||||
pk7_smime.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
pk7_smime.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
|
||||
pk7_smime.o: ../cryptlib.h
|
||||
pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
pkcs7err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
pkcs7err.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -199,12 +205,13 @@ pkcs7err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
pkcs7err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
pkcs7err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
pkcs7err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
pkcs7err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
pkcs7err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
pkcs7err.o: ../../include/openssl/opensslconf.h
|
||||
pkcs7err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
pkcs7err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
pkcs7err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||
pkcs7err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
pkcs7err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
pkcs7err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
pkcs7err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
pkcs7err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
pkcs7err.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
pkcs7err.o: ../../include/openssl/x509_vfy.h
|
||||
|
|
|
@ -170,7 +170,7 @@ int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags)
|
|||
BIO_printf(bio, "micalg=sha1 ; boundary=\"----%s\"\n\n", bound);
|
||||
BIO_printf(bio, "This is an S/MIME signed message\n\n");
|
||||
/* Now write out the first part */
|
||||
BIO_printf(bio, "------%s\r\n", bound);
|
||||
BIO_printf(bio, "------%s\n", bound);
|
||||
if(flags & PKCS7_TEXT) BIO_printf(bio, "Content-Type: text/plain\n\n");
|
||||
while((i = BIO_read(data, linebuf, MAX_SMLEN)) > 0)
|
||||
BIO_write(bio, linebuf, i);
|
||||
|
|
|
@ -109,6 +109,8 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
|
|||
PKCS7_add_signed_attribute(si, NID_pkcs9_contentType,
|
||||
V_ASN1_OBJECT, OBJ_nid2obj(NID_pkcs7_data));
|
||||
/* Add SMIMECapabilities */
|
||||
if(!(flags & PKCS7_NOSMIMECAP))
|
||||
{
|
||||
if(!(smcap = sk_X509_ALGOR_new(NULL))) {
|
||||
PKCS7err(PKCS7_F_PKCS7_SIGN,ERR_R_MALLOC_FAILURE);
|
||||
return NULL;
|
||||
|
@ -128,6 +130,7 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
|
|||
#endif
|
||||
PKCS7_add_attrib_smimecap (si, smcap);
|
||||
sk_X509_ALGOR_pop_free(smcap, X509_ALGOR_free);
|
||||
}
|
||||
}
|
||||
|
||||
if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1);
|
||||
|
|
|
@ -210,6 +210,9 @@ typedef struct pkcs7_st
|
|||
|
||||
/* NID_pkcs7_encrypted */
|
||||
PKCS7_ENCRYPT *encrypted;
|
||||
|
||||
/* Anything else */
|
||||
ASN1_TYPE *other;
|
||||
} d;
|
||||
} PKCS7;
|
||||
|
||||
|
@ -244,15 +247,16 @@ DECLARE_PKCS12_STACK_OF(PKCS7)
|
|||
|
||||
/* S/MIME related flags */
|
||||
|
||||
#define PKCS7_TEXT 0x1
|
||||
#define PKCS7_NOCERTS 0x2
|
||||
#define PKCS7_NOSIGS 0x4
|
||||
#define PKCS7_NOCHAIN 0x8
|
||||
#define PKCS7_NOINTERN 0x10
|
||||
#define PKCS7_NOVERIFY 0x20
|
||||
#define PKCS7_DETACHED 0x40
|
||||
#define PKCS7_BINARY 0x80
|
||||
#define PKCS7_NOATTR 0x100
|
||||
#define PKCS7_TEXT 0x1
|
||||
#define PKCS7_NOCERTS 0x2
|
||||
#define PKCS7_NOSIGS 0x4
|
||||
#define PKCS7_NOCHAIN 0x8
|
||||
#define PKCS7_NOINTERN 0x10
|
||||
#define PKCS7_NOVERIFY 0x20
|
||||
#define PKCS7_DETACHED 0x40
|
||||
#define PKCS7_BINARY 0x80
|
||||
#define PKCS7_NOATTR 0x100
|
||||
#define PKCS7_NOSMIMECAP 0x200
|
||||
|
||||
/* Flags: for compatibility with older code */
|
||||
|
||||
|
|
|
@ -83,12 +83,14 @@ md_rand.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
md_rand.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
md_rand.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
md_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
|
||||
md_rand.o: ../../include/openssl/sha.h ../../include/openssl/stack.h rand_lcl.h
|
||||
md_rand.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
md_rand.o: ../../include/openssl/symhacks.h rand_lcl.h
|
||||
rand_egd.o: ../../include/openssl/opensslconf.h ../../include/openssl/rand.h
|
||||
rand_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
|
||||
rand_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
rand_err.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rand_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
rand_err.o: ../../include/openssl/symhacks.h
|
||||
rand_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
rand_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
rand_lib.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
|
||||
|
@ -96,22 +98,25 @@ rand_lib.o: ../../include/openssl/des.h ../../include/openssl/dh.h
|
|||
rand_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
|
||||
rand_lib.o: ../../include/openssl/engine.h ../../include/openssl/evp.h
|
||||
rand_lib.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
|
||||
rand_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
rand_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
rand_lib.o: ../../include/openssl/opensslconf.h
|
||||
rand_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
rand_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
rand_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
rand_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rand_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
rand_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
rand_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rand_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
rand_lib.o: ../../include/openssl/symhacks.h
|
||||
rand_win.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
||||
rand_win.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
rand_win.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
rand_win.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
rand_win.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rand_win.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
rand_win.o: ../../include/openssl/stack.h ../cryptlib.h rand_lcl.h
|
||||
rand_win.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
rand_win.o: ../cryptlib.h rand_lcl.h
|
||||
randfile.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
|
||||
randfile.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
|
||||
randfile.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
randfile.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
randfile.o: ../../include/openssl/symhacks.h
|
||||
|
|
|
@ -182,6 +182,7 @@ static void ssleay_rand_cleanup(void)
|
|||
md_count[0]=0;
|
||||
md_count[1]=0;
|
||||
entropy=0;
|
||||
initialized=0;
|
||||
}
|
||||
|
||||
static void ssleay_rand_add(const void *buf, int num, double add)
|
||||
|
|
|
@ -85,6 +85,7 @@ rsa_chk.o: ../../include/openssl/crypto.h ../../include/openssl/err.h
|
|||
rsa_chk.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
rsa_chk.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h
|
||||
rsa_chk.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
rsa_chk.o: ../../include/openssl/symhacks.h
|
||||
rsa_eay.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
rsa_eay.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
rsa_eay.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -94,26 +95,29 @@ rsa_eay.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
rsa_eay.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
rsa_eay.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
rsa_eay.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
rsa_eay.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
rsa_eay.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
rsa_eay.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
rsa_eay.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
rsa_eay.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
rsa_eay.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
rsa_eay.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
rsa_eay.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
rsa_eay.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
rsa_eay.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
rsa_eay.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
rsa_eay.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rsa_eay.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
rsa_eay.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
rsa_eay.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rsa_eay.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
rsa_eay.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
rsa_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
rsa_err.o: ../../include/openssl/crypto.h ../../include/openssl/err.h
|
||||
rsa_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
||||
rsa_err.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h
|
||||
rsa_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
rsa_err.o: ../../include/openssl/symhacks.h
|
||||
rsa_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
rsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
rsa_gen.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
rsa_gen.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
||||
rsa_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
rsa_gen.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rsa_gen.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
rsa_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
rsa_gen.o: ../cryptlib.h
|
||||
rsa_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
rsa_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
rsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -123,14 +127,15 @@ rsa_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
rsa_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
rsa_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
rsa_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
rsa_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
rsa_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
rsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
rsa_lib.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
rsa_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
rsa_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
rsa_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
rsa_lib.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
rsa_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
rsa_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
rsa_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
rsa_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rsa_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
rsa_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
rsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rsa_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
rsa_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
rsa_none.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
rsa_none.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
rsa_none.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -138,7 +143,8 @@ rsa_none.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
rsa_none.o: ../../include/openssl/opensslconf.h
|
||||
rsa_none.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rsa_none.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rsa_none.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
rsa_none.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
rsa_none.o: ../cryptlib.h
|
||||
rsa_null.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
rsa_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
rsa_null.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -146,7 +152,8 @@ rsa_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
rsa_null.o: ../../include/openssl/opensslconf.h
|
||||
rsa_null.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rsa_null.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rsa_null.o: ../../include/openssl/stack.h ../cryptlib.h
|
||||
rsa_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
rsa_null.o: ../cryptlib.h
|
||||
rsa_oaep.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
rsa_oaep.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
rsa_oaep.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -155,7 +162,7 @@ rsa_oaep.o: ../../include/openssl/opensslconf.h
|
|||
rsa_oaep.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
|
||||
rsa_oaep.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rsa_oaep.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
rsa_oaep.o: ../cryptlib.h
|
||||
rsa_oaep.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
rsa_pk1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
rsa_pk1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
rsa_pk1.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -163,7 +170,7 @@ rsa_pk1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
rsa_pk1.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
rsa_pk1.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
|
||||
rsa_pk1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
rsa_pk1.o: ../cryptlib.h
|
||||
rsa_pk1.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
rsa_saos.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
rsa_saos.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
rsa_saos.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -172,16 +179,17 @@ rsa_saos.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
|||
rsa_saos.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
rsa_saos.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
rsa_saos.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
|
||||
rsa_saos.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
|
||||
rsa_saos.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
rsa_saos.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
rsa_saos.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
|
||||
rsa_saos.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
rsa_saos.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
rsa_saos.o: ../../include/openssl/opensslconf.h
|
||||
rsa_saos.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||
rsa_saos.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
|
||||
rsa_saos.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
|
||||
rsa_saos.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
rsa_saos.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
||||
rsa_saos.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
rsa_saos.o: ../cryptlib.h
|
||||
rsa_saos.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
||||
rsa_saos.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
rsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
rsa_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
|
||||
rsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
|
||||
|
@ -191,16 +199,17 @@ rsa_sign.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
|||
rsa_sign.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
rsa_sign.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
|
||||
rsa_sign.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
|
||||
rsa_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
|
||||
rsa_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
||||
rsa_sign.o: ../../include/openssl/opensslconf.h
|
||||
rsa_sign.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
|
||||
rsa_sign.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
|
||||
rsa_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
||||
rsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
|
||||
rsa_sign.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
|
||||
rsa_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
|
||||
rsa_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
|
||||
rsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
|
||||
rsa_sign.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
|
||||
rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
rsa_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
rsa_sign.o: ../cryptlib.h
|
||||
rsa_ssl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
|
||||
rsa_ssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
rsa_ssl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
|
||||
|
@ -208,4 +217,4 @@ rsa_ssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|||
rsa_ssl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
rsa_ssl.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
|
||||
rsa_ssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
||||
rsa_ssl.o: ../cryptlib.h
|
||||
rsa_ssl.o: ../../include/openssl/symhacks.h ../cryptlib.h
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue