18 #if !defined(SSLSOCKET_H) 21 #if defined(_WIN32) || defined(_WIN64) 22 #define ssl_mutex_type HANDLE 25 #include <semaphore.h> 26 #define ssl_mutex_type pthread_mutex_t 29 #include <openssl/ssl.h> 33 #define URI_SSL "ssl://" int SSLSocket_getch(SSL *ssl, int socket, char *c)
int SSLSocket_setSocketForSSL(networkHandles *net, MQTTClient_SSLOptions *opts, const char *hostname, size_t hostname_len)
int SSLSocket_connect(SSL *ssl, int sock, const char *hostname, int verify, int(*cb)(const char *str, size_t len, void *u), void *u)
void SSLSocket_handleOpensslInit(int bool_value)
int SSLSocket_getPendingRead(void)
void SSLSocket_terminate(void)
int SSLSocket_putdatas(SSL *ssl, int socket, char *buf0, size_t buf0len, PacketBuffers bufs)
int SSLSocket_close(networkHandles *net)
int SSLSocket_initialize(void)
int SSLSocket_continueWrite(pending_writes *pw)
char * SSLSocket_getdata(SSL *ssl, int socket, size_t bytes, size_t *actual_len, int *rc)