fixed api testing for hash dir

This commit is contained in:
Hideki Miyazaki
2021-03-12 09:03:35 +09:00
parent c5327866a4
commit 7b81ff1bc6

View File

@ -28068,7 +28068,10 @@ static void test_wolfSSL_X509_LOOKUP_ctrl_hash_dir(void)
AssertNotNull(lookup = X509_STORE_add_lookup(str, X509_LOOKUP_file())); AssertNotNull(lookup = X509_STORE_add_lookup(str, X509_LOOKUP_file()));
AssertIntEQ(X509_LOOKUP_ctrl(lookup, X509_L_ADD_DIR, "./", AssertIntEQ(X509_LOOKUP_ctrl(lookup, X509_L_ADD_DIR, "./",
SSL_FILETYPE_PEM,NULL), 1); SSL_FILETYPE_PEM,NULL), 1);
#if defined(WOLFSSL_INT_H)
/* only available when including internal.h */
AssertNotNull(sk = lookup->dirs->dir_entry); AssertNotNull(sk = lookup->dirs->dir_entry);
#endif
/* free store */ /* free store */
X509_STORE_free(str); X509_STORE_free(str);
@ -28088,7 +28091,10 @@ static void test_wolfSSL_X509_LOOKUP_ctrl_hash_dir(void)
AssertNotNull(lookup = X509_STORE_add_lookup(str, X509_LOOKUP_file())); AssertNotNull(lookup = X509_STORE_add_lookup(str, X509_LOOKUP_file()));
AssertIntEQ(X509_LOOKUP_ctrl(lookup, X509_L_ADD_DIR, CertCrl_path, AssertIntEQ(X509_LOOKUP_ctrl(lookup, X509_L_ADD_DIR, CertCrl_path,
SSL_FILETYPE_PEM,NULL), 1); SSL_FILETYPE_PEM,NULL), 1);
#if defined(WOLFSSL_INT_H)
/* only available when including internal.h */
AssertNotNull(sk = lookup->dirs->dir_entry); AssertNotNull(sk = lookup->dirs->dir_entry);
#endif
X509_STORE_free(str); X509_STORE_free(str);