]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: corrected various typos
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 4 Jan 2018 16:32:58 +0000 (17:32 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 14:29:37 +0000 (15:29 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
tests/set_x509_ocsp_multi_unknown.c
tests/tls13/multi-ocsp.c
tests/tls13/ocsp-client.c
tests/x509-cert-callback-ocsp.c

index b0f62ac668c532f8d561a64b87e6f9fc8469a180..75ca1e19832edbe3fe8d7aa8608d219719e632ed 100644 (file)
@@ -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");
index 77a1af7465d86f996dbeababae5132f9bc257d64..534e9713fd53ffb935ec78c57ce1cf026d9a950d 100644 (file)
@@ -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");
index 57ad803292f77e17f259852af78226ad22ee17d2..5fb60770e72f99974ce37ce385ca7cad03d4ad06 100644 (file)
@@ -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)
index b6ea04d381a8270a208d827c9039854773b19346..7e09212d1e6854c118c4b0c97bfbdbac759723f9 100644 (file)
@@ -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);