summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r--plugins/netutils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 1a52eec..85b5aa9 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -32,7 +32,11 @@
32* 32*
33******************************************************************************/ 33******************************************************************************/
34 34
35#ifndef _NETUTILS_H_
36#define _NETUTILS_H_
37
35#include "config.h" 38#include "config.h"
39#include "common.h"
36#include <netinet/in.h> 40#include <netinet/in.h>
37#include <arpa/inet.h> 41#include <arpa/inet.h>
38 42
@@ -77,3 +81,14 @@ extern unsigned int socket_timeout;
77extern int econn_refuse_state; 81extern int econn_refuse_state;
78extern int was_refused; 82extern int was_refused;
79extern int address_family; 83extern int address_family;
84
85/* SSL-Related functionality */
86#ifdef HAVE_SSL
87/* maybe this could be merged with the above np_net_connect, via some flags */
88int np_net_ssl_init(int sd);
89void np_net_ssl_cleanup();
90int np_net_ssl_write(const void *buf, int num);
91int np_net_ssl_read(void *buf, int num);
92#endif /* HAVE_SSL */
93
94#endif /* _NETUTILS_H_ */