ucspi-ssl 0.13.03
ucspi-ssl
Loading...
Searching...
No Matches
Macros | Functions | Variables
ucspissl.h File Reference

Header file to be used with sqmail; previously called ssl.h. (name clash) More...

#include <openssl/ssl.h>
#include "openssl/asn1.h"
#include "openssl/ec.h"
#include "openssl/err.h"
#include "openssl/evp.h"
#include "openssl/pem.h"
#include "openssl/rsa.h"
#include "openssl/opensslv.h"
#include "openssl/safestack.h"
#include "openssl/x509.h"
#include "openssl/x509v3.h"
#include "stralloc.h"
Include dependency graph for ucspissl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SSLv2_DISABLE
 
#define SSLv3_DISABLE
 
#define SSL_NAME_LEN   256
 
#define SSL_RSA_LEN   4096
 
#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 (const 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_chainfile (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 *, stralloc *)
 
int ssl_params_rsa (SSL_CTX *, int)
 
int ssl_params_dh (SSL_CTX *, const char *)
 
int ssl_server_env (SSL *, stralloc *)
 
int ssl_client_env (SSL *, stralloc *)
 
int ssl_error (int(*)(const char *))
 
char * ssl_error_str (int)
 

Variables

int ssl_errno
 

Detailed Description

Header file to be used with sqmail; previously called ssl.h. (name clash)

Author
web, feh

All OpenSSL/LibreSSL header files are called from here

Definition in file ucspissl.h.

Macro Definition Documentation

◆ ssl_client

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

Definition at line 39 of file ucspissl.h.

◆ ssl_close

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

Definition at line 63 of file ucspissl.h.

◆ ssl_errstr

#define ssl_errstr ( )    (SSL_load_error_strings())

Definition at line 61 of file ucspissl.h.

◆ ssl_free

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

Definition at line 62 of file ucspissl.h.

◆ SSL_NAME_LEN

#define SSL_NAME_LEN   256

Definition at line 36 of file ucspissl.h.

◆ ssl_pending

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

Definition at line 65 of file ucspissl.h.

◆ SSL_RSA_LEN

#define SSL_RSA_LEN   4096

Definition at line 37 of file ucspissl.h.

◆ ssl_server

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

Definition at line 40 of file ucspissl.h.

◆ ssl_shutdown

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

Definition at line 66 of file ucspissl.h.

◆ ssl_shutdown_pending

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

Definition at line 67 of file ucspissl.h.

◆ ssl_shutdown_sent

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

Definition at line 68 of file ucspissl.h.

◆ SSLv2_DISABLE

#define SSLv2_DISABLE

Definition at line 29 of file ucspissl.h.

◆ SSLv3_DISABLE

#define SSLv3_DISABLE

Definition at line 30 of file ucspissl.h.

Function Documentation

◆ ssl_ca()

int ssl_ca ( SSL_CTX *  ctx,
const char *  certfile,
const char *  certdir,
int  d 
)

Definition at line 3 of file ssl_ca.c.

Here is the caller graph for this function:

◆ ssl_cca()

int ssl_cca ( SSL_CTX *  ctx,
const char *  certfile 
)

Definition at line 3 of file ssl_cca.c.

Here is the caller graph for this function:

◆ ssl_certkey()

int ssl_certkey ( SSL_CTX *  ctx,
const char *  certfile,
const char *  keyfile,
pem_password_cb *  passwd_cb 
)

Definition at line 3 of file ssl_certkey.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_chainfile()

int ssl_chainfile ( SSL_CTX *  ctx,
const char *  certchainfile,
const char *  keyfile,
pem_password_cb *  passwd_cb 
)

Definition at line 8 of file ssl_chainfile.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_ciphers()

int ssl_ciphers ( SSL_CTX *  ctx,
const char *  ciphers 
)

Definition at line 3 of file ssl_ciphers.c.

Here is the caller graph for this function:

◆ ssl_client_env()

int ssl_client_env ( SSL *  ssl,
stralloc *  sa 
)

Definition at line 447 of file ssl_env.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_context()

SSL_CTX * ssl_context ( const SSL_METHOD *  m)

Definition at line 3 of file ssl_context.c.

◆ ssl_error()

int ssl_error ( int(*)(const char *)  op)

Definition at line 3 of file ssl_error.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_error_str()

char * ssl_error_str ( int  )

◆ ssl_io()

int ssl_io ( SSL *  ssl,
int  fdleft,
int  fdright,
unsigned int  timeout 
)

Definition at line 20 of file ssl_io.c.

Here is the caller graph for this function:

◆ ssl_new()

SSL * ssl_new ( SSL_CTX *  ctx,
int  s 
)

Definition at line 4 of file ssl_new.c.

Here is the caller graph for this function:

◆ ssl_params_dh()

int ssl_params_dh ( SSL_CTX *  ctx,
const char *  dhfile 
)

Definition at line 37 of file ssl_params.c.

Here is the caller graph for this function:

◆ ssl_params_rsa()

int ssl_params_rsa ( SSL_CTX *  ctx,
int  len 
)

Definition at line 8 of file ssl_params.c.

Here is the caller graph for this function:

◆ ssl_server_env()

int ssl_server_env ( SSL *  ssl,
stralloc *  sa 
)

Definition at line 456 of file ssl_env.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_timeoutaccept()

int ssl_timeoutaccept ( SSL *  ssl,
unsigned int  timeout 
)

Definition at line 7 of file ssl_timeout.c.

Here is the caller graph for this function:

◆ ssl_timeoutconn()

int ssl_timeoutconn ( SSL *  ssl,
unsigned int  timeout 
)

Definition at line 60 of file ssl_timeout.c.

Here is the caller graph for this function:

◆ ssl_verify()

int ssl_verify ( SSL *  ssl,
const char *  hostname,
stralloc *  dnsout 
)

Definition at line 10 of file ssl_verify.c.

Here is the caller graph for this function:

Variable Documentation

◆ ssl_errno

int ssl_errno
extern

Definition at line 3 of file ucspissl.c.