verify |= SSL_VERIFY_PEER;
}
- SSL_set_verify(ssl, verify, ssl_callback_SSLVerify);
+ modssl_set_verify(ssl, verify, ssl_callback_SSLVerify);
SSL_set_verify_result(ssl, X509_V_OK);
/* determine whether we've to force a renegotiation */
#define X509_CRL_get_REVOKED(x) ((x)->crl->revoked)
#define X509_REVOKED_get_serialNumber(xs) (xs->serialNumber)
+#define modssl_set_verify(ssl, verify, cb) \
+ SSL_set_verify(ssl, verify)
+
#endif
/* BEGIN GENERATED SECTION */
#endif /* OPENSSL_VERSION_NUMBER */
+#ifndef modssl_set_verify
+#define modssl_set_verify(ssl, verify, cb) \
+ SSL_set_verify(ssl, verify, cb)
+#endif
+
#endif /* SSL_TOOLKIT_COMPAT_H */