From 791cc52ff2820394fddd02510177cf109400a0c9 Mon Sep 17 00:00:00 2001 From: paul cannon Date: Sun, 27 Apr 2014 20:41:09 -0600 Subject: [PATCH] space monkey internal commit export [katamari commit: 6be5044fddfd394a1b53591add19c02fe1d09c8f] --- ctx.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ctx.go b/ctx.go index 992f052..6056ce8 100644 --- a/ctx.go +++ b/ctx.go @@ -31,16 +31,18 @@ package openssl //#define SSL_OP_NO_COMPRESSION 0 //#endif //static const SSL_METHOD *OUR_TLSv1_1_method() { -//#ifndef TLSv1_1_method +//#ifdef TLS1_1_VERSION +// return TLSv1_1_method(); +//#else // return NULL; //#endif -// return TLSv1_1_method(); //} //static const SSL_METHOD *OUR_TLSv1_2_method() { -//#ifndef TLSv1_2_method +//#ifdef TLS1_2_VERSION +// return TLSv1_2_method(); +//#else // return NULL; //#endif -// return TLSv1_2_method(); //} // //extern int verify_cb(int ok, X509_STORE_CTX* store);