diff options
Diffstat (limited to 'src/daemon/connection_https.c')
-rw-r--r-- | src/daemon/connection_https.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c index 76b530b4..b5b1a4ba 100644 --- a/src/daemon/connection_https.c +++ b/src/daemon/connection_https.c @@ -40,40 +40,6 @@ #include "gnutls_errors.h" /** - * Obtain information about the given connection. - * - * @param connection what connection to get information about - * @param infoType what information is desired? - * @param ... depends on infoType - * @return NULL if this information is not available - * (or if the infoType is unknown) - */ -const union MHD_ConnectionInfo * -MHD_get_connection_info (struct MHD_Connection *connection, - enum MHD_ConnectionInfoType infoType, ...) -{ - switch (infoType) - { -#if HTTPS_SUPPORT - case MHD_CONNECTION_INFO_CIPHER_ALGO: - if (connection->tls_session == NULL) - return NULL; - return (const union MHD_ConnectionInfo *) &connection-> - tls_session->security_parameters.read_bulk_cipher_algorithm; - case MHD_CONNECTION_INFO_PROTOCOL: - if (connection->tls_session == NULL) - return NULL; - return (const union MHD_ConnectionInfo *) &connection-> - tls_session->security_parameters.version; -#endif - case MHD_CONNECTION_INFO_CLIENT_ADDRESS: - return (const union MHD_ConnectionInfo *) &connection->addr; - default: - return NULL; - }; -} - -/** * This function is called once a secure connection has been marked * for closure. * |