removing broken code for compress and useless -- equally broken -- options

This commit is contained in:
Christian Grothoff
2008-11-18 08:20:26 +00:00
parent 7474a036d7
commit e5295880b9
21 changed files with 102 additions and 1169 deletions
@@ -80,34 +80,6 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
return -1;
}
if (MHD_get_connection_info
(connection,
MHD_CONNECTION_INFO_KX_ALGO)->kx_algorithm != MHD_GNUTLS_KX_RSA)
{
fprintf (stderr, "Error: requested key exchange mismatch. %s\n",
strerror (errno));
return -1;
}
if (MHD_get_connection_info
(connection,
MHD_CONNECTION_INFO_MAC_ALGO)->mac_algorithm != MHD_GNUTLS_MAC_SHA1)
{
fprintf (stderr, "Error: requested mac algorithm mismatch. %s\n",
strerror (errno));
return -1;
}
if (MHD_get_connection_info
(connection,
MHD_CONNECTION_INFO_COMPRESSION_METHOD)->compression_method !=
MHD_GNUTLS_COMP_NULL)
{
fprintf (stderr, "Error: requested compression mismatch. %s\n",
strerror (errno));
return -1;
}
if (MHD_get_connection_info
(connection,
MHD_CONNECTION_INFO_PROTOCOL)->protocol != MHD_GNUTLS_PROTOCOL_SSL3)
@@ -117,26 +89,6 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
return -1;
}
if (MHD_get_connection_info
(connection,
MHD_CONNECTION_INFO_CERT_TYPE)->certificate_type !=
MHD_GNUTLS_CRT_X509)
{
fprintf (stderr, "Error: requested certificate mismatch. %s\n",
strerror (errno));
return -1;
}
if (MHD_get_connection_info
(connection,
MHD_CONNECTION_INFO_CREDENTIALS_TYPE)->credentials_type !=
MHD_GNUTLS_CRD_CERTIFICATE)
{
fprintf (stderr, "Error: requested certificate mismatch. %s\n",
strerror (errno));
return -1;
}
response = MHD_create_response_from_data (strlen (EMPTY_PAGE),
(void *) EMPTY_PAGE,
MHD_NO, MHD_NO);