]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated OCSP tests to account for the new key ID
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 13 Nov 2014 14:50:05 +0000 (15:50 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 13 Nov 2014 14:50:05 +0000 (15:50 +0100)
tests/ocsp.c

index 303bbb68b88bc39a44b1c52b997c3dab7e7aeb45..30afae2b5ef4d5fb2b86a3b918357762fd4a9e40 100644 (file)
@@ -137,7 +137,7 @@ static const gnutls_datum_t resp2 =
 "      Response Status: Successful\n" \
 "      Response Type: Basic OCSP Response\n" \
 "      Version: 1\n" \
-"      Responder ID: \n" \
+"      Responder Key ID: 50ea7389db29fb108f9ee50120d4de79994883f7\n" \
 "      Produced At: Thu Sep 04 05:49:00 UTC 2014\n" \
 "      Responses:\n" \
 "              Certificate ID:\n" \
@@ -645,7 +645,7 @@ static void ocsp_invalid_calls(void)
        }
 
        rc = gnutls_ocsp_resp_get_responder(resp, &dat);
-       if (rc != GNUTLS_E_SUCCESS || dat.size != 0) {
+       if (rc != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) {
                fail("gnutls_ocsp_resp_get_responder %d\n", rc);
                exit(1);
        }