[#SSL_CTX_use_RSAPrivateKey_ASN1]
= SSL&lowbar;CTX&lowbar;use&lowbar;RSAPrivateKey&lowbar;ASN1
:mrdocs:

Load an RSA private key from a DER buffer into an SSL 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;use&lowbar;RSAPrivateKey&lowbar;ASN1(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    unsigned char const* d,
    long len);
----

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

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context that receives the key&period;
| *d*
| DER&hyphen;encoded RSAPrivateKey bytes&period;
| *len*
| Length of `d` in bytes&period;
|===


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