From fd4ddcb64071ac98f98e41664c0df67a99469e04 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 17 Jan 2023 16:08:57 +0100 Subject: [PATCH] [core] const correct certificate_clone --- libfreerdp/core/certificate.c | 2 +- libfreerdp/core/certificate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/core/certificate.c b/libfreerdp/core/certificate.c index 86b572a0c..5f258037a 100644 --- a/libfreerdp/core/certificate.c +++ b/libfreerdp/core/certificate.c @@ -1018,7 +1018,7 @@ void key_free(rdpRsaKey* key) free(key); } -rdpCertificate* certificate_clone(rdpCertificate* certificate) +rdpCertificate* certificate_clone(const rdpCertificate* certificate) { UINT32 index; diff --git a/libfreerdp/core/certificate.h b/libfreerdp/core/certificate.h index e5aae89ae..fea087d0b 100644 --- a/libfreerdp/core/certificate.h +++ b/libfreerdp/core/certificate.h @@ -50,7 +50,7 @@ FREERDP_LOCAL BOOL certificate_read_server_certificate(rdpCertificate* certifica FREERDP_LOCAL BOOL certificate_write_server_certificate(rdpCertificate* certificate, UINT32 dwVersion, wStream* s); -FREERDP_LOCAL rdpCertificate* certificate_clone(rdpCertificate* certificate); +FREERDP_LOCAL rdpCertificate* certificate_clone(const rdpCertificate* certificate); FREERDP_LOCAL rdpCertificate* certificate_new(void); FREERDP_LOCAL void certificate_free(rdpCertificate* certificate);