1oath_init(3)                        liboath                       oath_init(3)
2
3
4

NAME

6       oath_init - API function
7

SYNOPSIS

9       #include <oath.h>
10
11       int oath_init( void);
12

ARGUMENTS

14        void
15

DESCRIPTION

17       This function initializes the OATH library.  Every user of this library
18       needs to call this function before using other functions.   You  should
19       call oath_done() when use of the OATH library is no longer needed.
20
21       Note  that this function may also initialize Libgcrypt, if the OATH li‐
22       brary is built with libgcrypt support and libgcrypt has not  been  ini‐
23       tialized before.  Thus if you want to manually initialize libgcrypt you
24       must do it before calling this function.  This is useful in  cases  you
25       want to disable libgcrypt's internal lockings etc.
26

RETURNS

28       On  success, OATH_OK (zero) is returned, otherwise an error code is re‐
29       turned.
30

REPORTING BUGS

32       Report bugs  to  <oath-toolkit-help@nongnu.org>.   liboath  home  page:
33       https://www.nongnu.org/oath-toolkit/  General  help using GNU software:
34       http://www.gnu.org/gethelp/
35
37       Copyright © 2009-2020 Simon Josefsson.
38       Copying and distribution of this file, with  or  without  modification,
39       are  permitted in any medium without royalty provided the copyright no‐
40       tice and this notice are preserved.
41
42
43
44liboath                              2.6.7                        oath_init(3)
Impressum