From c373382c1edabd134c938e3c272ee40b5ee590b6 Mon Sep 17 00:00:00 2001 From: james Date: Sat, 26 Jul 2008 08:27:50 +0000 Subject: Fixed compiler warnings in Windows build (MinGW). git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3125 e7ae566f-a301-0410-adde-c780ea21d3b5 --- cryptoapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cryptoapi.c') diff --git a/cryptoapi.c b/cryptoapi.c index 9324b27..3b78e2b 100644 --- a/cryptoapi.c +++ b/cryptoapi.c @@ -369,7 +369,7 @@ int SSL_CTX_use_CryptoAPI_certificate(SSL_CTX *ssl_ctx, const char *cert_prop) } /* cert_context->pbCertEncoded is the cert X509 DER encoded. */ - cert = d2i_X509(NULL, (unsigned char **) &cd->cert_context->pbCertEncoded, + cert = d2i_X509(NULL, (const unsigned char **) &cd->cert_context->pbCertEncoded, cd->cert_context->cbCertEncoded); if (cert == NULL) { SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE_FILE, ERR_R_ASN1_LIB); -- cgit