1gnutls_crypto_pk_register2(3) gnutls gnutls_crypto_pk_register2(3)
2
3
4
6 gnutls_crypto_pk_register2 - register a public key interface
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_crypto_pk_register2(int priority, int version,
12 gnutls_crypto_pk_st * s);
13
15 int priority
16 is the priority of the interface
17
18 int version should be set to GNUTLS_CRYPTO_API_VERSION
19
20 gnutls_crypto_pk_st * s
21 is a structure holding new interface's data
22
24 This function will register an interface for gnutls to operate on pub‐
25 lic key operations. Any interface registered will override the included
26 interface. The interface with the lowest priority will be used by
27 gnutls.
28
29 Note that the bigint interface must interoperate with the bigint inter‐
30 face. Thus if this interface is updated the gnutls_crypto_bigint_regis‐
31 ter() should also be used.
32
33 This function should be called before gnutls_global_init().
34
35 For simplicity you can use the convenience gnutls_crypto_pk_register()
36 macro.
37
39 GNUTLS_E_SUCCESS on success, otherwise an error.
40
42 2.6.0
43
45 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
46 http://www.gnu.org/software/gnutls/ General help using GNU software:
47 http://www.gnu.org/gethelp/
48
50 Copyright © 2008 Free Software Foundation.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright
53 notice and this notice are preserved.
54
56 The full documentation for gnutls is maintained as a Texinfo manual.
57 If the info and gnutls programs are properly installed at your site,
58 the command
59
60 info gnutls
61
62 should give you access to the complete manual.
63
64
65
66gnutls 2.8.6 gnutls_crypto_pk_register2(3)