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 @@ | |||
40 | #include "gnutls_errors.h" | 40 | #include "gnutls_errors.h" |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * Obtain information about the given connection. | ||
44 | * | ||
45 | * @param connection what connection to get information about | ||
46 | * @param infoType what information is desired? | ||
47 | * @param ... depends on infoType | ||
48 | * @return NULL if this information is not available | ||
49 | * (or if the infoType is unknown) | ||
50 | */ | ||
51 | const union MHD_ConnectionInfo * | ||
52 | MHD_get_connection_info (struct MHD_Connection *connection, | ||
53 | enum MHD_ConnectionInfoType infoType, ...) | ||
54 | { | ||
55 | switch (infoType) | ||
56 | { | ||
57 | #if HTTPS_SUPPORT | ||
58 | case MHD_CONNECTION_INFO_CIPHER_ALGO: | ||
59 | if (connection->tls_session == NULL) | ||
60 | return NULL; | ||
61 | return (const union MHD_ConnectionInfo *) &connection-> | ||
62 | tls_session->security_parameters.read_bulk_cipher_algorithm; | ||
63 | case MHD_CONNECTION_INFO_PROTOCOL: | ||
64 | if (connection->tls_session == NULL) | ||
65 | return NULL; | ||
66 | return (const union MHD_ConnectionInfo *) &connection-> | ||
67 | tls_session->security_parameters.version; | ||
68 | #endif | ||
69 | case MHD_CONNECTION_INFO_CLIENT_ADDRESS: | ||
70 | return (const union MHD_ConnectionInfo *) &connection->addr; | ||
71 | default: | ||
72 | return NULL; | ||
73 | }; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * This function is called once a secure connection has been marked | 43 | * This function is called once a secure connection has been marked |
78 | * for closure. | 44 | * for closure. |
79 | * | 45 | * |