@@ -4,11 +4,11 @@ * Provides BIO layer to interface openssl to Tcl. */ #include "tlsInt.h" -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#ifdef TCLTLS_OPENSSL_PRE_1_1_API #define BIO_get_data(bio) ((bio)->ptr) #define BIO_get_init(bio) ((bio)->init) #define BIO_get_shutdown(bio) ((bio)->shutdown) #define BIO_set_data(bio, val) (bio)->ptr = (val) #define BIO_set_init(bio, val) (bio)->init = (val)