Fix failing nightly tests

This commit is contained in:
Eric Blankenhorn
2018-12-12 09:48:34 -06:00
parent c7b0aac47a
commit cbc8f4ce38
2 changed files with 8 additions and 3 deletions

View File

@@ -9056,8 +9056,9 @@ int PemToDer(const unsigned char* buff, long longSz, int type,
if (ret >= 0) { if (ret >= 0) {
der->length = ret; der->length = ret;
if (algId == ECDSAk) if ((algId == ECDSAk) && (eccKey != NULL)) {
*eccKey = 1; *eccKey = 1;
}
ret = 0; ret = 0;
} }
#else #else

View File

@@ -19320,7 +19320,9 @@ static int pkcs7enveloped_run_vectors(byte* rsaCert, word32 rsaCertSz,
}; };
#endif #endif
#if !defined(NO_PWDBASED) #if !defined(NO_PWDBASED) && !defined(NO_AES) && \
!defined(NO_SHA) && defined(WOLFSSL_AES_128)
char password[] = "password"; char password[] = "password";
byte salt[] = { byte salt[] = {
@@ -19871,7 +19873,9 @@ static int pkcs7authenveloped_run_vectors(byte* rsaCert, word32 rsaCertSz,
}; };
#endif #endif
#if !defined(NO_PWDBASED) #if !defined(NO_PWDBASED) && !defined(NO_AES) && defined(HAVE_AESGCM) && \
!defined(NO_SHA) && defined(WOLFSSL_AES_128)
char password[] = "password"; char password[] = "password";
byte salt[] = { byte salt[] = {