diff options
Diffstat (limited to 'src/qmail-smtpc/qmailr.h')
| -rw-r--r-- | src/qmail-smtpc/qmailr.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/qmail-smtpc/qmailr.h b/src/qmail-smtpc/qmailr.h index 6ee9bfc..d623274 100644 --- a/src/qmail-smtpc/qmailr.h +++ b/src/qmail-smtpc/qmailr.h @@ -1,9 +1,12 @@ /* ISC license. */ +#include <stddef.h> #include <stdint.h> #include <skalibs/gccattributes.h> #include <skalibs/tai.h> +#include <skalibs/stralloc.h> + /* qmailr_error */ @@ -20,8 +23,36 @@ extern void qmailr_diesys (char const *) gccattr_noreturn ; #define qmailr_permv(v, n) qmailr_diev(1, (v), n) +/* qmailr_utils */ + +extern int qmailr_memcmp4 (void const *, void const *) ; +extern int qmailr_memcmp16 (void const *, void const *) ; + + /* qmailr_tcpto */ extern int qmailr_tcpto_match (char const *, int) ; extern int qmailr_tcpto_update (char const *, int, int) ; + +/* qmailr_control */ + +extern int qmailr_control_read (char const *, stralloc *, size_t *) ; +extern int qmailr_control_readint (char const *file, unsigned int *, stralloc *) ; + + +/* qmailr_tls */ + +typedef struct qmailr_tls_s qmailr_tls, *qmailr_tls_ref ; +struct qmailr_tls_s +{ + size_t tapos ; + size_t certpos ; + size_t keypos ; + uint8_t flagtls : 1 ; + uint8_t flagtadir : 1 ; + uint8_t flagclientcert : 1 ; +} ; +#define QMAILR_TLS_ZERO { 0 } + +extern int qmailr_tls_init (qmailr_tls *, stralloc *) ; |
