diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-26 08:27:50 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-26 08:27:50 +0000 |
commit | c373382c1edabd134c938e3c272ee40b5ee590b6 (patch) | |
tree | 934a209164285206461be81c86698d0c6172c83c /cryptoapi.c | |
parent | Completely revamped the system for calling external programs and scripts: (diff) | |
download | openvpn-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.c | 2 |
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); |