ext/libcouchbase/src/ssl/ssl_iot_common.h in libcouchbase-1.0.4 vs ext/libcouchbase/src/ssl/ssl_iot_common.h in libcouchbase-1.1.0
- old
+ new
@@ -29,11 +29,11 @@
#define IOTSSL_COMMON_FIELDS \
lcbio_TABLE base_; /**< Base table structure to export */ \
lcbio_pTABLE orig; /**< Table pointer we are wrapping */ \
SSL *ssl; /**< SSL object */ \
BIO *wbio; /**< BIO used for writing data to network */ \
- BIO *rbio; /**<< BIO used for reading data from network */\
+ BIO *rbio; /**< BIO used for reading data from network */\
lcb_io_opt_t iops_dummy_; /**< Dummy IOPS structure which is exposed to LCB */ \
int error; /**< Internal error flag set once a fatal error is detect */\
lcb_error_t errcode; /**< The error, converted into libcouchbase */
/**
@@ -111,10 +111,11 @@
* considered valid (unless a refcounted item is specifically kept alive).
*/
void
iotssl_destroy_common(lcbio_XSSL *xs);
+#if LCB_CAN_OPTIMIZE_SSL_BIO
/**
* Reserve a specified amount of bytes for reading into a `BUF_MEM*` structure.
* Currently the amount reserved is hard coded.
*
* Use this function to retrievw a pointer to the unused (but allocated) portion
@@ -130,9 +131,10 @@
* recv(fd, bm->data, bm->max-mb->length, 0);
* @endcode
*/
void
iotssl_bm_reserve(BUF_MEM *bm);
+#endif
/**
* Prepare the SSL structure so that a subsequent call to SSL_pending will
* actually determine if there's any data available for read
* @param ssl the SSL object