Coverage Report

Created: 2025-11-03 06:30

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/boringssl/crypto/x509/x509_def.cc
Line
Count
Source
1
// Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//     https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#include <openssl/x509.h>
16
17
// TODO(fork): cleanup
18
19
#if defined(OPENSSL_FUCHSIA)
20
#define OPENSSLDIR "/config/ssl"
21
#else
22
0
#define OPENSSLDIR "/etc/ssl"
23
#endif
24
25
0
#define X509_CERT_AREA OPENSSLDIR
26
0
#define X509_CERT_DIR OPENSSLDIR "/certs"
27
0
#define X509_CERT_FILE OPENSSLDIR "/cert.pem"
28
0
#define X509_PRIVATE_DIR OPENSSLDIR "/private"
29
0
#define X509_CERT_DIR_EVP "SSL_CERT_DIR"
30
0
#define X509_CERT_FILE_EVP "SSL_CERT_FILE"
31
32
0
const char *X509_get_default_private_dir(void) { return X509_PRIVATE_DIR; }
33
34
0
const char *X509_get_default_cert_area(void) { return X509_CERT_AREA; }
35
36
0
const char *X509_get_default_cert_dir(void) { return X509_CERT_DIR; }
37
38
0
const char *X509_get_default_cert_file(void) { return X509_CERT_FILE; }
39
40
0
const char *X509_get_default_cert_dir_env(void) { return X509_CERT_DIR_EVP; }
41
42
0
const char *X509_get_default_cert_file_env(void) {
43
0
  return X509_CERT_FILE_EVP;
44
0
}