summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_openssl_bio.h
diff options
context:
space:
mode:
Diffstat (limited to 'librabbitmq/amqp_openssl_bio.h')
-rw-r--r--librabbitmq/amqp_openssl_bio.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/librabbitmq/amqp_openssl_bio.h b/librabbitmq/amqp_openssl_bio.h
index 9c99c78..ec09c5e 100644
--- a/librabbitmq/amqp_openssl_bio.h
+++ b/librabbitmq/amqp_openssl_bio.h
@@ -29,6 +29,16 @@ int amqp_openssl_bio_init(void);
void amqp_openssl_bio_destroy(void);
-BIO_METHOD* amqp_openssl_bio(void);
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+#define AMQP_OPENSSL_V110
+#endif
+
+#ifdef AMQP_OPENSSL_V110
+typedef const BIO_METHOD *BIO_METHOD_PTR;
+#else
+typedef BIO_METHOD *BIO_METHOD_PTR;
+#endif
+
+BIO_METHOD_PTR amqp_openssl_bio(void);
#endif /* ifndef AMQP_OPENSSL_BIO */