[#PEM_write_EC_PUBKEY]
= PEM&lowbar;write&lowbar;EC&lowbar;PUBKEY
:mrdocs:

Write an EC SubjectPublicKeyInfo to a FILE in PEM form (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
PEM&lowbar;write&lowbar;EC&lowbar;PUBKEY(
    FILE* fp,
    xref:EC_KEY.adoc[EC&lowbar;KEY] const* x);
----

[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
| *fp*
| FILE to write to&period;
| *x*
| EC&lowbar;KEY to encode&period;
|===


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