![]() |
s/qmail 4.3.20
Next generation secure email transport
|
connection functions: tls_conn, tls_exit; verification functions: tls_certkey, tls_checkpeer, tls_fingerprint, tlsa_check; tls_destination, tls_domaincert dummy functions: tls_crlcheck More...
#include <unistd.h>
#include "ucspissl.h"
#include "fmt.h"
#include "stralloc.h"
#include "str.h"
#include "byte.h"
#include "case.h"
#include "dns.h"
#include "constmap.h"
#include "tls_remote.h"
#include "tls_errors.h"
Go to the source code of this file.
Macros | |
#define | X509_cert_digest X509_digest |
Functions | |
int | tls_certkey (SSL_CTX *ctx, const char *cert, const char *key, char *ppwd) |
int | tls_conn (SSL *ssl, int smtpfd) |
int | tls_checkpeer (SSL *ssl, X509 *cert, const stralloc host, const int flag, const int verify) |
int | tls_checkcrl (SSL *ssl) |
int | dig_ascii (char *digascii, const char *digest, const int len) |
int | X509_pkey_digest (const X509 *cert, const EVP_MD *type, unsigned char *md, unsigned int *dlen) |
int | tlsa_check (const STACK_OF(X509) *certs, const stralloc host, const unsigned long p) |
int | tls_fingerprint (X509 *cert, const char *fingerprint, int dlen) |
int | tls_exit (SSL *ssl) |
int | tls_destination (const stralloc hostname) |
tls_destination | |
int | tls_domaincerts (const stralloc domainname) |
Variables | |
const char | tlsa0 [512] = { 512 * 0 } |
connection functions: tls_conn, tls_exit; verification functions: tls_certkey, tls_checkpeer, tls_fingerprint, tlsa_check; tls_destination, tls_domaincert dummy functions: tls_crlcheck
-- TLS client functions
tls_checkpeer: r = 0 -> ADH, r = 1 -> wildcard DN, r = 2 -> DN, r = 3 -> CA; r < 0 -> error tls_fingerprint: r = 0 -> failed, r = 1 -> ok; r < 0 -> error tlsa_check: r = 0 -> nothing, r = usage + 1, r < 0 -> error
Definition in file tls_remote.c.
#define X509_cert_digest X509_digest |
Definition at line 27 of file tls_remote.c.
int tls_certkey | ( | SSL_CTX * | ctx, |
const char * | cert, | ||
const char * | key, | ||
char * | ppwd | ||
) |
int tls_checkcrl | ( | SSL * | ssl | ) |
Definition at line 114 of file tls_remote.c.
int tls_destination | ( | const stralloc | hostname | ) |
tls_destination
stralloc | hostname (maybe 0-terminated) Certificate Fallthru |
no TLS -1
Definition at line 276 of file tls_remote.c.
int tls_domaincerts | ( | const stralloc | domainname | ) |
int tls_exit | ( | SSL * | ssl | ) |
Definition at line 231 of file tls_remote.c.
int tlsa_check | ( | const STACK_OF(X509) * | certs, |
const stralloc | host, | ||
const unsigned long | p | ||
) |
Definition at line 168 of file tls_remote.c.
const char tlsa0[512] = { 512 * 0 } |
Definition at line 166 of file tls_remote.c.