2 #define SERVER "127.0.0.1"
5 #include <gnutls/gnutls.h>
11 # define socklen_t int
12 # define close closesocket
14 # include <sys/socket.h>
15 # include <netinet/in.h>
16 # include <arpa/inet.h>
22 /* the number of elements in the priority structures.
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
);