mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-26 04:09:30 +03:00
indentation
This commit is contained in:
@@ -70,24 +70,24 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
|
||||
int ret;
|
||||
|
||||
/* assert actual connection cipher is the one negotiated */
|
||||
if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->cipher_algorithm
|
||||
!= MHD_GNUTLS_CIPHER_AES_256_CBC)
|
||||
if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->
|
||||
cipher_algorithm != MHD_GNUTLS_CIPHER_AES_256_CBC)
|
||||
{
|
||||
fprintf (stderr, "Error: requested cipher mismatch. %s\n",
|
||||
strerror (errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_KX_ALGO)->kx_algorithm !=
|
||||
MHD_GNUTLS_KX_RSA)
|
||||
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)
|
||||
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));
|
||||
@@ -104,16 +104,16 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->protocol !=
|
||||
MHD_GNUTLS_PROTOCOL_SSL3)
|
||||
if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->
|
||||
protocol != MHD_GNUTLS_PROTOCOL_SSL3)
|
||||
{
|
||||
fprintf (stderr, "Error: requested compression mismatch. %s\n",
|
||||
strerror (errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CERT_TYPE)->certificate_type
|
||||
!= MHD_GNUTLS_CRT_X509)
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user