aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libparc/parc/security/parc_CertificateFactory.c2
-rwxr-xr-xlibparc/parc/security/parc_CertificateFactory.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libparc/parc/security/parc_CertificateFactory.c b/libparc/parc/security/parc_CertificateFactory.c
index 3a758c53..52cef4af 100644
--- a/libparc/parc/security/parc_CertificateFactory.c
+++ b/libparc/parc/security/parc_CertificateFactory.c
@@ -45,7 +45,7 @@ parcCertificateFactory_Create(PARCCertificateType type, PARCContainerEncoding en
}
PARCCertificate *
-parcCertificateFactory_CreateCertificateFromFile(PARCCertificateFactory *factory, char *filename, char *password __attribute__((unused)))
+parcCertificateFactory_CreateCertificateFromFile(PARCCertificateFactory *factory, const char *filename, const char *password __attribute__((unused)))
{
if (factory->type == PARCCertificateType_X509 && factory->encoding == PARCContainerEncoding_PEM) {
PARCX509Certificate *certificate = parcX509Certificate_CreateFromPEMFile(filename);
diff --git a/libparc/parc/security/parc_CertificateFactory.h b/libparc/parc/security/parc_CertificateFactory.h
index de034d1b..74035232 100755
--- a/libparc/parc/security/parc_CertificateFactory.h
+++ b/libparc/parc/security/parc_CertificateFactory.h
@@ -66,7 +66,7 @@ PARCCertificateFactory *parcCertificateFactory_Create(PARCCertificateType type,
* }
* @endcode
*/
-PARCCertificate *parcCertificateFactory_CreateCertificateFromFile(PARCCertificateFactory *factory, char *filename, char *password);
+PARCCertificate *parcCertificateFactory_CreateCertificateFromFile(PARCCertificateFactory *factory, const char *filename, const char *password);
/**
* Create a `PARCCertificate` from the specified `PARCBuffer`.