mirror of https://github.com/wolfSSL/wolfssl.git
Fixes for minor implicit cast warnings and line length. Also fixed benchmark.c error without ChaCha and unused encrypt_only.
parent
65283fb9bb
commit
a18d0161ef
|
@ -57494,8 +57494,8 @@ static int test_GENERAL_NAME_set0_othername(void) {
|
||||||
ExpectIntGT(X509_sign(x509, priv, EVP_sha256()), 0);
|
ExpectIntGT(X509_sign(x509, priv, EVP_sha256()), 0);
|
||||||
sk_GENERAL_NAME_pop_free(gns, GENERAL_NAME_free);
|
sk_GENERAL_NAME_pop_free(gns, GENERAL_NAME_free);
|
||||||
gns = NULL;
|
gns = NULL;
|
||||||
ExpectNotNull(gns = X509_get_ext_d2i(x509, NID_subject_alt_name, NULL,
|
ExpectNotNull(gns = (GENERAL_NAMES*)X509_get_ext_d2i(x509,
|
||||||
NULL));
|
NID_subject_alt_name, NULL, NULL));
|
||||||
|
|
||||||
ExpectIntEQ(sk_GENERAL_NAME_num(gns), 3);
|
ExpectIntEQ(sk_GENERAL_NAME_num(gns), 3);
|
||||||
|
|
||||||
|
@ -57658,8 +57658,8 @@ static int test_othername_and_SID_ext(void) {
|
||||||
0);
|
0);
|
||||||
|
|
||||||
/* Cleanup */
|
/* Cleanup */
|
||||||
ExpectNotNull(gns = X509_get_ext_d2i(x509, NID_subject_alt_name, NULL,
|
ExpectNotNull(gns = (GENERAL_NAMES*)X509_get_ext_d2i(x509,
|
||||||
NULL));
|
NID_subject_alt_name, NULL, NULL));
|
||||||
ExpectIntEQ(sk_GENERAL_NAME_num(gns), 1);
|
ExpectIntEQ(sk_GENERAL_NAME_num(gns), 1);
|
||||||
ExpectNotNull(gn = sk_GENERAL_NAME_value(gns, 0));
|
ExpectNotNull(gn = sk_GENERAL_NAME_value(gns, 0));
|
||||||
ExpectIntEQ(gn->type, 0);
|
ExpectIntEQ(gn->type, 0);
|
||||||
|
|
|
@ -1977,7 +1977,9 @@ static int numBlocks = NUM_BLOCKS;
|
||||||
static word32 bench_size = BENCH_SIZE;
|
static word32 bench_size = BENCH_SIZE;
|
||||||
static int base2 = 1;
|
static int base2 = 1;
|
||||||
static int digest_stream = 1;
|
static int digest_stream = 1;
|
||||||
|
#ifdef HAVE_CHACHA
|
||||||
static int encrypt_only = 0;
|
static int encrypt_only = 0;
|
||||||
|
#endif
|
||||||
#ifdef HAVE_AES_CBC
|
#ifdef HAVE_AES_CBC
|
||||||
static int cipher_same_buffer = 0;
|
static int cipher_same_buffer = 0;
|
||||||
#endif
|
#endif
|
||||||
|
@ -14725,8 +14727,10 @@ int wolfcrypt_benchmark_main(int argc, char** argv)
|
||||||
#endif
|
#endif
|
||||||
else if (string_matches(argv[1], "-dgst_full"))
|
else if (string_matches(argv[1], "-dgst_full"))
|
||||||
digest_stream = 0;
|
digest_stream = 0;
|
||||||
|
#ifdef HAVE_CHACHA
|
||||||
else if (string_matches(argv[1], "-enc_only"))
|
else if (string_matches(argv[1], "-enc_only"))
|
||||||
encrypt_only = 1;
|
encrypt_only = 1;
|
||||||
|
#endif
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
else if (string_matches(argv[1], "-rsa_sign"))
|
else if (string_matches(argv[1], "-rsa_sign"))
|
||||||
rsa_sign_verify = 1;
|
rsa_sign_verify = 1;
|
||||||
|
|
|
@ -2940,7 +2940,7 @@ extern void uITRON4_free(void *p) ;
|
||||||
#undef WOLFSSL_CERT_NAME_ALL
|
#undef WOLFSSL_CERT_NAME_ALL
|
||||||
#define WOLFSSL_CERT_NAME_ALL
|
#define WOLFSSL_CERT_NAME_ALL
|
||||||
|
|
||||||
/* Store pointers to issuer name components and their lengths and encodings. */
|
/* Store pointers to issuer name components (lengths and encodings) */
|
||||||
#undef WOLFSSL_HAVE_ISSUER_NAMES
|
#undef WOLFSSL_HAVE_ISSUER_NAMES
|
||||||
#define WOLFSSL_HAVE_ISSUER_NAMES
|
#define WOLFSSL_HAVE_ISSUER_NAMES
|
||||||
|
|
||||||
|
@ -3030,7 +3030,8 @@ extern void uITRON4_free(void *p) ;
|
||||||
#else
|
#else
|
||||||
/* if user supplied build option and not using ASN template, raise error */
|
/* if user supplied build option and not using ASN template, raise error */
|
||||||
#if defined(WC_ASN_UNKNOWN_EXT_CB) && !defined(WOLFSSL_ASN_TEMPLATE)
|
#if defined(WC_ASN_UNKNOWN_EXT_CB) && !defined(WOLFSSL_ASN_TEMPLATE)
|
||||||
#error ASN unknown extension callback is only supported with ASN template
|
#error ASN unknown extension callback is only supported \
|
||||||
|
with ASN template
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue