aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2018-04-14 00:54:44 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2018-04-14 00:54:44 +0200
commitcd6bef4b0a73e151f9c891428bc5335cb0ef477e (patch)
tree3aecb525c867d3d445ed5e66f82957a40d187ea9 /libparc/parc
parent75a923f0ee362a039b51a141a719ce50597ca233 (diff)
Added const to char pointers in parc_CertificateFactory.[ch]
Change-Id: Ib3cd60a8401c647352c198e26254cee7304a834d Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'libparc/parc')
-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`.