[#SSL_get_peer_finished]
= SSL&lowbar;get&lowbar;peer&lowbar;finished
:mrdocs:

Copy the peer&apos;s Finished handshake message hash into `buf&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
SSL&lowbar;get&lowbar;peer&lowbar;finished(
    xref:SSL.adoc[SSL] const* s,
    void* buf,
    size&lowbar;t count);
----

== Return Value

Number of Finished bytes available (may exceed `count` if truncated)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection that has completed the Finished exchange&period;
| *buf*
| Destination buffer, or NULL to query the Finished length only&period;
| *count*
| Capacity of `buf` in bytes&period;
|===


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