aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/tls_test_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/tls_test_common.h')
-rw-r--r--src/testcurl/https/tls_test_common.h31
1 files changed, 6 insertions, 25 deletions
diff --git a/src/testcurl/https/tls_test_common.h b/src/testcurl/https/tls_test_common.h
index 5192b774..a3fcc5dc 100644
--- a/src/testcurl/https/tls_test_common.h
+++ b/src/testcurl/https/tls_test_common.h
@@ -44,7 +44,6 @@
44#define MHD_E_FAILED_TO_CONNECT \ 44#define MHD_E_FAILED_TO_CONNECT \
45 "Error: server connection could not be established\n" 45 "Error: server connection could not be established\n"
46 46
47/* TODO rm if unused */
48struct https_test_data 47struct https_test_data
49{ 48{
50 void *cls; 49 void *cls;
@@ -60,16 +59,6 @@ struct CBC
60 size_t size; 59 size_t size;
61}; 60};
62 61
63struct CipherDef
64{
65 int options[2];
66 char *curlname;
67};
68
69
70int
71curl_check_version (const char *req_version, ...);
72
73int 62int
74curl_tls_is_gnutls (void); 63curl_tls_is_gnutls (void);
75 64
@@ -113,17 +102,17 @@ http_dummy_ahc (void *cls, struct MHD_Connection *connection,
113 102
114 103
115/** 104/**
116 * compile test file url pointing to the current running directory path 105 * compile test URI
117 * 106 *
118 * @param[out] url - char buffer into which the url is compiled 107 * @param[out] uri - char buffer into which the url is compiled
119 * @param url_len number of bytes available in @a url 108 * @param uri_len number of bytes available in @a url
120 * @param port port to use for the test 109 * @param port port to use for the test
121 * @return 1 on error 110 * @return 1 on error
122 */ 111 */
123unsigned int 112unsigned int
124gen_test_file_url (char *url, 113gen_test_uri (char *uri,
125 size_t url_len, 114 size_t uri_len,
126 uint16_t port); 115 uint16_t port);
127 116
128CURLcode 117CURLcode
129send_curl_req (char *url, 118send_curl_req (char *url,
@@ -137,14 +126,6 @@ test_https_transfer (void *cls,
137 const char *cipher_suite, 126 const char *cipher_suite,
138 int proto_version); 127 int proto_version);
139 128
140uint16_t
141setup_testcase (struct MHD_Daemon **d, uint16_t port, unsigned int daemon_flags,
142 va_list arg_list);
143
144void
145teardown_testcase (struct MHD_Daemon *d);
146
147
148unsigned int 129unsigned int
149setup_session (gnutls_session_t *session, 130setup_session (gnutls_session_t *session,
150 gnutls_certificate_credentials_t *xcred); 131 gnutls_certificate_credentials_t *xcred);