]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fix formatting
authorJeff Mattson <jmattson@sei.cmu.edu>
Tue, 24 Sep 2024 14:53:23 +0000 (10:53 -0400)
committerJeff Mattson <jmattson@sei.cmu.edu>
Tue, 24 Sep 2024 14:55:16 +0000 (10:55 -0400)
Signed-off-by: Jeff Mattson <jmattson@sei.cmu.edu>
doc/examples/ex-ocsp-client.c
lib/cert-session.c
lib/ocsp-api.c
src/ocsptool-common.c

index bc4ac164ecfd04361c8bc142a8b5ff48fb292515..3350d4d3bf35665e950a0c67a5b3cec79adfd226 100644 (file)
@@ -240,7 +240,7 @@ static int _verify_response(gnutls_datum_t *data, gnutls_x509_crt_t cert,
        if (ret < 0)
                exit(1);
 
-       for (resp_indx = 0; ; resp_indx++) {
+       for (resp_indx = 0;; resp_indx++) {
                ret = gnutls_ocsp_resp_check_crt(resp, resp_indx, cert);
                if (ret == 0 || ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
                        break;
index 76c07f23b029700f9db8618724f27b1a80848d74..963f797eec4e51164d52ee7a6e537cfa5f5e7239 100644 (file)
@@ -277,7 +277,7 @@ static int check_ocsp_response(gnutls_session_t session, gnutls_x509_crt_t cert,
                goto cleanup;
        }
 
-       for (resp_indx = 0; ; resp_indx++) {
+       for (resp_indx = 0;; resp_indx++) {
                ret = gnutls_ocsp_resp_check_crt(resp, resp_indx, cert);
                if (ret == 0 || ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
                        break;
index 8011aac9819a59a5d8a21ff20976a3e840e106aa..664a9e2fee33dd3c57b601105cb954f96393ac52 100644 (file)
@@ -201,7 +201,7 @@ static unsigned resp_matches_pcert(gnutls_ocsp_resp_t resp,
                goto cleanup;
        }
 
-       for (resp_indx = 0; ; resp_indx++) {
+       for (resp_indx = 0;; resp_indx++) {
                ret = gnutls_ocsp_resp_check_crt(resp, resp_indx, crt);
                if (ret == 0 || ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
                        break;
index 65cb08ed05fde78aa404301f5ded743fc966ac27..656128c54fd7548adb2a33ec02bbd889a7398a07 100644 (file)
@@ -350,7 +350,7 @@ int check_ocsp_response(gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
                exit(1);
        }
 
-       for (resp_indx = 0; ; resp_indx++) {
+       for (resp_indx = 0;; resp_indx++) {
                ret = gnutls_ocsp_resp_check_crt(resp, resp_indx, cert);
                if (ret == 0 || ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
                        break;