summaryrefslogtreecommitdiff
path: root/lib/gnutls_auth.h
blob: 23cb6d742e64ec0b7692878550357767e800479f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef GNUTLS_AUTH_H
# define GNUTLS_AUTH_H

typedef struct mod_auth_st_int {
	const char* name; /* null terminated */
	int (*gnutls_generate_server_certificate)( gnutls_session, opaque**);
	int (*gnutls_generate_client_certificate)( gnutls_session, opaque**);
	int (*gnutls_generate_server_kx)( gnutls_session, opaque**);
	int (*gnutls_generate_client_kx)( gnutls_session, opaque**); /* used in SRP */
	int (*gnutls_generate_client_cert_vrfy) ( gnutls_session, opaque**);
	int (*gnutls_generate_server_certificate_request) ( gnutls_session, opaque**);
	
	int (*gnutls_process_server_certificate)( gnutls_session, opaque*, size_t);
	int (*gnutls_process_client_certificate)( gnutls_session, opaque*, size_t);
	int (*gnutls_process_server_kx)( gnutls_session, opaque*, size_t);
	int (*gnutls_process_client_kx)( gnutls_session, opaque*, size_t);
	int (*gnutls_process_client_cert_vrfy) ( gnutls_session, opaque*, size_t);
	int (*gnutls_process_server_certificate_request) ( gnutls_session, opaque*, size_t);
} mod_auth_st;

#endif