mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #5898 from cconlon/androidSystemCa
Add Android CA certs path for wolfSSL_CTX_load_system_CA_certs()
This commit is contained in:
@ -8207,11 +8207,15 @@ static int LoadSystemCaCertsMac(WOLFSSL_CTX* ctx, byte* loaded)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Potential system CA certs directories on Linux distros. */
|
/* Potential system CA certs directories on Linux/Unix distros. */
|
||||||
static const char* systemCaDirs[] = {
|
static const char* systemCaDirs[] = {
|
||||||
|
#if defined(__ANDROID__) || defined(ANDROID)
|
||||||
|
"/system/etc/security/cacerts" /* Android */
|
||||||
|
#else
|
||||||
"/etc/ssl/certs", /* Debian, Ubuntu, Gentoo, others */
|
"/etc/ssl/certs", /* Debian, Ubuntu, Gentoo, others */
|
||||||
"/etc/pki/ca-trust/source/anchors", /* Fedora, RHEL */
|
"/etc/pki/ca-trust/source/anchors", /* Fedora, RHEL */
|
||||||
"/etc/pki/tls/certs" /* Older RHEL */
|
"/etc/pki/tls/certs" /* Older RHEL */
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
const char** wolfSSL_get_system_CA_dirs(word32* num)
|
const char** wolfSSL_get_system_CA_dirs(word32* num)
|
||||||
|
Reference in New Issue
Block a user