mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fixes for wolfSSL_CTX_load_verify_locations_ex
This commit is contained in:
@@ -6798,6 +6798,8 @@ int wolfSSL_CTX_load_verify_locations_ex(WOLFSSL_CTX* ctx, const char* file,
|
|||||||
if (file) {
|
if (file) {
|
||||||
ret = ProcessFile(ctx, file, WOLFSSL_FILETYPE_PEM, CA_TYPE, NULL, 0,
|
ret = ProcessFile(ctx, file, WOLFSSL_FILETYPE_PEM, CA_TYPE, NULL, 0,
|
||||||
NULL, verify);
|
NULL, verify);
|
||||||
|
if (ret == WOLFSSL_SUCCESS)
|
||||||
|
successCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == WOLFSSL_SUCCESS && path) {
|
if (ret == WOLFSSL_SUCCESS && path) {
|
||||||
|
@@ -210,7 +210,13 @@ typedef WOLFSSL_X509_VERIFY_PARAM X509_VERIFY_PARAM;
|
|||||||
#ifndef NO_FILESYSTEM
|
#ifndef NO_FILESYSTEM
|
||||||
#define SSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
|
#define SSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
|
||||||
#define SSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
|
#define SSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
|
||||||
|
#ifdef WOLFSSL_APACHE_HTTPD
|
||||||
|
#define SSL_CTX_load_verify_locations(ctx,file,path) \
|
||||||
|
wolfSSL_CTX_load_verify_locations_ex(ctx,file,path,\
|
||||||
|
WOLFSSL_LOAD_FLAG_IGNORE_ERR)
|
||||||
|
#else
|
||||||
#define SSL_CTX_load_verify_locations wolfSSL_CTX_load_verify_locations
|
#define SSL_CTX_load_verify_locations wolfSSL_CTX_load_verify_locations
|
||||||
|
#endif
|
||||||
#define SSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
|
#define SSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
|
||||||
#define SSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
|
#define SSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user