mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-04 18:02:22 +00:00

Contains support for both OpenSSL and GNU TLS. Certificate Authentification is not yet supported.
29 lines
756 B
C
29 lines
756 B
C
/*
|
|
* ngIRCd -- The Next Generation IRC Daemon
|
|
* SSL wrapper functions. (header)
|
|
*/
|
|
|
|
#ifndef conn_ssl_h
|
|
#define conn_ssl_h
|
|
|
|
#include "conf-ssl.h"
|
|
#include "conn.h"
|
|
#include "conf.h"
|
|
|
|
#ifdef SSL_SUPPORT
|
|
GLOBAL void ConnSSL_Free PARAMS(( CONNECTION *c ));
|
|
|
|
GLOBAL bool ConnSSL_PrepareConnect PARAMS(( CONNECTION *c, CONF_SERVER *s ));
|
|
|
|
GLOBAL int ConnSSL_Accept PARAMS(( CONNECTION *c ));
|
|
GLOBAL int ConnSSL_Connect PARAMS(( CONNECTION *c ));
|
|
|
|
GLOBAL ssize_t ConnSSL_Write PARAMS(( CONNECTION *c, const void *buf, size_t count));
|
|
GLOBAL ssize_t ConnSSL_Read PARAMS(( CONNECTION *c, void *buf, size_t count));
|
|
|
|
GLOBAL bool ConnSSL_GetCipherInfo PARAMS(( CONNECTION *c, char *buf, size_t len ));
|
|
#endif /* SSL_SUPPORT */
|
|
#endif /* conn_ssl_h */
|
|
|
|
/* -eof- */
|