aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/tls/gnutls_auth.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-11-15 07:34:18 +0000
committerChristian Grothoff <christian@grothoff.org>2008-11-15 07:34:18 +0000
commit5d9a9723b3269dc58600d526dc719fa0bd525d3c (patch)
tree99526234bad906cec0dce0ec4c17f54ca3950977 /src/daemon/https/tls/gnutls_auth.c
parente460b1507c74c3d16b8e3cfee2f37e000c4b0159 (diff)
downloadlibmicrohttpd-5d9a9723b3269dc58600d526dc719fa0bd525d3c.tar.gz
libmicrohttpd-5d9a9723b3269dc58600d526dc719fa0bd525d3c.zip
removing broken and/or dead code
Diffstat (limited to 'src/daemon/https/tls/gnutls_auth.c')
-rw-r--r--src/daemon/https/tls/gnutls_auth.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/daemon/https/tls/gnutls_auth.c b/src/daemon/https/tls/gnutls_auth.c
index 6f14d9c8..fcb8ed55 100644
--- a/src/daemon/https/tls/gnutls_auth.c
+++ b/src/daemon/https/tls/gnutls_auth.c
@@ -30,7 +30,6 @@
30#include "auth_cert.h" 30#include "auth_cert.h"
31#include <gnutls_datum.h> 31#include <gnutls_datum.h>
32 32
33#include "auth_anon.h"
34/* The functions here are used in order for authentication algorithms 33/* The functions here are used in order for authentication algorithms
35 * to be able to retrieve the needed credentials eg public and private 34 * to be able to retrieve the needed credentials eg public and private
36 * key etc. 35 * key etc.
@@ -79,9 +78,6 @@ MHD__gnutls_credentials_clear (MHD_gtls_session_t session)
79 * structure. Thus you will have to keep the structure allocated until 78 * structure. Thus you will have to keep the structure allocated until
80 * you call MHD__gnutls_deinit(). ] 79 * you call MHD__gnutls_deinit(). ]
81 * 80 *
82 * For GNUTLS_CRD_ANON cred should be MHD_gtls_anon_client_credentials_t in case of a client.
83 * In case of a server it should be MHD_gtls_anon_server_credentials_t.
84 *
85 * For GNUTLS_CRD_SRP cred should be MHD_gnutls_srp_client_credentials_t 81 * For GNUTLS_CRD_SRP cred should be MHD_gnutls_srp_client_credentials_t
86 * in case of a client, and MHD_gnutls_srp_server_credentials_t, in case 82 * in case of a client, and MHD_gnutls_srp_server_credentials_t, in case
87 * of a server. 83 * of a server.
@@ -267,7 +263,6 @@ out:
267 * is data obtained by the handshake protocol, the key exchange algorithm, 263 * is data obtained by the handshake protocol, the key exchange algorithm,
268 * and the TLS extensions messages. 264 * and the TLS extensions messages.
269 * 265 *
270 * In case of GNUTLS_CRD_ANON returns a type of &anon_(server/client)_auth_info_t;
271 * In case of GNUTLS_CRD_CERTIFICATE returns a type of &cert_auth_info_t; 266 * In case of GNUTLS_CRD_CERTIFICATE returns a type of &cert_auth_info_t;
272 * In case of GNUTLS_CRD_SRP returns a type of &srp_(server/client)_auth_info_t; 267 * In case of GNUTLS_CRD_SRP returns a type of &srp_(server/client)_auth_info_t;
273 -*/ 268 -*/
@@ -301,17 +296,6 @@ MHD_gtls_free_auth_info (MHD_gtls_session_t session)
301 { 296 {
302 case MHD_GNUTLS_CRD_SRP: 297 case MHD_GNUTLS_CRD_SRP:
303 break; 298 break;
304 case MHD_GNUTLS_CRD_ANON:
305 {
306 mhd_anon_auth_info_t info = MHD_gtls_get_auth_info (session);
307
308 if (info == NULL)
309 break;
310
311 dh_info = &info->dh;
312 MHD_gtls_free_dh_info (dh_info);
313 }
314 break;
315 case MHD_GNUTLS_CRD_CERTIFICATE: 299 case MHD_GNUTLS_CRD_CERTIFICATE:
316 { 300 {
317 unsigned int i; 301 unsigned int i;