summaryrefslogtreecommitdiff
path: root/lib/gnutls_auth.h
blob: 6aea18f317f4abd6ff0a4c36ed5dbbd7b9a1a8e5 (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
27
28
#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_t,
					       opaque **);
    int (*gnutls_generate_client_certificate) (gnutls_session_t,
					       opaque **);
    int (*gnutls_generate_server_kx) (gnutls_session_t, opaque **);
    int (*gnutls_generate_client_kx) (gnutls_session_t, opaque **);	/* used in SRP */
    int (*gnutls_generate_client_cert_vrfy) (gnutls_session_t, opaque **);
    int (*gnutls_generate_server_certificate_request) (gnutls_session_t,
						       opaque **);

    int (*gnutls_process_server_certificate) (gnutls_session_t, opaque *,
					      size_t);
    int (*gnutls_process_client_certificate) (gnutls_session_t, opaque *,
					      size_t);
    int (*gnutls_process_server_kx) (gnutls_session_t, opaque *, size_t);
    int (*gnutls_process_client_kx) (gnutls_session_t, opaque *, size_t);
    int (*gnutls_process_client_cert_vrfy) (gnutls_session_t, opaque *,
					    size_t);
    int (*gnutls_process_server_certificate_request) (gnutls_session_t,
						      opaque *, size_t);
} mod_auth_st;

#endif