[#SSL_CTX_set_srp_username]
= SSL&lowbar;CTX&lowbar;set&lowbar;srp&lowbar;username
:mrdocs:

Set the default SRP username for clients created from a context (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;username(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    char* name);
----

[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 stores the username&semi; call before creating the connection&period;
| *name*
| SRP username (at most 255 characters)&period;
|===


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