summaryrefslogtreecommitdiff
path: root/src/common.h
blob: 594b33ea9e46f1fa613863edcd579b0c4842edd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define PORT 5556
#define SERVER "127.0.0.1"

#include <gnutls/gnutls.h>

/* the number of elements in the priority structures.
 */
#define PRI_MAX 16

int print_info( gnutls_session state, const char* hostname);
void print_cert_info( gnutls_session state, const char* hostname);
void print_list(void);

void parse_comp( char** comp, int ncomp, int* comp_priority);
void parse_kx( char** kx, int nkx, int* kx_priority);
void parse_ctypes( char** ctype, int nctype, int * cert_type_priority);
void parse_macs( char** macs, int nmacs, int *mac_priority);
void parse_ciphers( char** ciphers, int nciphers, int* cipher_priority);
void parse_protocols( char** protocols, int protocols_size, int* protocol_priority);