Fix memory leaks.
[gnutls.git] / lib / gnutls_auth.h
blob07d8135274ffceb6f110b610d539e63bdd373d89
1 /*
2 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
4 * Author: Nikos Mavrogiannopoulos
6 * This file is part of GNUTLS.
8 * The GNUTLS library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21 * USA
25 #ifndef GNUTLS_AUTH_H
26 # define GNUTLS_AUTH_H
28 typedef struct mod_auth_st_int
30 const char *name; /* null terminated */
31 int (*gnutls_generate_server_certificate) (gnutls_session_t, opaque **);
32 int (*gnutls_generate_client_certificate) (gnutls_session_t, opaque **);
33 int (*gnutls_generate_server_kx) (gnutls_session_t, opaque **);
34 int (*gnutls_generate_client_kx) (gnutls_session_t, opaque **); /* used in SRP */
35 int (*gnutls_generate_client_cert_vrfy) (gnutls_session_t, opaque **);
36 int (*gnutls_generate_server_certificate_request) (gnutls_session_t,
37 opaque **);
39 int (*gnutls_process_server_certificate) (gnutls_session_t, opaque *,
40 size_t);
41 int (*gnutls_process_client_certificate) (gnutls_session_t, opaque *,
42 size_t);
43 int (*gnutls_process_server_kx) (gnutls_session_t, opaque *, size_t);
44 int (*gnutls_process_client_kx) (gnutls_session_t, opaque *, size_t);
45 int (*gnutls_process_client_cert_vrfy) (gnutls_session_t, opaque *, size_t);
46 int (*gnutls_process_server_certificate_request) (gnutls_session_t,
47 opaque *, size_t);
48 } mod_auth_st;
50 #endif