#include <pthread.h>
#include <semaphore.h>
#include <openssl/ssl.h>
#include "SocketBuffer.h"
#include "Clients.h"
Go to the source code of this file.
|
int | SSLSocket_close (networkHandles *net) |
|
int | SSLSocket_connect (SSL *ssl, int sock, const char *hostname, int verify, int(*cb)(const char *str, size_t len, void *u), void *u) |
|
int | SSLSocket_continueWrite (pending_writes *pw) |
|
int | SSLSocket_getch (SSL *ssl, int socket, char *c) |
|
char * | SSLSocket_getdata (SSL *ssl, int socket, size_t bytes, size_t *actual_len, int *rc) |
|
int | SSLSocket_getPendingRead (void) |
|
void | SSLSocket_handleOpensslInit (int bool_value) |
|
int | SSLSocket_initialize (void) |
|
int | SSLSocket_putdatas (SSL *ssl, int socket, char *buf0, size_t buf0len, PacketBuffers bufs) |
|
int | SSLSocket_setSocketForSSL (networkHandles *net, MQTTClient_SSLOptions *opts, const char *hostname, size_t hostname_len) |
|
void | SSLSocket_terminate (void) |
|
#define ssl_mutex_type pthread_mutex_t |
int SSLSocket_connect |
( |
SSL * |
ssl, |
|
|
int |
sock, |
|
|
const char * |
hostname, |
|
|
int |
verify, |
|
|
int(*)(const char *str, size_t len, void *u) |
cb, |
|
|
void * |
u |
|
) |
| |
int SSLSocket_getch |
( |
SSL * |
ssl, |
|
|
int |
socket, |
|
|
char * |
c |
|
) |
| |
char* SSLSocket_getdata |
( |
SSL * |
ssl, |
|
|
int |
socket, |
|
|
size_t |
bytes, |
|
|
size_t * |
actual_len, |
|
|
int * |
rc |
|
) |
| |
int SSLSocket_getPendingRead |
( |
void |
| ) |
|
void SSLSocket_handleOpensslInit |
( |
int |
bool_value | ) |
|
if we should handle openssl initialization (bool_value == 1) or depend on it to be initalized externally (bool_value == 0)
int SSLSocket_initialize |
( |
void |
| ) |
|
int SSLSocket_putdatas |
( |
SSL * |
ssl, |
|
|
int |
socket, |
|
|
char * |
buf0, |
|
|
size_t |
buf0len, |
|
|
PacketBuffers |
bufs |
|
) |
| |
void SSLSocket_terminate |
( |
void |
| ) |
|