xref: /openssl/doc/man3/SRP_user_pwd_new.pod (revision 3dbf8243)
1=pod
2
3=head1 NAME
4
5SRP_user_pwd_new,
6SRP_user_pwd_free,
7SRP_user_pwd_set1_ids,
8SRP_user_pwd_set_gN,
9SRP_user_pwd_set0_sv
10- Functions to create a record of SRP user verifier information
11
12=head1 SYNOPSIS
13
14 #include <openssl/srp.h>
15
16The following functions have been deprecated since OpenSSL 3.0, and can be
17hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
18see L<openssl_user_macros(7)>:
19
20 SRP_user_pwd *SRP_user_pwd_new(void);
21 void SRP_user_pwd_free(SRP_user_pwd *user_pwd);
22
23 int SRP_user_pwd_set1_ids(SRP_user_pwd *user_pwd, const char *id, const char *info);
24 void SRP_user_pwd_set_gN(SRP_user_pwd *user_pwd, const BIGNUM *g, const BIGNUM *N);
25 int SRP_user_pwd_set0_sv(SRP_user_pwd *user_pwd, BIGNUM *s, BIGNUM *v);
26
27=head1 DESCRIPTION
28
29All of the functions described on this page are deprecated. There are no
30available replacement functions at this time.
31
32The SRP_user_pwd_new() function allocates a structure to store a user verifier
33record.
34
35The SRP_user_pwd_free() function frees up the B<user_pwd> structure.
36If B<user_pwd> is NULL, nothing is done.
37
38The SRP_user_pwd_set1_ids() function sets the username to B<id> and the optional
39user info to B<info> for B<user_pwd>.
40The library allocates new copies of B<id> and B<info>, the caller still
41owns the original memory.
42
43The SRP_user_pwd_set0_sv() function sets the user salt to B<s> and the verifier
44to B<v> for B<user_pwd>.
45The library takes ownership of the values, they should not be freed by the caller.
46
47The SRP_user_pwd_set_gN() function sets the SRP group parameters for B<user_pwd>.
48The memory is not freed by SRP_user_pwd_free(), the caller must make sure it is
49freed once it is no longer used.
50
51=head1 RETURN VALUES
52
53SRP_user_pwd_set1_ids() returns 1 on success and 0 on failure or if B<id> was NULL.
54
55SRP_user_pwd_set0_sv() returns 1 if both B<s> and B<v> are not NULL, 0 otherwise.
56
57=head1 SEE ALSO
58
59L<openssl-srp(1)>,
60L<SRP_create_verifier(3)>,
61L<SRP_VBASE_new(3)>,
62L<SSL_CTX_set_srp_password(3)>
63
64=head1 HISTORY
65
66These functions were made public in OpenSSL 3.0 and are deprecated.
67
68=head1 COPYRIGHT
69
70Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
71
72Licensed under the Apache License 2.0 (the "License").  You may not use
73this file except in compliance with the License.  You can obtain a copy
74in the file LICENSE in the source distribution or at
75L<https://www.openssl.org/source/license.html>.
76
77=cut
78