]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_url_is_supported: type changed to unsigned
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 31 May 2016 14:47:34 +0000 (16:47 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 31 May 2016 14:47:36 +0000 (16:47 +0200)
In addition function documentation was updated.

lib/includes/gnutls/gnutls.h.in
lib/urls.c

index 65e15fc5c0342d8e21d74f5609f20c60c091bb6f..2a79019976c1111f45a80f4037e53c28e6bc818e 100644 (file)
@@ -2384,7 +2384,7 @@ int gnutls_store_pubkey(const char *db_name,
   /* Other helper functions */
 int gnutls_load_file(const char *filename, gnutls_datum_t * data);
 
-int gnutls_url_is_supported(const char *url);
+unsigned gnutls_url_is_supported(const char *url);
 
   /* PIN callback */
 
index 32aac21eaf3db60a733da36aa41bbec8d78c82bd..2861c31d28a3779670aef82b934a2cf0ef6a71b6 100644 (file)
@@ -31,17 +31,17 @@ unsigned _gnutls_custom_urls_size = 0;
 
 /**
  * gnutls_url_is_supported:
- * @url: A PKCS 11 url
+ * @url: A URI to be tested
  *
- * Check whether url is supported.  Depending on the system libraries
- * GnuTLS may support pkcs11 or tpmkey URLs.
+ * Check whether the provided @url is supported.  Depending on the system libraries
+ * GnuTLS may support pkcs11, tpmkey or other URLs.
  *
  * Returns: return non-zero if the given URL is supported, and zero if
  * it is not known.
  *
  * Since: 3.1.0
  **/
-int gnutls_url_is_supported(const char *url)
+unsigned gnutls_url_is_supported(const char *url)
 {
        unsigned i;