Commit 4ab3850d authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Make cert paramerter of bctbx_x509_certificates_chain_get_pem const

parent 2541b633
......@@ -315,7 +315,7 @@ BCTBX_PUBLIC void bctbx_x509_certificate_free(bctbx_x509_certificate_t *cert);
*
* @return a pointer to a null terminated string containing the certificate in PEM format. This buffer must then be freed by caller. NULL on failure.
*/
BCTBX_PUBLIC char *bctbx_x509_certificates_chain_get_pem(bctbx_x509_certificate_t *cert);
BCTBX_PUBLIC char *bctbx_x509_certificates_chain_get_pem(const bctbx_x509_certificate_t *cert);
/**
* @brief Return an informational string about the certificate
......
......@@ -159,7 +159,7 @@ int32_t bctbx_signing_key_parse_file(bctbx_signing_key_t *key, const char *path,
/*** Certificate ***/
char *bctbx_x509_certificates_chain_get_pem(bctbx_x509_certificate_t *cert) {
char *bctbx_x509_certificates_chain_get_pem(const bctbx_x509_certificate_t *cert) {
char *pem_certificate = NULL;
size_t olen=0;
......
......@@ -189,7 +189,7 @@ int32_t bctbx_signing_key_parse_file(bctbx_signing_key_t *key, const char *path,
/*** Certificate ***/
char *bctbx_x509_certificates_chain_get_pem(bctbx_x509_certificate_t *cert) {
char *bctbx_x509_certificates_chain_get_pem(const bctbx_x509_certificate_t *cert) {
char *pem_certificate = NULL;
size_t olen=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment