aboutsummaryrefslogtreecommitdiff
path: root/cryptoapi.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-26 08:27:50 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-26 08:27:50 +0000
commitc373382c1edabd134c938e3c272ee40b5ee590b6 (patch)
tree934a209164285206461be81c86698d0c6172c83c /cryptoapi.c
parentCompletely revamped the system for calling external programs and scripts: (diff)
downloadopenvpn-c373382c1edabd134c938e3c272ee40b5ee590b6.tar.xz
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
Diffstat (limited to '')
-rw-r--r--cryptoapi.c2
1 files changed, 1 insertions, 1 deletions
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);