-
Notifications
You must be signed in to change notification settings - Fork 771
testlib does not include our libcrypto-build headers. #64
Copy link
Copy link
Closed
Description
Mikko from codenomicon reported the following build error:
In file included from ../../tls/s2n_config.h:18:0,
from ../../tls/s2n_crypto.h:18,
from ../../tls/s2n_handshake.h:21,
from ../../tls/s2n_connection.h:23,
from s2n_print_connection.c:18:
../../crypto/s2n_rsa.h:18:25: fatal error: openssl/rsa.h: No such file or directory #include <openssl/rsa.h>
It looks like the problem is that our testlib/Makefile does not include the right libcrypto-build in its path. I suspect that the following patch fixes it:
diff --git a/tests/testlib/Makefile b/tests/testlib/Makefile
index beaeffa..6c19478 100644
--- a/tests/testlib/Makefile
+++ b/tests/testlib/Makefile
@@ -20,7 +20,7 @@ all: libtests2n.so libtests2n.dylib
include ../../s2n.mk
-CFLAGS += -I../../ -I../../api/
+CFLAGS += -I../../ -I../../api/ -I../../libcrypto-root/include/
LDFLAGS += -L../../lib/ -lcrypto -lpthread -ls2n
libtests2n.so: ${OBJS}:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels