1gnutls_srp_verifier(3) gnutls gnutls_srp_verifier(3)
2
3
4
6 gnutls_srp_verifier - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_srp_verifier(const char * username, const char * password,
12 const gnutls_datum_t * salt, const gnutls_datum_t * generator, const
13 gnutls_datum_t * prime, gnutls_datum_t * res);
14
16 const char * username
17 is the user's name
18
19 const char * password
20 is the user's password
21
22 const gnutls_datum_t * salt
23 should be some randomly generated bytes
24
25 const gnutls_datum_t * generator
26 is the generator of the group
27
28 const gnutls_datum_t * prime
29 is the group's prime
30
31 gnutls_datum_t * res
32 where the verifier will be stored.
33
35 This function will create an SRP verifier, as specified in RFC2945.
36 The prime and generator should be one of the static parameters
37 defined in gnutls/gnutls.h or may be generated.
38
39 The verifier will be allocated with @gnutls_malloc() and will be stored
40 in
41 res using binary format.
42
44 On success, GNUTLS_E_SUCCESS (0) is returned, or an error code.
45
47 Report bugs to <bugs@gnutls.org>.
48 Home page: https://www.gnutls.org
49
50
52 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
53 Copying and distribution of this file, with or without modification,
54 are permitted in any medium without royalty provided the copyright
55 notice and this notice are preserved.
56
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
60 visit
61
62 https://www.gnutls.org/manual/
63
64gnutls 3.6.13 gnutls_srp_verifier(3)