some more patches for avoiding problems with non-automatic variables
This commit is contained in:
parent
0d64ea89f7
commit
396f631458
5
CHANGES
5
CHANGES
@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
Changes between 0.9.4 and 0.9.5 [xx XXX 1999]
|
Changes between 0.9.4 and 0.9.5 [xx XXX 1999]
|
||||||
|
|
||||||
|
*) Initialize all non-automatic variables each time one of the openssl
|
||||||
|
sub-programs is started (this is necessary as they may be started
|
||||||
|
multiple times from the "OpenSSL>" prompt).
|
||||||
|
[Lennart Bang, Bodo Moeller]
|
||||||
|
|
||||||
*) Preliminary compilation option RSA_NULL which disables RSA crypto without
|
*) Preliminary compilation option RSA_NULL which disables RSA crypto without
|
||||||
removing all other RSA functionality (this is what NO_RSA does). This
|
removing all other RSA functionality (this is what NO_RSA does). This
|
||||||
is so (for example) those in the US can disable those operations covered
|
is so (for example) those in the US can disable those operations covered
|
||||||
|
@ -248,15 +248,6 @@ static int parseArgs(int argc, char **argv)
|
|||||||
|
|
||||||
verify_depth=0;
|
verify_depth=0;
|
||||||
verify_error=X509_V_OK;
|
verify_error=X509_V_OK;
|
||||||
#ifdef FIONBIO
|
|
||||||
t_nbio=0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
apps_startup();
|
|
||||||
s_time_init();
|
|
||||||
|
|
||||||
if (bio_err == NULL)
|
|
||||||
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
|
|
||||||
|
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
@ -411,6 +402,12 @@ int MAIN(int argc, char **argv)
|
|||||||
MS_STATIC char buf[1024*8];
|
MS_STATIC char buf[1024*8];
|
||||||
int ver;
|
int ver;
|
||||||
|
|
||||||
|
apps_startup();
|
||||||
|
s_time_init();
|
||||||
|
|
||||||
|
if (bio_err == NULL)
|
||||||
|
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
|
||||||
|
|
||||||
#if !defined(NO_SSL2) && !defined(NO_SSL3)
|
#if !defined(NO_SSL2) && !defined(NO_SSL3)
|
||||||
s_time_meth=SSLv23_client_method();
|
s_time_meth=SSLv23_client_method();
|
||||||
#elif !defined(NO_SSL3)
|
#elif !defined(NO_SSL3)
|
||||||
|
@ -344,6 +344,7 @@ int MAIN(int argc, char **argv)
|
|||||||
int pr_header=0;
|
int pr_header=0;
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
memset(results, 0, sizeof(results));
|
||||||
#ifndef NO_DSA
|
#ifndef NO_DSA
|
||||||
memset(dsa_key,0,sizeof(dsa_key));
|
memset(dsa_key,0,sizeof(dsa_key));
|
||||||
#endif
|
#endif
|
||||||
|
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
#include <openssl/ebcdic.h>
|
#include <openssl/ebcdic.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct test_st
|
static struct test_st
|
||||||
{
|
{
|
||||||
unsigned char key[16];
|
unsigned char key[16];
|
||||||
int key_len;
|
int key_len;
|
||||||
|
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
#include <openssl/ebcdic.h>
|
#include <openssl/ebcdic.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *test[]={
|
static char *test[]={
|
||||||
"",
|
"",
|
||||||
"a",
|
"a",
|
||||||
"abc",
|
"abc",
|
||||||
@ -84,7 +84,7 @@ char *test[]={
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
char *ret[]={
|
static char *ret[]={
|
||||||
"8350e5a3e24c153df2275c9f80692773",
|
"8350e5a3e24c153df2275c9f80692773",
|
||||||
"32ec01ec4a6dac72c0ab96fb34c0b5d1",
|
"32ec01ec4a6dac72c0ab96fb34c0b5d1",
|
||||||
"da853b0d3f88d99b30283a69e6ded6bb",
|
"da853b0d3f88d99b30283a69e6ded6bb",
|
||||||
|
@ -69,7 +69,7 @@ int main(int argc, char *argv[])
|
|||||||
#else
|
#else
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
|
|
||||||
char *test[]={
|
static char *test[]={
|
||||||
"",
|
"",
|
||||||
"a",
|
"a",
|
||||||
"abc",
|
"abc",
|
||||||
@ -80,7 +80,7 @@ char *test[]={
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
char *ret[]={
|
static char *ret[]={
|
||||||
"d41d8cd98f00b204e9800998ecf8427e",
|
"d41d8cd98f00b204e9800998ecf8427e",
|
||||||
"0cc175b9c0f1b6a831c399e269772661",
|
"0cc175b9c0f1b6a831c399e269772661",
|
||||||
"900150983cd24fb0d6963f7d28e17f72",
|
"900150983cd24fb0d6963f7d28e17f72",
|
||||||
|
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
#include <openssl/ebcdic.h>
|
#include <openssl/ebcdic.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *test[]={
|
static char *test[]={
|
||||||
"",
|
"",
|
||||||
"a",
|
"a",
|
||||||
"abc",
|
"abc",
|
||||||
@ -85,7 +85,7 @@ char *test[]={
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
char *ret[]={
|
static char *ret[]={
|
||||||
"9c1185a5c5e9fc54612808977ee8f548b2258d31",
|
"9c1185a5c5e9fc54612808977ee8f548b2258d31",
|
||||||
"0bdc9d2d256b3ee9daae347be6f4dc835a467ffe",
|
"0bdc9d2d256b3ee9daae347be6f4dc835a467ffe",
|
||||||
"8eb208f7e05d987a9b044a8e98c6b087f15a0bfc",
|
"8eb208f7e05d987a9b044a8e98c6b087f15a0bfc",
|
||||||
|
@ -76,26 +76,26 @@ int main(int argc, char *argv[])
|
|||||||
#undef SHA_0 /* FIPS 180 */
|
#undef SHA_0 /* FIPS 180 */
|
||||||
#define SHA_1 /* FIPS 180-1 */
|
#define SHA_1 /* FIPS 180-1 */
|
||||||
|
|
||||||
char *test[]={
|
static char *test[]={
|
||||||
"abc",
|
"abc",
|
||||||
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
|
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef SHA_0
|
#ifdef SHA_0
|
||||||
char *ret[]={
|
static char *ret[]={
|
||||||
"0164b8a914cd2a5e74c4f7ff082c4d97f1edf880",
|
"0164b8a914cd2a5e74c4f7ff082c4d97f1edf880",
|
||||||
"d2516ee1acfa5baf33dfc1c471e438449ef134c8",
|
"d2516ee1acfa5baf33dfc1c471e438449ef134c8",
|
||||||
};
|
};
|
||||||
char *bigret=
|
static char *bigret=
|
||||||
"3232affa48628a26653b5aaa44541fd90d690603";
|
"3232affa48628a26653b5aaa44541fd90d690603";
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHA_1
|
#ifdef SHA_1
|
||||||
char *ret[]={
|
static char *ret[]={
|
||||||
"a9993e364706816aba3e25717850c26c9cd0d89d",
|
"a9993e364706816aba3e25717850c26c9cd0d89d",
|
||||||
"84983e441c3bd26ebaae4aa1f95129e5e54670f1",
|
"84983e441c3bd26ebaae4aa1f95129e5e54670f1",
|
||||||
};
|
};
|
||||||
char *bigret=
|
static char *bigret=
|
||||||
"34aa973cd4c4daa4f61eeb2bdbad27316534016f";
|
"34aa973cd4c4daa4f61eeb2bdbad27316534016f";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -76,26 +76,26 @@ int main(int argc, char *argv[])
|
|||||||
#define SHA_0 /* FIPS 180 */
|
#define SHA_0 /* FIPS 180 */
|
||||||
#undef SHA_1 /* FIPS 180-1 */
|
#undef SHA_1 /* FIPS 180-1 */
|
||||||
|
|
||||||
char *test[]={
|
static char *test[]={
|
||||||
"abc",
|
"abc",
|
||||||
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
|
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef SHA_0
|
#ifdef SHA_0
|
||||||
char *ret[]={
|
static char *ret[]={
|
||||||
"0164b8a914cd2a5e74c4f7ff082c4d97f1edf880",
|
"0164b8a914cd2a5e74c4f7ff082c4d97f1edf880",
|
||||||
"d2516ee1acfa5baf33dfc1c471e438449ef134c8",
|
"d2516ee1acfa5baf33dfc1c471e438449ef134c8",
|
||||||
};
|
};
|
||||||
char *bigret=
|
static char *bigret=
|
||||||
"3232affa48628a26653b5aaa44541fd90d690603";
|
"3232affa48628a26653b5aaa44541fd90d690603";
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHA_1
|
#ifdef SHA_1
|
||||||
char *ret[]={
|
static char *ret[]={
|
||||||
"a9993e364706816aba3e25717850c26c9cd0d89d",
|
"a9993e364706816aba3e25717850c26c9cd0d89d",
|
||||||
"84983e441c3bd26ebaae4aa1f95129e5e54670f1",
|
"84983e441c3bd26ebaae4aa1f95129e5e54670f1",
|
||||||
};
|
};
|
||||||
char *bigret=
|
static char *bigret=
|
||||||
"34aa973cd4c4daa4f61eeb2bdbad27316534016f";
|
"34aa973cd4c4daa4f61eeb2bdbad27316534016f";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -85,15 +85,15 @@
|
|||||||
# define TEST_CLIENT_CERT "../apps/client.pem"
|
# define TEST_CLIENT_CERT "../apps/client.pem"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
|
static int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int is_export,int keylength);
|
static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int is_export,int keylength);
|
||||||
#endif
|
#endif
|
||||||
#ifndef NO_DH
|
#ifndef NO_DH
|
||||||
static DH *get_dh512(void);
|
static DH *get_dh512(void);
|
||||||
#endif
|
#endif
|
||||||
BIO *bio_err=NULL;
|
static BIO *bio_err=NULL;
|
||||||
BIO *bio_stdout=NULL;
|
static BIO *bio_stdout=NULL;
|
||||||
|
|
||||||
static char *cipher=NULL;
|
static char *cipher=NULL;
|
||||||
int verbose=0;
|
int verbose=0;
|
||||||
@ -1104,7 +1104,7 @@ err:
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx)
|
static int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx)
|
||||||
{
|
{
|
||||||
char *s,buf[256];
|
char *s,buf[256];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user