1gnutls_crypto_rnd_register2(3)      gnutls      gnutls_crypto_rnd_register2(3)
2
3
4

NAME

6       gnutls_crypto_rnd_register2 - register a random generator
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int     gnutls_crypto_rnd_register2(int    priority,    int    version,
12       gnutls_crypto_rnd_st * s);
13

ARGUMENTS

15       int priority
16                   is the priority of the generator
17
18       int version should be set to GNUTLS_CRYPTO_API_VERSION
19
20       gnutls_crypto_rnd_st * s
21                   is a structure holding new generator's data
22

DESCRIPTION

24       This function will register a random generator to be  used  by  gnutls.
25       Any  generator  registered  will override the included generator and by
26       convention kernel implemented generators have priority of 90.  The gen‐
27       erator with the lowest priority will be used by gnutls.
28
29       This function should be called before gnutls_global_init().
30
31       For simplicity you can use the convenience gnutls_crypto_rnd_register()
32       macro.
33

RETURNS

35       GNUTLS_E_SUCCESS on success, otherwise an error.
36

SINCE

38       2.6.0
39

REPORTING BUGS

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

SEE ALSO

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