summaryrefslogtreecommitdiff
path: root/lib/xssl.h
blob: aac26a9755d970dec77f482f1040f3a864fc3e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef SBUF_H
#define SBUF_H

#include <gnutls_str.h>
#include <gnutls/gnutls.h>

struct xssl_cred_st {
	gnutls_certificate_credentials_t xcred;
	char tofu_file[MAX_FILENAME];
	unsigned vflags;
};

struct xssl_st {
	gnutls_session_t session;
	gnutls_buffer_st buf;

	char server_name[MAX_SERVER_NAME_SIZE];
	char service_name[MAX_SERVER_NAME_SIZE];

	xssl_cred_t cred;

	unsigned int vstatus;	/* the verification status reason */
	unsigned int flags;
};

#endif