[#SSL_CTX_set_srp_client_pwd_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;srp&lowbar;client&lowbar;pwd&lowbar;callback
:mrdocs:

Set a client callback that supplies the SRP password (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
SSL&lowbar;CTX&lowbar;set&lowbar;srp&lowbar;client&lowbar;pwd&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    char*(* cb)(xref:SSL.adoc[SSL]*, void*));
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or a non&hyphen;positive value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Client SSL context that invokes `cb` during SRP authentication&period;
| *cb*
| Callback returning a password for the given SSL and user argument from SSL&lowbar;CTX&lowbar;set&lowbar;srp&lowbar;cb&lowbar;arg&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
