ssl.h
author Sunil Nimmagadda <sunil@nimmagadda.net>
Fri, 05 Sep 2014 10:24:20 +0500
changeset 41 0cb519e770ba
parent 0 9e2cb1ed20b1
child 43 6903f7870c4c
permissions -rw-r--r--
The sockaddr_storage returned by accept(2) belongs to session and not the listener. Move it to a place where it belongs: struct session.

#include <openssl/ssl.h>

/* ssl.c */
void ssl_init(void);
void *ssl_setup(void);
void *pop3s_init(SSL_CTX *, int);
void ssl_error(const char *);

/* ssl_privsep.c */
int ssl_ctx_use_private_key(SSL_CTX *, char *, off_t);
int ssl_ctx_use_certificate_chain(SSL_CTX *, char *, off_t);