summaryrefslogtreecommitdiff
path: root/lib/gnutls_auth.h
blob: c673e2598bd859f4279b2d9fe629630a6319c9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GNUTLS_AUTH_H
 #define GNUTLS_AUTH_H
typedef struct {
	char* name; /* null terminated */
	int (*gnutls_generate_certificate)( GNUTLS_KEY, opaque**);
	int (*gnutls_generate_server_kx)( GNUTLS_KEY, opaque**);
	int (*gnutls_generate_server_kx2)( GNUTLS_KEY, opaque**); /* used in SRP */
	int (*gnutls_generate_client_kx0)( GNUTLS_KEY, opaque**);
	int (*gnutls_generate_client_kx)( GNUTLS_KEY, opaque**); /* used in SRP */
	int (*gnutls_generate_client_cert_vrfy) ( GNUTLS_KEY, opaque**);
	int (*gnutls_generate_server_cert_vrfy) ( GNUTLS_KEY, opaque**);
	
	int (*gnutls_process_server_kx)( GNUTLS_KEY, opaque*, int);
	int (*gnutls_process_server_kx2)( GNUTLS_KEY, opaque*, int);
	int (*gnutls_process_client_kx0)( GNUTLS_KEY, opaque*, int);
	int (*gnutls_process_client_kx)( GNUTLS_KEY, opaque*, int);
	int (*gnutls_process_client_cert_vrfy) ( GNUTLS_KEY, opaque*, int);
	int (*gnutls_process_server_cert_vrfy) ( GNUTLS_KEY, opaque*, int);
} MOD_AUTH_STRUCT;


#endif