Skip to content

Commit

Permalink
security/openssl-unsafe: Unbreak with FreeBSD 13
Browse files Browse the repository at this point in the history
  • Loading branch information
Sp1l committed Apr 6, 2021
1 parent 0501788 commit 11b77b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 0 additions & 2 deletions security/openssl-unsafe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ USE_GITHUB= yes
GH_ACCOUNT= PeterMosmans
GH_TAGNAME= c9ba19c

BROKEN_FreeBSD_13= eng_cryptodev.c:250:19: error: use of undeclared identifier 'CRIOGET'
BROKEN_FreeBSD_14= eng_cryptodev.c:250:19: error: use of undeclared identifier 'CRIOGET'
.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
BROKEN_i386= ld: error: unknown argument: -Bforcearchive
.endif
Expand Down
11 changes: 11 additions & 0 deletions security/openssl-unsafe/files/patch-crypto_engine_eng__cryptodev.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- crypto/engine/eng_cryptodev.c.orig 2017-07-06 01:00:00 UTC
+++ crypto/engine/eng_cryptodev.c
@@ -35,7 +35,7 @@
#if (defined(__unix__) || defined(unix)) && !defined(USG) && \
(defined(OpenBSD) || defined(__FreeBSD__))
# include <sys/param.h>
-# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041)
+# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || (__FreeBSD_version >= 500041 && __FreeBSD_version < 1300000))
# define HAVE_CRYPTODEV
# endif
# if (OpenBSD >= 200110)

0 comments on commit 11b77b7

Please sign in to comment.