fix: fix uncorrect macro HLFABRIC_TLS_SUPPORT to BOAT_HLFABRIC_TLS_SUPPORT
#include <sys/time.h>
#if (PROTOCOL_USE_HLFABRIC == 1)
-#if (HLFABRIC_TLS_SUPPORT == 1)
+#if (BOAT_HLFABRIC_TLS_SUPPORT == 1)
// for TTLSContext structure
#include "http2intf.h"
#endif
@@ -393,7 +393,7 @@ BSINT32 BoatConnect(const BCHAR *address, void* rsvd)
}
-#if (HLFABRIC_TLS_SUPPORT == 1)
+#if (BOAT_HLFABRIC_TLS_SUPPORT == 1)
BOAT_RESULT BoatTlsInit( const BCHAR *hostName, const BoatFieldVariable *caChain,
BSINT32 socketfd, void* tlsContext, void* rsvd )
{
@@ -406,8 +406,8 @@ BOAT_RESULT BoatTlsInit( const BCHAR *hostName, const BoatFieldVariable *caChain
BSINT32 BoatSend(BSINT32 sockfd, void* tlsContext, const void *buf, size_t len, void* rsvd)
{
-#if (HLFABRIC_TLS_SUPPORT == 1)
- //! @todo HLFABRIC_TLS_SUPPORT implementation in crypto default.
+#if (BOAT_HLFABRIC_TLS_SUPPORT == 1)
+ //! @todo BOAT_HLFABRIC_TLS_SUPPORT implementation in crypto default.
return -1;
#else
return send( sockfd, buf, len, 0 );
@@ -417,8 +417,8 @@ BSINT32 BoatSend(BSINT32 sockfd, void* tlsContext, const void *buf, size_t len,
BSINT32 BoatRecv(BSINT32 sockfd, void* tlsContext, void *buf, size_t len, void* rsvd)
{
-#if (HLFABRIC_TLS_SUPPORT == 1)
- //! @todo HLFABRIC_TLS_SUPPORT implementation in crypto default.
+#if (BOAT_HLFABRIC_TLS_SUPPORT == 1)
+ //! @todo BOAT_HLFABRIC_TLS_SUPPORT implementation in crypto default.
return -1;
#else
return recv( sockfd, buf, len, 0 );
@@ -429,9 +429,9 @@ BSINT32 BoatRecv(BSINT32 sockfd, void* tlsContext, void *buf, size_t len, void*
void BoatClose(BSINT32 sockfd, void* tlsContext, void* rsvd)
{
close(sockfd);
-#if (HLFABRIC_TLS_SUPPORT == 1)
+#if (BOAT_HLFABRIC_TLS_SUPPORT == 1)
// free tls releated
- //! @todo HLFABRIC_TLS_SUPPORT implementation in crypto default.
+ //! @todo BOAT_HLFABRIC_TLS_SUPPORT implementation in crypto default.
#endif
}
#endif /* #if (PROTOCOL_USE_HLFABRIC == 1) */
