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

CA cert store handling. More...

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

Functions

const char * find_ca_cert_store (bool silent)
 
bool mympd_read_ca_certificates (struct t_config *config)
 

Variables

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

◆ mympd_read_ca_certificates()

bool mympd_read_ca_certificates ( struct t_config config)

Reads the ca certificates

Parameters
configPointer to central config
Returns
true on success or disabled certificate checking, else false

Variable Documentation

◆ check_ca_cert_paths

const char* check_ca_cert_paths[]
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