---
mutt_ssl.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/mutt_ssl.c b/mutt_ssl.c
index ad763c26..9af5af9b 100644
--- a/mutt_ssl.c
+++ b/mutt_ssl.c
@@ -749,7 +749,7 @@ static void ssl_dprint_err_stack(void)
}
-static char *x509_get_part(X509_NAME *name, int nid)
+static char *x509_get_part(const X509_NAME *name, int nid)
{
static char ret[SHORT_STRING];
@@ -969,7 +969,7 @@ static int check_host(X509 *x509cert, const char *hostname,
char *err, size_t er
/* hostname in ASCII format: */
char *hostname_ascii = NULL;
/* needed to get the common name: */
- X509_NAME *x509_subject;
+ const X509_NAME *x509_subject;
char *buf = NULL;
int bufsize;
/* needed to get the DNS subjectAltNames: */
@@ -1216,8 +1216,8 @@ static int interactive_check_cert(X509 *cert, int idx,
int len, SSL *ssl, int al
NID_localityName, /* L */
NID_stateOrProvinceName, /* ST */
NID_countryName /* C */ };
- X509_NAME *x509_subject;
- X509_NAME *x509_issuer;
+ const X509_NAME *x509_subject;
+ const X509_NAME *x509_issuer;
char helpstr[LONG_STRING];
char buf[STRING];
char title[STRING];
--
2.56.1