]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0,gio-2.0: Update 2.72 symbols
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Jan 2022 12:22:56 +0000 (13:22 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Jan 2022 12:22:56 +0000 (13:22 +0100)
vapi/gio-2.0.vapi
vapi/glib-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index 92df9f787af6adab6c94c903ae19c52bf65f54ff..384d4d5a567695e800edaa45ae71ca4dd52bd0a8 100644 (file)
@@ -3083,12 +3083,18 @@ namespace GLib {
                [CCode (has_construct_function = false)]
                public TlsCertificate.from_file (string file) throws GLib.Error;
                [CCode (has_construct_function = false)]
+               [Version (since = "2.72")]
+               public TlsCertificate.from_file_with_password (string file, string password) throws GLib.Error;
+               [CCode (has_construct_function = false)]
                public TlsCertificate.from_files (string cert_file, string key_file) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public TlsCertificate.from_pem (string data, ssize_t length) throws GLib.Error;
                [CCode (has_construct_function = false)]
                [Version (since = "2.68")]
                public TlsCertificate.from_pkcs11_uris (string pkcs11_uri, string? private_key_pkcs11_uri) throws GLib.Error;
+               [CCode (has_construct_function = false)]
+               [Version (since = "2.72")]
+               public TlsCertificate.from_pkcs12 ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize", type = "const guint8*")] uint8[] data, string? password) throws GLib.Error;
                [Version (since = "2.70")]
                public GLib.GenericArray<weak GLib.Bytes>? get_dns_names ();
                [Version (since = "2.70")]
@@ -3122,9 +3128,15 @@ namespace GLib {
                [Version (since = "2.70")]
                public GLib.DateTime not_valid_before { owned get; }
                [NoAccessorMethod]
+               [Version (since = "2.72")]
+               public string password { construct; }
+               [NoAccessorMethod]
                [Version (since = "2.68")]
                public string pkcs11_uri { owned get; construct; }
                [NoAccessorMethod]
+               [Version (since = "2.72")]
+               public GLib.ByteArray pkcs12_data { construct; }
+               [NoAccessorMethod]
                public GLib.ByteArray private_key { owned get; construct; }
                [NoAccessorMethod]
                public string private_key_pem { owned get; construct; }
@@ -5028,7 +5040,8 @@ namespace GLib {
                HANDSHAKE,
                CERTIFICATE_REQUIRED,
                EOF,
-               INAPPROPRIATE_FALLBACK;
+               INAPPROPRIATE_FALLBACK,
+               BAD_CERTIFICATE_PASSWORD;
                public static GLib.Quark quark ();
        }
        [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
index 2e99c6e61bea3ba11e39d380333042a658b17725..d43dec06d633f565f2eb5e069c2493c83a302e9d 100644 (file)
@@ -5402,6 +5402,8 @@ namespace GLib {
                [CCode (cname = "g_hash_table_new_full", simple_generics = true)]
                public HashTable (HashFunc<K>? hash_func, EqualFunc<K>? key_equal_func);
                public HashTable.full (HashFunc<K>? hash_func, EqualFunc<K>? key_equal_func, DestroyNotify? key_destroy_func, DestroyNotify? value_destroy_func);
+               [Version (since = "2.72")]
+               public HashTable.similar (HashTable<K,V> other_hash_table);
                public void insert (owned K key, owned V value);
                public void replace (owned K key, owned V value);
                [Version (since = "2.32", deprecated_since = "vala-0.26", replacement = "GenericSet.add")]
index 18ea8c8f147aeb6c014df4f5bd5ddbb5a0271769..e70332418003e06b94cae05c293e58243924c4bd 100644 (file)
@@ -297,6 +297,8 @@ PollableOutputStream
   .create_source type="GLib.PollableSource"
   .write_nonblocking#virtual_method name="write_nonblocking_fn" no_wrapper
   .writev_nonblocking#virtual_method name="writev_nonblocking_fn" no_wrapper
+TlsCertificate
+  .new_from_pkcs12.data array array_length_idx=1
 TlsClientConnection
   .new nullable
   .accepted_cas type="GLib.List<GLib.ByteArray>"