1gnutls_register_custom_url(3) gnutls gnutls_register_custom_url(3)
2
3
4
6 gnutls_register_custom_url - API function
7
9 #include <gnutls/urls.h>
10
11 int gnutls_register_custom_url(const gnutls_custom_url_st * st);
12
14 const gnutls_custom_url_st * st
15 A gnutls_custom_url_st structure
16
18 Register a custom URL. This will affect the following functions:
19 gnutls_url_is_supported(), gnutls_privkey_import_url(), gnutls_pub‐
20 key_import_url, gnutls_x509_crt_import_url() and all functions that
21 depend on them, e.g., gnutls_certificate_set_x509_key_file2().
22
23 The provided structure and callback functions must be valid throughout
24 the lifetime of the process. The registration of an existing URL type
25 will fail with GNUTLS_E_INVALID_REQUEST. Since GnuTLS 3.5.0 this func‐
26 tion can be used to override the builtin URLs.
27
28 This function is not thread safe.
29
31 returns zero if the given structure was imported or a negative value
32 otherwise.
33
35 3.4.0
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: https://www.gnutls.org
40
41
43 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 https://www.gnutls.org/manual/
54
55gnutls 3.6.11 gnutls_register_custom_url(3)