| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_srp_verifier} (const char * @var{username}, const char * @var{password}, const gnutls_datum_t * @var{salt}, const gnutls_datum_t * @var{generator}, const gnutls_datum_t * @var{prime}, gnutls_datum_t * @var{res}) |
| 6 |
@var{username}: is the user's name |
| 7 |
|
| 8 |
@var{password}: is the user's password |
| 9 |
|
| 10 |
@var{salt}: should be some randomly generated bytes |
| 11 |
|
| 12 |
@var{generator}: is the generator of the group |
| 13 |
|
| 14 |
@var{prime}: is the group's prime |
| 15 |
|
| 16 |
@var{res}: where the verifier will be stored. |
| 17 |
|
| 18 |
This function will create an SRP verifier, as specified in |
| 19 |
RFC2945. The @code{prime} and @code{generator} should be one of the static |
| 20 |
parameters defined in gnutls/gnutls.h or may be generated. |
| 21 |
|
| 22 |
The verifier will be allocated with @code{gnutls_malloc} () and will be stored in |
| 23 |
@code{res} using binary format. |
| 24 |
|
| 25 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, or an |
| 26 |
error code. |
| 27 |
@end deftypefun |