From cd6bef4b0a73e151f9c891428bc5335cb0ef477e Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Sat, 14 Apr 2018 00:54:44 +0200 Subject: Added const to char pointers in parc_CertificateFactory.[ch] Change-Id: Ib3cd60a8401c647352c198e26254cee7304a834d Signed-off-by: Mauro Sardara --- libparc/parc/security/parc_CertificateFactory.c | 2 +- libparc/parc/security/parc_CertificateFactory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libparc/parc/security') 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`. -- cgit 1.2.3-korg