<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div style="">
<p dir="auto">What about the following pseudo-code:</p>
<pre class="code highlight js-syntax-highlight c" lang="c" v-pre="true"><code><span id="LC1" class="line" lang="c"><span class="n">evp_cipher</span> <span class="o">=</span> <span class="n">EVP_get_cipherbyname</span><span class="p">(</span><span class="n">ocipher</span><span class="p">);</span></span>
<span id="LC2" class="line" lang="c"><span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="n">evp_cipher</span><span class="p">)</span> <span class="p">{</span></span>
<span id="LC3" class="line" lang="c"><span class="cm">/* XXX: fix version check later when LibreSSL fixes support for aes-ccm and chacha20-poly1305 */</span></span>
<span id="LC4" class="line" lang="c"><span class="cp">#ifdef LIBRESSL_VERSION_NUMBER</span></span>
<span id="LC5" class="line" lang="c"><span class="n">fprintf</span><span class="p">(</span><span class="s">"Failure!"</span><span class="err">\</span><span class="n">n</span><span class="s">");</span></span>
<span id="LC6" class="line" lang="c"><span class="s">return -1;</span></span>
<span id="LC7" class="line" lang="c"><span class="s">#else</span></span>
<span id="LC8" class="line" lang="c"><span class="s">/* OpenSSL should work */</span></span>
<span id="LC9" class="line" lang="c"><span class="s">fail("</span><span class="n">Failure</span> <span class="n">here</span><span class="o">!</span><span class="err">\</span><span class="n">n</span><span class="s">");</span></span>
<span id="LC10" class="line" lang="c"><span class="s">return -1;</span></span>
<span id="LC11" class="line" lang="c"><span class="s">#endif</span></span>
<span id="LC12" class="line" lang="c"><span class="s">}</span></span></code></pre>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/846#note_127583107">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/5cd07ca602f221e00756f608c701cb45/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/846#note_127583107"}}</script>
</p>
</div>
</body>
</html>