Fixed compilation issue on VS13.

This commit is contained in:
Vincent Richard 2015-03-26 18:40:44 +01:00
parent 23fc354ce2
commit 3848556372

View File

@ -125,8 +125,13 @@ struct OpenSSLX509CertificateInternalData
// Workaround for i2v() taking either a const or a non-const 'method' on some platforms
template <typename M>
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);
}