xref: /openbmc/phosphor-certificate-manager/config.h.in (revision 3c4781446a43a875d6bc0eeb87a9ee5ba0709a01)
1e0e2cce9SPatrick Williams#pragma once
2718eef37SNan Zhou#include <cstddef>
3e0e2cce9SPatrick Williams
4718eef37SNan Zhou/* The prefix of the DBus busname to own */
5718eef37SNan Zhouinline constexpr char busNamePrefix[] = "xyz.openbmc_project.Certs.Manager";
6e0e2cce9SPatrick Williams
7718eef37SNan Zhou/* The prefix of the certificate manager DBus object name */
8718eef37SNan Zhouinline constexpr char objectNamePrefix[] = "/xyz/openbmc_project/certs";
9e0e2cce9SPatrick Williams
10718eef37SNan Zhou/* The default name of the CSR file */
11718eef37SNan Zhouinline constexpr char defaultCSRFileName[] = "domain.csr";
12e0e2cce9SPatrick Williams
13718eef37SNan Zhou/* The default name of the private key file. */
14718eef37SNan Zhouinline constexpr char defaultPrivateKeyFileName[] = "privkey.pem";
15e0e2cce9SPatrick Williams
16718eef37SNan Zhou/* The default name of the rsa private key file. */
17718eef37SNan Zhouinline constexpr char defaultRSAPrivateKeyFileName[] = ".rsaprivkey.pem";
18e0e2cce9SPatrick Williams
19718eef37SNan Zhou/* The maximum number of Authority certificates the service allows. */
20718eef37SNan Zhouinline constexpr size_t maxNumAuthorityCertificates = @authority_limit@;
216ec13c8fSNan Zhou
226ec13c8fSNan Zhou/* The default name of the authorities list file. */
236ec13c8fSNan Zhouinline constexpr char defaultAuthoritiesListFileName[] = "@authorities_list_name@";
24*3c478144SLei YU
25*3c478144SLei YU/* Whether to allow expired certificates. */
26*3c478144SLei YUinline constexpr bool allowExpired = @allow_expired@;
27