| #ifndef ABYSS_OPENSSL_H_INCLUDED |
| #define ABYSS_OPENSSL_H_INCLUDED |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
|
|
| #include <sys/socket.h> |
| #include <xmlrpc-c/abyss.h> |
| #include <openssl/ssl.h> |
|
|
| struct abyss_openSsl_chaninfo { |
| size_t peerAddrLen; |
| |
| |
| |
| |
| struct sockaddr peerAddr; |
|
|
| SSL * sslP; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| }; |
|
|
| void |
| ChanSwitchOpenSslCreate(int const protocolFamily, |
| const struct sockaddr * const sockAddrP, |
| socklen_t const sockAddrLen, |
| SSL_CTX * const sslCtxP, |
| TChanSwitch ** const chanSwitchPP, |
| const char ** const errorP); |
|
|
| void |
| ChanSwitchOpenSslCreateIpV4Port(unsigned short const portNumber, |
| SSL_CTX * const sslCtxP, |
| TChanSwitch ** const chanSwitchPP, |
| const char ** const errorP); |
|
|
| void |
| ChanSwitchOpenSslCreateIpV6Port(unsigned short const portNumber, |
| SSL_CTX * const sslCtxP, |
| TChanSwitch ** const chanSwitchPP, |
| const char ** const errorP); |
|
|
| void |
| ChanSwitchOpenSslCreateFd(int const fd, |
| SSL_CTX * const sslCtxP, |
| TChanSwitch ** const chanSwitchPP, |
| const char ** const errorP); |
|
|
| void |
| ChannelOpenSslCreateSsl(SSL * const sslP, |
| TChannel ** const channelPP, |
| struct abyss_openSsl_chaninfo ** const channelInfoPP, |
| const char ** const errorP); |
|
|
| #ifdef __cplusplus |
| } |
| #endif |
|
|
| #endif |
|
|