1gnutls_crypto_single_mac_register2(3)gnutlsgnutls_crypto_single_mac_register2(3)
2
3
4

NAME

6       gnutls_crypto_single_mac_register2 - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int   gnutls_crypto_single_mac_register2(gnutls_mac_algorithm_t   algo‐
12       rithm, int priority, int version, const gnutls_crypto_mac_st * s);
13

ARGUMENTS

15       gnutls_mac_algorithm_t algorithm
16                   is the gnutls algorithm identifier
17
18       int priority
19                   is the priority of the algorithm
20
21       int version should be set to GNUTLS_CRYPTO_API_VERSION
22
23       const gnutls_crypto_mac_st * s
24                   is a structure holding new algorithms's data
25

DESCRIPTION

27       This function will register a MAC algorithm to be used by gnutls.   Any
28       algorithm  registered will override the included algorithms and by con‐
29       vention kernel implemented algorithms have priority of 90.   The  algo‐
30       rithm with the lowest priority will be used by gnutls.
31
32       This function should be called before gnutls_global_init().
33
34       For   simplicity   you   can  use  the  convenience  gnutls_crypto_sin‐
35       gle_mac_register() macro.
36

RETURNS

38       GNUTLS_E_SUCCESS on success, otherwise an error.
39

SINCE

41       2.6.0
42

REPORTING BUGS

44       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
45       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
46       http://www.gnu.org/gethelp/
47
49       Copyright © 2008 Free Software Foundation.
50       Copying and distribution of this file, with  or  without  modification,
51       are  permitted  in  any  medium  without royalty provided the copyright
52       notice and this notice are preserved.
53

SEE ALSO

55       The full documentation for gnutls is maintained as  a  Texinfo  manual.
56       If  the  info  and gnutls programs are properly installed at your site,
57       the command
58
59              info gnutls
60
61       should give you access to the complete manual.
62
63
64
65gnutls                             2.12.6.g1nutls_crypto_single_mac_register2(3)
Impressum