wmbiff: Fix compiler warnings from deprecated gnutls types.
[dockapps.git] / wmbiff / wmbiff / gnutls-common.h
blob3c74795fd180e3095958686d28cb394faa302ccf
1 #define PORT 5556
2 #define SERVER "127.0.0.1"
4 #include <config.h>
5 #include <gnutls/gnutls.h>
7 #ifdef _WIN32
8 # include <winsock.h>
9 # include <io.h>
10 # include <winbase.h>
11 # define socklen_t int
12 # define close closesocket
13 #else
14 # include <sys/socket.h>
15 # include <netinet/in.h>
16 # include <arpa/inet.h>
17 # include <unistd.h>
18 # include <netdb.h>
19 # include <signal.h>
20 #endif
22 /* the number of elements in the priority structures.
24 #define PRI_MAX 16
26 extern const char str_unknown[];
28 int print_info( gnutls_session_t state, const char* hostname);
29 void print_cert_info( gnutls_session_t state, const char* hostname);
30 void print_list(void);
32 void parse_comp( char** comp, int ncomp, int* comp_priority);
33 void parse_kx( char** kx, int nkx, int* kx_priority);
34 void parse_ctypes( char** ctype, int nctype, int * cert_type_priority);
35 void parse_macs( char** macs, int nmacs, int *mac_priority);
36 void parse_ciphers( char** ciphers, int nciphers, int* cipher_priority);
37 void parse_protocols( char** protocols, int protocols_size, int* protocol_priority);
39 void sockets_init( void);
40 #ifndef HAVE_INET_NTOP
41 const char *inet_ntop(int af, const void *src,
42 char *dst, size_t cnt);
43 #endif