[#EVP_PKEY_save_parameters]
= EVP&lowbar;PKEY&lowbar;save&lowbar;parameters
:mrdocs:

Control whether algorithm parameters are written when serializing `pkey&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;save&lowbar;parameters(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    int mode);
----

== Return Value

Previous mode value&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Key whose parameter&hyphen;export preference is updated&period;
| *mode*
| Non&hyphen;zero to include parameters on output, or 0 to omit them when possible&period;
|===


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