aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https')
-rw-r--r--src/testcurl/https/Makefile.am3
-rw-r--r--src/testcurl/https/test_https_sni.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am
index 37313343..243d414a 100644
--- a/src/testcurl/https/Makefile.am
+++ b/src/testcurl/https/Makefile.am
@@ -115,6 +115,9 @@ test_https_get_LDADD = \
115test_https_sni_SOURCES = \ 115test_https_sni_SOURCES = \
116 test_https_sni.c \ 116 test_https_sni.c \
117 tls_test_common.c 117 tls_test_common.c
118test_https_sni_CPPFLAGS = \
119 $(AM_CPPFLAGS) \
120 -DABS_SRCDIR=\"$(abs_srcdir)\"
118test_https_sni_LDADD = \ 121test_https_sni_LDADD = \
119 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 122 $(top_builddir)/src/testcurl/libcurl_version_check.a \
120 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 123 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
diff --git a/src/testcurl/https/test_https_sni.c b/src/testcurl/https/test_https_sni.c
index 408d4c10..ed51697b 100644
--- a/src/testcurl/https/test_https_sni.c
+++ b/src/testcurl/https/test_https_sni.c
@@ -67,6 +67,8 @@ load_keys(const char *hostname,
67 struct Hosts *host; 67 struct Hosts *host;
68 68
69 host = malloc (sizeof (struct Hosts)); 69 host = malloc (sizeof (struct Hosts));
70 if (NULL == host)
71 abort ();
70 host->hostname = hostname; 72 host->hostname = hostname;
71 host->next = hosts; 73 host->next = hosts;
72 hosts = host; 74 hosts = host;
@@ -256,8 +258,8 @@ main (int argc, char *const *argv)
256 fprintf (stderr, "Error: %s\n", strerror (errno)); 258 fprintf (stderr, "Error: %s\n", strerror (errno));
257 return -1; 259 return -1;
258 } 260 }
259 load_keys ("host1", "host1.crt", "host1.key"); 261 load_keys ("host1", ABS_SRCDIR "/host1.crt", ABS_SRCDIR "/host1.key");
260 load_keys ("host2", "host2.crt", "host2.key"); 262 load_keys ("host2", ABS_SRCDIR "/host2.crt", ABS_SRCDIR "/host2.key");
261 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG, 263 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG,
262 4233, 264 4233,
263 NULL, NULL, 265 NULL, NULL,