[#PEM_SignFinal]
= PEM&lowbar;SignFinal
:mrdocs:

Finalize a PEM signing operation and write the signature&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PEM&lowbar;SignFinal(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    unsigned char* sigret,
    unsigned int* siglen,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Digest context previously updated with data to sign&period;
| *sigret*
| Buffer receiving the signature&period;
| *siglen*
| Receives the signature length in bytes&period;
| *pkey*
| Private key used to generate the signature&period;
|===


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