GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/ssl.h
Date: 2024-04-21 02:33:16
Exec Total Coverage
Lines: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4
5 #ifndef CVMFS_SSL_H_
6 #define CVMFS_SSL_H_
7
8 #include <string>
9
10 #include "duplex_curl.h"
11
12 /**
13 * Manages the location of certificates, either system certificates or
14 * the ones in $X509_CERT_DIR or /etc/grid-security/certificates
15 * On construction, $X509_CERT_DIR has precedence over
16 * /etc/grid-security/certificates.
17 * $X509_CERT_BUNDLE is checked for a bundle.
18 * The path settings can later be overwritten by UseSystemCertificatePath();
19 * the $X509_CERT_BUNDLE settings are unaffected by UseSystemCertificatePath().
20 */
21 class SslCertificateStore {
22 public:
23 SslCertificateStore();
24 void UseSystemCertificatePath();
25
26 bool ApplySslCertificatePath(CURL *handle) const;
27 std::string GetCaPath() const { return ca_path_; }
28
29 private:
30 std::string ca_path_;
31 std::string ca_bundle_;
32 };
33
34 #endif // CVMFS_SSL_H_
35