diff options
Diffstat (limited to 'src/iosocket.h')
-rw-r--r-- | src/iosocket.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/iosocket.h b/src/iosocket.h deleted file mode 100644 index a11dbfe0..00000000 --- a/src/iosocket.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef _IOSOCKET_H_ -#define _IOSOCKET_H_ - -/** - * make sure we know about OPENSSL all the time - * - * if we don't include config.h here we run into different sizes - * for the iosocket-struct depending on config.h include before - * iosocket.h or not - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#if defined HAVE_LIBSSL && defined HAVE_OPENSSL_SSL_H -# define USE_OPENSSL -# include <openssl/ssl.h> -#endif - -#include "settings.h" -#include "buffer.h" - -typedef enum { - IOSOCKET_TYPE_UNSET, - IOSOCKET_TYPE_SOCKET, - IOSOCKET_TYPE_PIPE -} iosocket_t; - -/** - * a non-blocking fd - */ -typedef struct { - int fd; - int fde_ndx; - -#ifdef USE_OPENSSL - SSL *ssl; -#ifndef OPENSSL_NO_TLSEXT - buffer *tlsext_server_name; -#endif -#endif - - iosocket_t type; /**< sendfile on solaris doesn't work on pipes */ -} iosocket; - -LI_API iosocket * iosocket_init(void); -LI_API void iosocket_free(iosocket *sock); - -#endif |