add microphone server/client examples
[rofl0r-rocksock.git] / rocksock_ssl_internal.h
blob1358a2773f7b74834068eb96c94ecf47102b0f83
1 #ifndef ROCKSOCK_SSL_PRIVATE_H
2 #define ROCKSOCK_SSL_PRIVATE_H
4 #include "rocksock.h"
6 const char* rocksock_ssl_strerror(rocksock *sock, int error);
7 int rocksock_ssl_send(rocksock* sock, char* buf, size_t sz);
8 int rocksock_ssl_recv(rocksock* sock, char* buf, size_t sz);
9 int rocksock_ssl_connect_fd(rocksock* sock);
10 void rocksock_ssl_free_context(rocksock *sock);
11 int rocksock_ssl_peek(rocksock* sock, int *result);
12 int rocksock_ssl_pending(rocksock *sock);
14 /* if you want cyassl, put both -DUSE_SSL and -DUSE_CYASSL
15 in your CFLAGS */
17 // skip the following, if USE_SSL is not given in CFLAGS
18 //RcB: SKIPUON "USE_SSL"
20 // skip openssl impl if USE_CYASSL was given.
21 //RcB: SKIPON "USE_CYASSL"
22 //RcB: DEP "rocksock_ssl.c"
23 //RcB: SKIPOFF "USE_CYASSL"
25 // skip cyassl impl if USE_CYASSL was not given.
26 //RcB: SKIPUON "USE_CYASSL"
27 //RcB: DEP "rocksock_cyassl.c"
28 //RcB: SKIPUOFF "USE_CYASSL"
30 //RcB: SKIPUOFF "USE_SSL"
32 #endif