s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
ucspitls.h File Reference
#include <openssl/ssl.h>
#include <openssl/opensslv.h>
#include <openssl/ec.h>
#include "stralloc.h"
Include dependency graph for ucspitls.h:

Go to the source code of this file.

Macros

#define SSL_NAME_LEN   256
 
#define OPENSSL_VERSION_NUMBER   0x101010100L
 
#define ssl_client()   (ssl_context(TLS_client_method()))
 
#define ssl_server()   (ssl_context(TLS_server_method()))
 
#define ssl_errstr()   (SSL_load_error_strings())
 
#define ssl_free(ssl)   (SSL_free((ssl)))
 
#define ssl_close(ssl)   (close(SSL_get_fd((ssl))))
 
#define ssl_pending(ssl)   (SSL_pending((ssl)))
 
#define ssl_shutdown(ssl)   (SSL_shutdown((ssl)))
 
#define ssl_shutdown_pending(ssl)   (SSL_get_shutdown((ssl)) & SSL_RECEIVED_SHUTDOWN)
 
#define ssl_shutdown_sent(ssl)   (SSL_get_shutdown((ssl)) & SSL_SENT_SHUTDOWN)
 

Functions

int ssl_io (SSL *, int, int, unsigned int)
 
SSL_CTX * ssl_context (SSL_METHOD *)
 
int ssl_timeoutconn (SSL *, unsigned int)
 
int ssl_timeoutaccept (SSL *, unsigned int)
 
SSL * ssl_new (SSL_CTX *, int)
 
int ssl_certkey (SSL_CTX *, const char *, const char *, pem_password_cb *)
 
int ssl_ca (SSL_CTX *, const char *, const char *, int)
 
int ssl_cca (SSL_CTX *, const char *)
 
int ssl_ciphers (SSL_CTX *, const char *)
 
int ssl_verify (SSL *, const char *)
 
int ssl_params (SSL_CTX *, const char *, int)
 
int ssl_server_env (SSL *, stralloc *)
 
int ssl_client_env (SSL *, stralloc *)
 
char * ssl_error_str (int)
 

Variables

int ssl_errno
 

Macro Definition Documentation

◆ OPENSSL_VERSION_NUMBER

#define OPENSSL_VERSION_NUMBER   0x101010100L

Definition at line 10 of file ucspitls.h.

◆ ssl_client

#define ssl_client ( )    (ssl_context(TLS_client_method()))

Definition at line 16 of file ucspitls.h.

◆ ssl_close

#define ssl_close (   ssl)    (close(SSL_get_fd((ssl))))

Definition at line 38 of file ucspitls.h.

◆ ssl_errstr

#define ssl_errstr ( )    (SSL_load_error_strings())

Definition at line 36 of file ucspitls.h.

◆ ssl_free

#define ssl_free (   ssl)    (SSL_free((ssl)))

Definition at line 37 of file ucspitls.h.

◆ SSL_NAME_LEN

#define SSL_NAME_LEN   256

Definition at line 9 of file ucspitls.h.

◆ ssl_pending

#define ssl_pending (   ssl)    (SSL_pending((ssl)))

Definition at line 40 of file ucspitls.h.

◆ ssl_server

#define ssl_server ( )    (ssl_context(TLS_server_method()))

Definition at line 17 of file ucspitls.h.

◆ ssl_shutdown

#define ssl_shutdown (   ssl)    (SSL_shutdown((ssl)))

Definition at line 41 of file ucspitls.h.

◆ ssl_shutdown_pending

#define ssl_shutdown_pending (   ssl)    (SSL_get_shutdown((ssl)) & SSL_RECEIVED_SHUTDOWN)

Definition at line 42 of file ucspitls.h.

◆ ssl_shutdown_sent

#define ssl_shutdown_sent (   ssl)    (SSL_get_shutdown((ssl)) & SSL_SENT_SHUTDOWN)

Definition at line 43 of file ucspitls.h.

Function Documentation

◆ ssl_ca()

int ssl_ca ( SSL_CTX *  ,
const char *  ,
const char *  ,
int   
)
Here is the caller graph for this function:

◆ ssl_cca()

int ssl_cca ( SSL_CTX *  ,
const char *   
)

◆ ssl_certkey()

int ssl_certkey ( SSL_CTX *  ,
const char *  ,
const char *  ,
pem_password_cb *   
)

◆ ssl_ciphers()

int ssl_ciphers ( SSL_CTX *  ,
const char *   
)
Here is the caller graph for this function:

◆ ssl_client_env()

int ssl_client_env ( SSL *  ,
stralloc *   
)

◆ ssl_context()

SSL_CTX * ssl_context ( SSL_METHOD *  )

◆ ssl_error_str()

char * ssl_error_str ( int  )

◆ ssl_io()

int ssl_io ( SSL *  ,
int  ,
int  ,
unsigned int   
)

◆ ssl_new()

SSL * ssl_new ( SSL_CTX *  ,
int   
)
Here is the caller graph for this function:

◆ ssl_params()

int ssl_params ( SSL_CTX *  ,
const char *  ,
int   
)

◆ ssl_server_env()

int ssl_server_env ( SSL *  ,
stralloc *   
)

◆ ssl_timeoutaccept()

int ssl_timeoutaccept ( SSL *  ,
unsigned int   
)

◆ ssl_timeoutconn()

int ssl_timeoutconn ( SSL *  ,
unsigned int   
)

◆ ssl_verify()

int ssl_verify ( SSL *  ,
const char *   
)

Variable Documentation

◆ ssl_errno

int ssl_errno
extern