diff options
Diffstat (limited to 'src/testcurl/https/tls_daemon_options_test.c')
-rw-r--r-- | src/testcurl/https/tls_daemon_options_test.c | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/src/testcurl/https/tls_daemon_options_test.c b/src/testcurl/https/tls_daemon_options_test.c index 2d859428..3e269122 100644 --- a/src/testcurl/https/tls_daemon_options_test.c +++ b/src/testcurl/https/tls_daemon_options_test.c | |||
@@ -1,22 +1,22 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libmicrohttpd | 2 | This file is part of libmicrohttpd |
3 | (C) 2007 Christian Grothoff | 3 | (C) 2007, 2010 Christian Grothoff |
4 | 4 | ||
5 | libmicrohttpd is free software; you can redistribute it and/or modify | 5 | libmicrohttpd is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
7 | by the Free Software Foundation; either version 2, or (at your | 7 | by the Free Software Foundation; either version 2, or (at your |
8 | option) any later version. | 8 | option) any later version. |
9 | 9 | ||
10 | libmicrohttpd is distributed in the hope that it will be useful, but | 10 | libmicrohttpd is distributed in the hope that it will be useful, but |
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | General Public License for more details. | 13 | General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with libmicrohttpd; see the file COPYING. If not, write to the | 16 | along with libmicrohttpd; see the file COPYING. If not, write to the |
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file tls_daemon_options_test.c | 22 | * @file tls_daemon_options_test.c |
@@ -103,7 +103,6 @@ main (int argc, char *const *argv) | |||
103 | fprintf (stderr, "Error: %s\n", strerror (errno)); | 103 | fprintf (stderr, "Error: %s\n", strerror (errno)); |
104 | return -1; | 104 | return -1; |
105 | } | 105 | } |
106 | #if 0 | ||
107 | errorCount += | 106 | errorCount += |
108 | test_wrap ("TLS1.0-AES-SHA1", | 107 | test_wrap ("TLS1.0-AES-SHA1", |
109 | &test_https_transfer, test_fd, daemon_flags, | 108 | &test_https_transfer, test_fd, daemon_flags, |
@@ -113,8 +112,6 @@ main (int argc, char *const *argv) | |||
113 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, | 112 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, |
114 | MHD_OPTION_HTTPS_PRIORITIES, "NONE:+VERS-TLS1.0:+AES-128-CBC:+SHA1:+RSA:+COMP-NULL", | 113 | MHD_OPTION_HTTPS_PRIORITIES, "NONE:+VERS-TLS1.0:+AES-128-CBC:+SHA1:+RSA:+COMP-NULL", |
115 | MHD_OPTION_END); | 114 | MHD_OPTION_END); |
116 | #endif | ||
117 | #if 0 | ||
118 | errorCount += | 115 | errorCount += |
119 | test_wrap ("TLS1.0-AES-SHA1", | 116 | test_wrap ("TLS1.0-AES-SHA1", |
120 | &test_https_transfer, test_fd, daemon_flags, | 117 | &test_https_transfer, test_fd, daemon_flags, |
@@ -134,8 +131,6 @@ main (int argc, char *const *argv) | |||
134 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, | 131 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, |
135 | MHD_OPTION_HTTPS_PRIORITIES, "NONE:+VERS-SSL3.0:+AES-128-CBC:+SHA1:+RSA:+COMP-NULL", | 132 | MHD_OPTION_HTTPS_PRIORITIES, "NONE:+VERS-SSL3.0:+AES-128-CBC:+SHA1:+RSA:+COMP-NULL", |
136 | MHD_OPTION_END); | 133 | MHD_OPTION_END); |
137 | #endif | ||
138 | |||
139 | #if 0 | 134 | #if 0 |
140 | /* manual inspection of the handshake suggests that CURL will | 135 | /* manual inspection of the handshake suggests that CURL will |
141 | request TLSv1, we send back "SSL3" and CURL takes it *despite* | 136 | request TLSv1, we send back "SSL3" and CURL takes it *despite* |
@@ -152,7 +147,6 @@ main (int argc, char *const *argv) | |||
152 | MHD_OPTION_CIPHER_ALGORITHM, "SSL3", MHD_OPTION_END); | 147 | MHD_OPTION_CIPHER_ALGORITHM, "SSL3", MHD_OPTION_END); |
153 | #endif | 148 | #endif |
154 | 149 | ||
155 | #if 1 | ||
156 | errorCount += | 150 | errorCount += |
157 | test_wrap ("TLS1.0 vs SSL3", | 151 | test_wrap ("TLS1.0 vs SSL3", |
158 | &test_unmatching_ssl_version, test_fd, daemon_flags, | 152 | &test_unmatching_ssl_version, test_fd, daemon_flags, |
@@ -162,8 +156,6 @@ main (int argc, char *const *argv) | |||
162 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, | 156 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, |
163 | MHD_OPTION_HTTPS_PRIORITIES, "NONE:+VERS-TLS1.0:+AES-256-CBC:+SHA1:+RSA:+COMP-NULL", | 157 | MHD_OPTION_HTTPS_PRIORITIES, "NONE:+VERS-TLS1.0:+AES-256-CBC:+SHA1:+RSA:+COMP-NULL", |
164 | MHD_OPTION_END); | 158 | MHD_OPTION_END); |
165 | #endif | ||
166 | |||
167 | curl_global_cleanup (); | 159 | curl_global_cleanup (); |
168 | fclose (test_fd); | 160 | fclose (test_fd); |
169 | remove (TEST_FILE_NAME); | 161 | remove (TEST_FILE_NAME); |