[#SSL_CTX_set_srp_username_callback] = SSL_CTX_set_srp_username_callback :mrdocs: Set the server callback invoked when an SRP username appears in ClientHello (deprecated). == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int SSL_CTX_set_srp_username_callback( xref:SSL_CTX.adoc[SSL_CTX]* ctx, int(* cb)(xref:SSL.adoc[SSL]*, int*, 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‐positive value on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Server SSL context that invokes `cb` to configure SRP parameters via SSL_set_srp_server_param. | *cb* | Callback receiving the SSL, a writable alert/error code, and the argument from SSL_CTX_set_srp_cb_arg. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#