Qsmtp
0.37
|
functions for SSL encoding and decoding of network I/O More...
#include <qremote/starttlsr.h>
#include <control.h>
#include <log.h>
#include <netio.h>
#include <qdns.h>
#include <qdns_dane.h>
#include <qremote/qremote.h>
#include <ssl_timeoutio.h>
#include <sstring.h>
#include <tls.h>
#include <assert.h>
#include <fcntl.h>
#include <openssl/x509v3.h>
#include <string.h>
#include <strings.h>
#include <syslog.h>
#include <sys/stat.h>
#include <unistd.h>
Functions | |
int | tls_init (const struct daneinfo *tlsa_info, int tlsa_cnt) |
send STARTTLS and handle the connection setup More... | |
Variables | |
const char * | clientcertname = "control/clientcert.pem" |
functions for SSL encoding and decoding of network I/O
int tls_init | ( | const struct daneinfo * | tlsa_info, |
int | tlsa_cnt | ||
) |
send STARTTLS and handle the connection setup
d | the dane information received for that domain |
cnt | number of entries in d |
0 | SSL mode successfully set up |
>0 | SSL setup failed (non-local fault, e.g. network or reply error) |
<0 | SSL setup failed (local fault, e.g. unable to load file) |
EDONE | a network error happened but the connection may still be intact |
If the return value is <0 a status code for qmail-rspawn was already written.
const char* clientcertname = "control/clientcert.pem" |
filename of the TLS client certificate