mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
add der_load_verify_locations
This commit is contained in:
10
src/ssl.c
10
src/ssl.c
@@ -1020,7 +1020,7 @@ static int ProcessFile(CYASSL_CTX* ctx, const char* fname, int format, int type,
|
|||||||
|
|
||||||
/* just one for now TODO: add dir support from path */
|
/* just one for now TODO: add dir support from path */
|
||||||
int CyaSSL_CTX_load_verify_locations(CYASSL_CTX* ctx, const char* file,
|
int CyaSSL_CTX_load_verify_locations(CYASSL_CTX* ctx, const char* file,
|
||||||
const char* path)
|
const char* path)
|
||||||
{
|
{
|
||||||
CYASSL_ENTER("SSL_CTX_load_verify_locations");
|
CYASSL_ENTER("SSL_CTX_load_verify_locations");
|
||||||
(void)path;
|
(void)path;
|
||||||
@@ -1034,13 +1034,11 @@ int CyaSSL_CTX_load_verify_locations(CYASSL_CTX* ctx, const char* file,
|
|||||||
|
|
||||||
#ifdef CYASSL_DER_LOAD
|
#ifdef CYASSL_DER_LOAD
|
||||||
|
|
||||||
/* TODO: TAO make different name now that using CyaSSL_ same as above, document,
|
|
||||||
add CYASSL_API ref, and test */
|
|
||||||
/* Add format parameter to allow DER load of CA files */
|
/* Add format parameter to allow DER load of CA files */
|
||||||
int CyaSSL_CTX_load_verify_locations(CYASSL_CTX* ctx, const char* file,
|
int CyaSSL_CTX_der_load_verify_locations(CYASSL_CTX* ctx, const char* file,
|
||||||
int format)
|
int format)
|
||||||
{
|
{
|
||||||
CYASSL_ENTER("CyaSSL_CTX_load_verify_locations");
|
CYASSL_ENTER("CyaSSL_CTX_der_load_verify_locations");
|
||||||
if (ctx == NULL || file == NULL)
|
if (ctx == NULL || file == NULL)
|
||||||
return SSL_FAILURE;
|
return SSL_FAILURE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user