Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From a7fe5e35025227e348eaef5a15fd55f591d77206 Mon Sep 17 00:00:00 2001
From: John Safranek <john@wolfssl.com>
Date: Tue, 6 Mar 2018 13:15:35 -0800
Subject: [PATCH] Fix issue with the creation of dummy fips.h header.
---
wolfssl/wolfcrypt/include.am | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/wolfssl/wolfcrypt/include.am b/wolfssl/wolfcrypt/include.am
index c81bdd13..6e84ed9d 100644
--- a/wolfssl/wolfcrypt/include.am
+++ b/wolfssl/wolfcrypt/include.am
@@ -20,7 +20,6 @@ nobase_include_HEADERS+= \
wolfssl/wolfcrypt/fe_operations.h \
wolfssl/wolfcrypt/ge_operations.h \
wolfssl/wolfcrypt/error-crypt.h \
- wolfssl/wolfcrypt/fips.h \
wolfssl/wolfcrypt/fips_test.h \
wolfssl/wolfcrypt/hash.h \
wolfssl/wolfcrypt/hc128.h \
@@ -99,3 +98,7 @@ if BUILD_SELFTEST
nobase_include_HEADERS+= wolfssl/wolfcrypt/selftest.h
endif
+if BUILD_FIPS_V2
+nobase_include_HEADERS+= wolfssl/wolfcrypt/fips.h
+endif
+
--
2.17.0
# Maintainer: Maxime Vincent <maxime.vince@gmail.com>
pkgname=wolfssl
pkgver=3.14.0
pkgrel=1
pkgdesc='A small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. (formerly CyaSSL) '
arch=(i686 x86_64)
license=(GPL)
depends=('bash')
url='https://www.wolfssl.com/'
source=(https://github.com/wolfSSL/wolfssl/archive/v$pkgver-stable.tar.gz
0001-Fix-issue-with-the-creation-of-dummy-fips.h-header.patch)
sha256sums=('4ab543c869a65a77dc5d0bc934b9d4852aa3d5834bd2f707a74a936602bd3687'
'980e88891b158c4e15da135fd385d921d8b4bf903f777d22d42403ec66266eb3')
prepare() {
cd "$pkgname-$pkgver-stable"
patch -p1 <"$srcdir/0001-Fix-issue-with-the-creation-of-dummy-fips.h-header.patch"
}
build() {
cd "$pkgname-$pkgver-stable"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --disable-fastmath \
--disable-fasthugemath --disable-bump \
--enable-opensslextra --enable-fortress \
--enable-keygen --enable-certgen \
--disable-debug --disable-ntru --disable-examples --enable-distro
make
}
package() {
cd "$pkgname-$pkgver-stable"
make install DESTDIR="$pkgdir"
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
libtool --finish /usr/lib
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment