[gnutls-devel] GnuTLS | Not possible to build tests on macOS. (#660)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Dec 20 22:31:06 CET 2018


New Issue was created.

Issue 660: https://gitlab.com/gnutls/gnutls/issues/660
Author:    Ray Donnelly
Assignee:  

macOS's libcrypto does not contain the define `EVP_CTRL_GCM_SET_TAG` (I looked in every SDK from 10.9 to 10.13) yet we see 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

Leading to:

```
cipher-openssl-compat.c:142:29: error: use of undeclared identifier 'EVP_CTRL_GCM_SET_TAG'
                        EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, tag_size, 
                                                 ^
```

I am working around it by forcing it to detect this fact via the following patch:
```
--- work/configure.ac.orig      2018-12-20 15:18:12.000000000 -0600
+++ work/configure.ac   2018-11-30 23:21:11.000000000 -0600
@@ -344,7 +344,7 @@

 # check for libcrypto - used in test programs
 AC_LIB_HAVE_LINKFLAGS(crypto,, [#include <openssl/evp.h>
-], [EVP_CIPHER_CTX_ctrl(NULL, EVP_CTRL_GCM_SET_TAG, 0, NULL);])
+], [EVP_CIPHER_CTX_init(NULL);])

 AM_CONDITIONAL(HAVE_LIBCRYPTO, test "$HAVE_LIBCRYPTO" = "yes")

--- work/configure.orig 2018-12-20 15:19:38.000000000 -0600
+++ work/configure      2018-12-20 15:20:33.000000000 -0600
@@ -15730,7 +15730,7 @@
 int
 main ()
 {
-EVP_CIPHER_CTX_init(NULL);
+EVP_CIPHER_CTX_ctrl(NULL, EVP_CTRL_GCM_SET_TAG, 0, NULL);
   ;
   return 0;
 }
```

.. but this means that we do not test this compatibility feature on macOS, which is unfortunate.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/660
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181220/43e1b796/attachment.html>


More information about the Gnutls-devel mailing list