myMPD
Internal API documentation
Loading...
Searching...
No Matches
cacertstore_find.c File Reference

CA cert store handling. More...

#include "src/lib/config/cacertstore_find.h"
#include "src/lib/filehandler.h"
#include "src/lib/log.h"
#include <openssl/x509.h>
Include dependency graph for cacertstore_find.c:

Functions

const char * find_ca_cert_store (bool silent)

Variables

static const char * check_ca_cert_paths []

Detailed Description

CA cert store handling.

Function Documentation

◆ find_ca_cert_store()

const char * find_ca_cert_store ( bool silent)

Try to find the system ca cert store

Parameters
silentPrint no error messages?
Returns
const char* or NULL if not found

Variable Documentation

◆ check_ca_cert_paths

const char* check_ca_cert_paths[]
static
Initial value:
= {
"/etc/ssl/ca-bundle.pem",
"/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem",
"/etc/pki/tls/certs/ca-bundle.crt",
"/etc/ssl/certs/ca-bundle.crt",
"/etc/ssl/certs/ca-certificates.crt",
"/var/lib/ca-certificates/ca-bundle.pem",
NULL
}

Paths to check for the ca cert store