diff options
Diffstat (limited to 'src/daemon/https/tls/gnutls_state.c')
-rw-r--r-- | src/daemon/https/tls/gnutls_state.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/daemon/https/tls/gnutls_state.c b/src/daemon/https/tls/gnutls_state.c index 4f4ea122..0372b0f6 100644 --- a/src/daemon/https/tls/gnutls_state.c +++ b/src/daemon/https/tls/gnutls_state.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include <gnutls_buffers.h> | 38 | #include <gnutls_buffers.h> |
39 | #include <gnutls_state.h> | 39 | #include <gnutls_state.h> |
40 | #include <auth_cert.h> | 40 | #include <auth_cert.h> |
41 | #include <auth_anon.h> | ||
42 | #include <gnutls_algorithms.h> | 41 | #include <gnutls_algorithms.h> |
43 | #include <gnutls_rsa_export.h> | 42 | #include <gnutls_rsa_export.h> |
44 | 43 | ||
@@ -437,16 +436,6 @@ MHD_gtls_dh_set_peer_public (MHD_gtls_session_t session, mpi_t public) | |||
437 | 436 | ||
438 | switch (MHD_gtls_auth_get_type (session)) | 437 | switch (MHD_gtls_auth_get_type (session)) |
439 | { | 438 | { |
440 | case MHD_GNUTLS_CRD_ANON: | ||
441 | { | ||
442 | mhd_anon_auth_info_t info; | ||
443 | info = MHD_gtls_get_auth_info (session); | ||
444 | if (info == NULL) | ||
445 | return GNUTLS_E_INTERNAL_ERROR; | ||
446 | |||
447 | dh = &info->dh; | ||
448 | break; | ||
449 | } | ||
450 | case MHD_GNUTLS_CRD_CERTIFICATE: | 439 | case MHD_GNUTLS_CRD_CERTIFICATE: |
451 | { | 440 | { |
452 | cert_auth_info_t info; | 441 | cert_auth_info_t info; |
@@ -478,15 +467,6 @@ MHD_gtls_dh_set_secret_bits (MHD_gtls_session_t session, unsigned bits) | |||
478 | { | 467 | { |
479 | switch (MHD_gtls_auth_get_type (session)) | 468 | switch (MHD_gtls_auth_get_type (session)) |
480 | { | 469 | { |
481 | case MHD_GNUTLS_CRD_ANON: | ||
482 | { | ||
483 | mhd_anon_auth_info_t info; | ||
484 | info = MHD_gtls_get_auth_info (session); | ||
485 | if (info == NULL) | ||
486 | return GNUTLS_E_INTERNAL_ERROR; | ||
487 | info->dh.secret_bits = bits; | ||
488 | break; | ||
489 | } | ||
490 | case MHD_GNUTLS_CRD_CERTIFICATE: | 470 | case MHD_GNUTLS_CRD_CERTIFICATE: |
491 | { | 471 | { |
492 | cert_auth_info_t info; | 472 | cert_auth_info_t info; |
@@ -548,16 +528,6 @@ MHD_gtls_dh_set_group (MHD_gtls_session_t session, mpi_t gen, mpi_t prime) | |||
548 | 528 | ||
549 | switch (MHD_gtls_auth_get_type (session)) | 529 | switch (MHD_gtls_auth_get_type (session)) |
550 | { | 530 | { |
551 | case MHD_GNUTLS_CRD_ANON: | ||
552 | { | ||
553 | mhd_anon_auth_info_t info; | ||
554 | info = MHD_gtls_get_auth_info (session); | ||
555 | if (info == NULL) | ||
556 | return GNUTLS_E_INTERNAL_ERROR; | ||
557 | |||
558 | dh = &info->dh; | ||
559 | break; | ||
560 | } | ||
561 | case MHD_GNUTLS_CRD_CERTIFICATE: | 531 | case MHD_GNUTLS_CRD_CERTIFICATE: |
562 | { | 532 | { |
563 | cert_auth_info_t info; | 533 | cert_auth_info_t info; |