Merge pull request #1976 from embhorn/test_fix

Fix failing nightly tests
This commit is contained in:
David Garske
2018-12-12 12:07:01 -08:00
committed by GitHub
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) {
der->length = ret;
if (algId == ECDSAk)
if ((algId == ECDSAk) && (eccKey != NULL)) {
*eccKey = 1;
}
ret = 0;
}
#else

View File

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