[glib-networking/pgriffis/ocsp-openssl] Apply 4 suggestion(s) to 2 file(s)



commit 1299157562f0f5cdf7315ec21d0b9a4d23e53aa4
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Aug 2 17:40:19 2021 +0000

    Apply 4 suggestion(s) to 2 file(s)

 tls/openssl/gtlsclientconnection-openssl.c | 3 +--
 tls/openssl/gtlsdatabase-openssl.c         | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/tls/openssl/gtlsclientconnection-openssl.c b/tls/openssl/gtlsclientconnection-openssl.c
index ba2e943a..8c94d267 100644
--- a/tls/openssl/gtlsclientconnection-openssl.c
+++ b/tls/openssl/gtlsclientconnection-openssl.c
@@ -290,7 +290,6 @@ g_tls_client_connection_openssl_init (GTlsClientConnectionOpenssl *openssl)
 {
 }
 
-
 static void
 g_tls_client_connection_openssl_copy_session_state (GTlsClientConnection *conn,
                                                     GTlsClientConnection *source)
@@ -523,7 +522,7 @@ g_tls_client_connection_openssl_initable_init (GInitable       *initable,
 
 #if (OPENSSL_VERSION_NUMBER >= 0x0090808fL) && !defined(OPENSSL_NO_TLSEXT) && \
     !defined(OPENSSL_NO_OCSP)
-    SSL_set_tlsext_status_type (client->ssl, TLSEXT_STATUSTYPE_ocsp);
+  SSL_set_tlsext_status_type (client->ssl, TLSEXT_STATUSTYPE_ocsp);
 #endif
 
   if (!g_tls_client_connection_openssl_parent_initable_iface->
diff --git a/tls/openssl/gtlsdatabase-openssl.c b/tls/openssl/gtlsdatabase-openssl.c
index 5266da0d..1d32b794 100644
--- a/tls/openssl/gtlsdatabase-openssl.c
+++ b/tls/openssl/gtlsdatabase-openssl.c
@@ -321,7 +321,7 @@ check_chain_for_ocsp_must_staple (const STACK_OF(X509) *chain)
   for (guint i_cert = 0; i_cert < sk_X509_num (chain); i_cert++)
     {
       X509 *cert = sk_X509_value (chain, i_cert);
-      int idx = -1; /* We ignore the return of this as we only expect 1 extension */
+      int idx = -1; /* We ignore the return of this as we only expect one extension. */
       STACK_OF(ASN1_INTEGER) *features = X509_get_ext_d2i (cert, NID_tlsfeature, NULL, &idx);
 
       if (!features)
@@ -397,7 +397,7 @@ g_tls_database_openssl_verify_ocsp_response (GTlsDatabaseOpenssl *self,
           g_object_unref (issuer);
         }
 
-      /* Either we errored because of MustStaple or continue on ignoring OCSP */
+      /* Either we errored because of MustStaple or continue on ignoring OCSP. */
       goto end;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]