Qsmtp  0.30dev
Functions
ssl_timeoutio.h File Reference

definition of wrappers around OpenSSL functions More...

#include <openssl/ssl.h>
#include <time.h>

Go to the source code of this file.

Functions

int ssl_timeoutconn (time_t)
 establish SSL protocol to remote host More...
 
int ssl_timeoutaccept (time_t)
 accept the request for SSL More...
 
int ssl_timeoutrehandshake (time_t)
 do a new SSL handshake More...
 
int ssl_timeoutread (time_t, char *, const int)
 
int ssl_timeoutwrite (time_t, const char *, const int)
 

Detailed Description

definition of wrappers around OpenSSL functions

Function Documentation

int ssl_timeoutaccept ( time_t  t)

accept the request for SSL

Parameters
ttimeout in seconds
Returns
if the call was successful
Return values
0the call was successful
<0error code
int ssl_timeoutconn ( time_t  t)

establish SSL protocol to remote host

Parameters
ttimeout in seconds
Returns
if the call was successful
Return values
0the call was successful
<0error code
int ssl_timeoutrehandshake ( time_t  t)

do a new SSL handshake

Parameters
ttimeout in seconds
Returns
if handshake was successful
Return values
>0handshake was successful
<0error code
int ssl_timeoutwrite ( time_t  t,
const char *  buf,
const int  len 
)
inline

write data SSL encrypted to network

Parameters
ttimeout
bufdata to send
lenlength of buf
Returns
return code of SSL_write