mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
29
tests/api.c
29
tests/api.c
@ -39700,16 +39700,18 @@ static int test_wolfSSL_sk_GENERAL_NAME(void)
|
|||||||
for (i = 0; i < sk_GENERAL_NAME_num(sk); i++) {
|
for (i = 0; i < sk_GENERAL_NAME_num(sk); i++) {
|
||||||
ExpectNotNull(gn = sk_GENERAL_NAME_value(sk, i));
|
ExpectNotNull(gn = sk_GENERAL_NAME_value(sk, i));
|
||||||
|
|
||||||
switch (gn->type) {
|
if (gn != NULL) {
|
||||||
case GEN_DNS:
|
switch (gn->type) {
|
||||||
fprintf(stderr, "found type GEN_DNS\n");
|
case GEN_DNS:
|
||||||
break;
|
fprintf(stderr, "found type GEN_DNS\n");
|
||||||
case GEN_EMAIL:
|
break;
|
||||||
fprintf(stderr, "found type GEN_EMAIL\n");
|
case GEN_EMAIL:
|
||||||
break;
|
fprintf(stderr, "found type GEN_EMAIL\n");
|
||||||
case GEN_URI:
|
break;
|
||||||
fprintf(stderr, "found type GEN_URI\n");
|
case GEN_URI:
|
||||||
break;
|
fprintf(stderr, "found type GEN_URI\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
X509_free(x509);
|
X509_free(x509);
|
||||||
@ -40555,7 +40557,8 @@ static int test_wolfSSL_EVP_Cipher_extra(void)
|
|||||||
|
|
||||||
byte inb[BUFFSZ];
|
byte inb[BUFFSZ];
|
||||||
byte outb[BUFFSZ+16];
|
byte outb[BUFFSZ+16];
|
||||||
int outl, inl;
|
int outl = 0;
|
||||||
|
int inl;
|
||||||
|
|
||||||
iv = aes128_cbc_iv;
|
iv = aes128_cbc_iv;
|
||||||
ivlen = sizeof(aes128_cbc_iv);
|
ivlen = sizeof(aes128_cbc_iv);
|
||||||
@ -49424,7 +49427,7 @@ static int test_wolfssl_EVP_aes_gcm_AAD_2_parts(void)
|
|||||||
byte out2Part[16];
|
byte out2Part[16];
|
||||||
byte outTag2Part[16];
|
byte outTag2Part[16];
|
||||||
byte decryptBuf[16];
|
byte decryptBuf[16];
|
||||||
int len;
|
int len = 0;
|
||||||
int tlen;
|
int tlen;
|
||||||
EVP_CIPHER_CTX* ctx = NULL;
|
EVP_CIPHER_CTX* ctx = NULL;
|
||||||
|
|
||||||
@ -53173,7 +53176,7 @@ static int test_wolfSSL_EC_POINT(void)
|
|||||||
#ifndef HAVE_SELFTEST
|
#ifndef HAVE_SELFTEST
|
||||||
EC_POINT *tmp = NULL;
|
EC_POINT *tmp = NULL;
|
||||||
size_t bin_len;
|
size_t bin_len;
|
||||||
unsigned int blen;
|
unsigned int blen = 0;
|
||||||
unsigned char* buf = NULL;
|
unsigned char* buf = NULL;
|
||||||
unsigned char bufInf[1] = { 0x00 };
|
unsigned char bufInf[1] = { 0x00 };
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user