From 3848556372aa06fcbd48766e53c6d4381daa297b Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 26 Mar 2015 18:40:44 +0100 Subject: [PATCH] Fixed compilation issue on VS13. --- .../security/cert/openssl/X509Certificate_OpenSSL.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp b/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp index abdfb95b..7c1eed13 100644 --- a/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp +++ b/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp @@ -125,8 +125,13 @@ struct OpenSSLX509CertificateInternalData // Workaround for i2v() taking either a const or a non-const 'method' on some platforms -template -STACK_OF(CONF_VALUE)* call_i2v(M m, void* p1, STACK_OF(CONF_VALUE)* p2) +STACK_OF(CONF_VALUE)* call_i2v(const X509V3_EXT_METHOD* m, void* p1, STACK_OF(CONF_VALUE)* p2) +{ + return m->i2v(m, p1, p2); +} + + +STACK_OF(CONF_VALUE)* call_i2v(X509V3_EXT_METHOD* m, void* p1, STACK_OF(CONF_VALUE)* p2) { return m->i2v(m, p1, p2); }