summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-01-04 17:32:58 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-19 15:29:37 +0100
commit0463cc215ca350c0ce7dc93f1ae508caae5bf029 (patch)
treeabe30405689f11577ec4f4998cb636a839da2c89
parenta2b73eb8b174a04083fd79fb04124dd9220876ff (diff)
downloadgnutls-0463cc215ca350c0ce7dc93f1ae508caae5bf029.tar.gz
tests: corrected various typos
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--tests/set_x509_ocsp_multi_unknown.c2
-rw-r--r--tests/tls13/multi-ocsp.c3
-rw-r--r--tests/tls13/ocsp-client.c4
-rw-r--r--tests/x509-cert-callback-ocsp.c2
4 files changed, 7 insertions, 4 deletions
diff --git a/tests/set_x509_ocsp_multi_unknown.c b/tests/set_x509_ocsp_multi_unknown.c
index b0f62ac668..75ca1e1983 100644
--- a/tests/set_x509_ocsp_multi_unknown.c
+++ b/tests/set_x509_ocsp_multi_unknown.c
@@ -114,9 +114,9 @@ void doit(void)
gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2);
+ /* set cert with localhost name */
certfile1 = get_tmpname(certname1);
- /* set cert with localhost name */
fp = fopen(certfile1, "wb");
if (fp == NULL)
fail("error in fopen\n");
diff --git a/tests/tls13/multi-ocsp.c b/tests/tls13/multi-ocsp.c
index 77a1af7465..534e9713fd 100644
--- a/tests/tls13/multi-ocsp.c
+++ b/tests/tls13/multi-ocsp.c
@@ -136,9 +136,9 @@ void doit(void)
gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2);
+ /* set cert with localhost name */
certfile1 = get_tmpname(certname1);
- /* set cert with localhost name */
fp = fopen(certfile1, "wb");
if (fp == NULL)
fail("error in fopen\n");
@@ -152,6 +152,7 @@ void doit(void)
fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret));
index1 = ret;
+ /* set cert with localhost6 name */
certfile2 = get_tmpname(certname2);
fp = fopen(certfile2, "wb");
diff --git a/tests/tls13/ocsp-client.c b/tests/tls13/ocsp-client.c
index 57ad803292..5fb60770e7 100644
--- a/tests/tls13/ocsp-client.c
+++ b/tests/tls13/ocsp-client.c
@@ -36,7 +36,9 @@
#include "utils.h"
/* Tests whether we can send and receive multiple OCSP responses
- * one for each certificate in a chain under TLS 1.3.
+ * one for each certificate in a chain under TLS 1.3, but unrelated
+ * to these certificate (using the GNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECK
+ * flag).
*/
static time_t mytime(time_t * t)
diff --git a/tests/x509-cert-callback-ocsp.c b/tests/x509-cert-callback-ocsp.c
index b6ea04d381..7e09212d1e 100644
--- a/tests/x509-cert-callback-ocsp.c
+++ b/tests/x509-cert-callback-ocsp.c
@@ -206,7 +206,7 @@ static void start(const char *prio)
ret = gnutls_ocsp_status_request_get2(client, 2, &response);
if (ret != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) {
- fail("found response in index 1: %s\n", gnutls_strerror(ret));
+ fail("found response in index 2: %s\n", gnutls_strerror(ret));
}
gnutls_bye(client, GNUTLS_SHUT_WR);