<div dir="ltr">So what is the valid way to do it? Invoke it with a 1 byte array? Maybe an example should be added to the manual page?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 6 Feb 2020 at 23:18, Marian Beermann <<a href="mailto:public@enkore.de">public@enkore.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Is it valid to call:<br>
> <br>
> size_t size = SSL_get_finished(ssl, NULL, 0);<br>
<br>
No<br>
<br>
> Because SSL_get_finished invokes memcpy even if the size is 0, so is the<br>
> undefined behaviour?<br>
<br>
Yes<br>
</blockquote></div>