[glib/pgriffis/gtlscertificate-password] Apply 5 suggestion(s) to 1 file(s)



commit 036c589498c1f32fdcc44435f37953ae376b34fc
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Dec 23 22:05:22 2021 +0000

    Apply 5 suggestion(s) to 1 file(s)

 gio/gtlscertificate.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gio/gtlscertificate.c b/gio/gtlscertificate.c
index 95fb8f867..fc5c28c56 100644
--- a/gio/gtlscertificate.c
+++ b/gio/gtlscertificate.c
@@ -136,7 +136,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
   gobject_class->get_property = g_tls_certificate_get_property;
 
   /**
-   * GTlsCertificate:pkcs12-data:
+   * GTlsCertificate:pkcs12-data: (nullable)
    *
    * The PKCS #12 formatted data used to construct the object.
    *
@@ -152,8 +152,9 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
                                                       G_PARAM_WRITABLE |
                                                       G_PARAM_CONSTRUCT_ONLY |
                                                       G_PARAM_STATIC_STRINGS));
+
   /**
-   * GTlsCertificate:password:
+   * GTlsCertificate:password: (nullable)
    *
    * An optional password used when constructed with GTlsCertificate:pkcs12-data.
    *
@@ -803,7 +804,7 @@ g_tls_certificate_new_from_pkcs12 (const guint8  *data,
 /**
  * g_tls_certificate_new_from_file_with_password:
  * @file: (type filename): file containing a certificate to import
- * @password: password for PKCS #12 files
+ * @password: (not nullable): password for PKCS #12 files
  * @error: #GError for error reporting, or %NULL to ignore
  *
  * Creates a #GTlsCertificate from the data in @file.
@@ -846,6 +847,7 @@ g_tls_certificate_new_from_file_with_password (const gchar  *file,
  * @error: #GError for error reporting, or %NULL to ignore
  *
  * Creates a #GTlsCertificate from the data in @file.
+ *
  * As of 2.72, if the filename ends in `.p12` or `.pfx` the data is loaded by
  * g_tls_certificate_new_from_pkcs12() otherwise it is loaded by
  * g_tls_certificate_new_from_pem(). See those functions for


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