config.h.in: use const variables instead of macros

Most style guides try to avoid preprocessor macros, especially the use
case here: const objects. This change replaced them with const
variables. Their names are also changed according to the OpenBMC style
guide.

Reference:
https://google.github.io/styleguide/cppguide.html#Preprocessor_Macros

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I0786c7c83f3a0d892c14f1cb813d0aa16d627b3e
diff --git a/config.h.in b/config.h.in
index 9b937f6..6e6a3e7 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,19 +1,20 @@
 #pragma once
+#include <cstddef>
 
-/* The DBus busname to own */
-#define BUSNAME "xyz.openbmc_project.Certs.Manager"
+/* The prefix of the DBus busname to own */
+inline constexpr char busNamePrefix[] = "xyz.openbmc_project.Certs.Manager";
 
-/* The certifiicate manager DBus root */
-#define OBJPATH "/xyz/openbmc_project/certs"
+/* The prefix of the certificate manager DBus object name */
+inline constexpr char objectNamePrefix[] = "/xyz/openbmc_project/certs";
 
-/* The CSR file */
-#define CSR_FILE_NAME "domain.csr"
+/* The default name of the CSR file */
+inline constexpr char defaultCSRFileName[] = "domain.csr";
 
-/* The private key file. */
-#define PRIV_KEY_FILE_NAME "privkey.pem"
+/* The default name of the private key file. */
+inline constexpr char defaultPrivateKeyFileName[] = "privkey.pem";
 
-/* The rsa private key file. */
-#define RSA_PRIV_KEY_FILE_NAME ".rsaprivkey.pem"
+/* The default name of the rsa private key file. */
+inline constexpr char defaultRSAPrivateKeyFileName[] = ".rsaprivkey.pem";
 
-/* Authority certificates limit. */
-#define AUTHORITY_CERTIFICATES_LIMIT @authority_limit@
+/* The maximum number of Authority certificates the service allows. */
+inline constexpr size_t maxNumAuthorityCertificates = @authority_limit@;