openbsd-ports/net/bro/patches/patch-src_ssl-analyzer_pac
robert c06abedde8 Fix OpenSSL update fallout by using a diff from bro ticket #247
which checks and uses the correct API
2010-10-12 20:12:52 +00:00

31 lines
965 B
Plaintext

$OpenBSD: patch-src_ssl-analyzer_pac,v 1.1 2010/10/12 20:12:52 robert Exp $
--- src/ssl-analyzer.pac.orig Tue Oct 12 22:01:13 2010
+++ src/ssl-analyzer.pac Tue Oct 12 22:02:12 2010
@@ -382,7 +382,7 @@ refine analyzer SSLAnalyzer += {
STACK_OF(X509)* untrusted_certs = 0;
if ( certificates->size() > 1 )
{
- untrusted_certs = sk_new_null();
+ untrusted_certs = (STACK_OF(X509)*) sk_new_null();
if ( ! untrusted_certs )
{
// X509_V_ERR_OUT_OF_MEM;
@@ -405,7 +405,7 @@ refine analyzer SSLAnalyzer += {
return false;
}
- sk_push(untrusted_certs, (char*) pTemp);
+ sk_push((OPENSSL_STACK_TYPE*) untrusted_certs, (char*) pTemp);
}
}
@@ -417,7 +417,7 @@ refine analyzer SSLAnalyzer += {
certificate_error(csc.error);
X509_STORE_CTX_cleanup(&csc);
- sk_pop_free(untrusted_certs, free_X509);
+ sk_pop_free((OPENSSL_STACK_TYPE*) untrusted_certs, free_X509);
}
X509_free(pCert);