<!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></div>
<p dir="auto">macOS's libcrypto does not contain the define <code>EVP_CTRL_GCM_SET_TAG</code> (I looked in every SDK from 10.9 to 10.13) yet we see <a href="https://gitlab.com/search?utf8=%E2%9C%93&search=EVP_CTRL_GCM_SET_TAG&group_id=&project_id=179611&search_code=true&repository_ref=master#L142">https://gitlab.com/search?utf8=%E2%9C%93&search=EVP_CTRL_GCM_SET_TAG&group_id=&project_id=179611&search_code=true&repository_ref=master#L142</a></p>
<p dir="auto">Leading to:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">cipher-openssl-compat.c:142:29: error: use of undeclared identifier 'EVP_CTRL_GCM_SET_TAG'</span>
<span id="LC2" class="line" lang="plaintext">                        EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, tag_size, </span>
<span id="LC3" class="line" lang="plaintext">                                                 ^</span></code></pre>
<p dir="auto">I am working around it by forcing it to detect this fact via the following patch:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">--- work/configure.ac.orig      2018-12-20 15:18:12.000000000 -0600</span>
<span id="LC2" class="line" lang="plaintext">+++ work/configure.ac   2018-11-30 23:21:11.000000000 -0600</span>
<span id="LC3" class="line" lang="plaintext">@@ -344,7 +344,7 @@</span>
<span id="LC4" class="line" lang="plaintext"></span>
<span id="LC5" class="line" lang="plaintext"> # check for libcrypto - used in test programs</span>
<span id="LC6" class="line" lang="plaintext"> AC_LIB_HAVE_LINKFLAGS(crypto,, [#include <openssl/evp.h></span>
<span id="LC7" class="line" lang="plaintext">-], [EVP_CIPHER_CTX_ctrl(NULL, EVP_CTRL_GCM_SET_TAG, 0, NULL);])</span>
<span id="LC8" class="line" lang="plaintext">+], [EVP_CIPHER_CTX_init(NULL);])</span>
<span id="LC9" class="line" lang="plaintext"></span>
<span id="LC10" class="line" lang="plaintext"> AM_CONDITIONAL(HAVE_LIBCRYPTO, test "$HAVE_LIBCRYPTO" = "yes")</span>
<span id="LC11" class="line" lang="plaintext"></span>
<span id="LC12" class="line" lang="plaintext">--- work/configure.orig 2018-12-20 15:19:38.000000000 -0600</span>
<span id="LC13" class="line" lang="plaintext">+++ work/configure      2018-12-20 15:20:33.000000000 -0600</span>
<span id="LC14" class="line" lang="plaintext">@@ -15730,7 +15730,7 @@</span>
<span id="LC15" class="line" lang="plaintext"> int</span>
<span id="LC16" class="line" lang="plaintext"> main ()</span>
<span id="LC17" class="line" lang="plaintext"> {</span>
<span id="LC18" class="line" lang="plaintext">-EVP_CIPHER_CTX_init(NULL);</span>
<span id="LC19" class="line" lang="plaintext">+EVP_CIPHER_CTX_ctrl(NULL, EVP_CTRL_GCM_SET_TAG, 0, NULL);</span>
<span id="LC20" class="line" lang="plaintext">   ;</span>
<span id="LC21" class="line" lang="plaintext">   return 0;</span>
<span id="LC22" class="line" lang="plaintext"> }</span></code></pre>
<p dir="auto">.. but this means that we do not test this compatibility feature on macOS, which is unfortunate.</p>

</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/issues/660">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/0e374f52c90e009e49866c0e70ce1118/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 Issue","url":"https://gitlab.com/gnutls/gnutls/issues/660"}}</script>
</p>
</div>
</body>
</html>