summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-10-14 21:37:49 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2018-10-14 21:37:49 +0100
commit059f2aced50773fa38661a5a30c54260aee4bf55 (patch)
tree52248d51eed5beeaf6d285b354431f188f1cb34c /test
parentce80533b305c56d57cb7ec1484491f191132cf84 (diff)
tidying
Diffstat (limited to 'test')
-rw-r--r--test/src/client.c4
-rw-r--r--test/src/server.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/src/client.c b/test/src/client.c
index 5b998e269..3a6b4ad3d 100644
--- a/test/src/client.c
+++ b/test/src/client.c
@@ -429,7 +429,7 @@ if (certificate != NULL)
{
rc = gnutls_certificate_set_x509_key_file(x509_cred, CS certificate,
CS privatekey, GNUTLS_X509_FMT_PEM);
- if (rc < 0) gnutls_error("gnutls_certificate", rc);
+ if (rc < 0) gnutls_error(US"gnutls_certificate", rc);
}
/* Associate the parameters with the x509 credentials structure. */
@@ -1169,7 +1169,7 @@ SSL_CTX_set_info_callback(srv.ctx, (void (*)())info_callback);
#ifdef HAVE_GNUTLS
if (certfile != NULL) printf("Certificate file = %s\n", certfile);
if (keyfile != NULL) printf("Key file = %s\n", keyfile);
-tls_init(certfile, keyfile);
+tls_init(US certfile, US keyfile);
tls_session = tls_session_init();
#ifdef HAVE_OCSP
if (ocsp_stapling)
diff --git a/test/src/server.c b/test/src/server.c
index d433ebe0e..fe1c79f02 100644
--- a/test/src/server.c
+++ b/test/src/server.c
@@ -267,7 +267,7 @@ if (na < argc) connection_count = atoi(argv[na]);
if (initial_pause > 0)
{
if (debug)
- printf("%d: Inital pause of %d seconds\n", time(NULL), initial_pause);
+ printf("%ld: Inital pause of %d seconds\n", (long)time(NULL), initial_pause);
else
printf("Inital pause of %d seconds\n", initial_pause);
while (initial_pause > 0)