gnutls_auth.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
00003  *
00004  * Author: Nikos Mavrogiannopoulos
00005  *
00006  * This file is part of GNUTLS.
00007  *
00008  * The GNUTLS library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00021  * USA
00022  *
00023  */
00024 
00025 #ifndef GNUTLS_AUTH_H
00026 #define GNUTLS_AUTH_H
00027 
00028 typedef struct MHD_gtls_mod_auth_st_int
00029 {
00030   const char *name;             /* null terminated */
00031   int (*MHD_gtls_gen_server_certificate) (MHD_gtls_session_t, opaque **);
00032   int (*MHD_gtls_gen_client_certificate) (MHD_gtls_session_t, opaque **);
00033   int (*MHD_gtls_gen_server_kx) (MHD_gtls_session_t, opaque **);
00034   int (*MHD_gtls_gen_client_kx) (MHD_gtls_session_t, opaque **);        /* used in SRP */
00035   int (*MHD_gtls_gen_client_cert_vrfy) (MHD_gtls_session_t, opaque **);
00036   int (*MHD_gtls_gen_server_certificate_request) (MHD_gtls_session_t,
00037                                                   opaque **);
00038 
00039   int (*MHD_gtls_process_server_certificate) (MHD_gtls_session_t, opaque *,
00040                                               size_t);
00041   int (*MHD_gtls_process_client_certificate) (MHD_gtls_session_t, opaque *,
00042                                               size_t);
00043   int (*MHD_gtls_process_server_kx) (MHD_gtls_session_t, opaque *, size_t);
00044   int (*MHD_gtls_process_client_kx) (MHD_gtls_session_t, opaque *, size_t);
00045   int (*MHD_gtls_process_client_cert_vrfy) (MHD_gtls_session_t, opaque *,
00046                                             size_t);
00047   int (*MHD_gtls_process_server_certificate_request) (MHD_gtls_session_t,
00048                                                       opaque *, size_t);
00049 } MHD_gtls_mod_auth_st;
00050 
00051 #endif

Generated on Fri Feb 27 18:18:40 2009 for GNU libmicrohttpd by  doxygen 1.5.8