openssl: build with ecdh acceleration (FS#1096), use printf instead of echo in the mksslcert script

This commit is contained in:
Juergen Daubert 2015-01-05 18:31:59 +01:00
parent 5766d0b927
commit 57c8e30454
3 changed files with 14 additions and 6 deletions

View File

@ -1,2 +1,2 @@
768686b50408da41c4cf7d7038c9b615 mksslcert.sh
91f85842d2118003ee465c34259047e6 mksslcert.sh
f7175c9cd3c39bb1907ac8bba9df8ed3 openssl-1.0.1j.tar.gz

View File

@ -4,17 +4,25 @@
name=openssl
version=1.0.1j
release=1
release=2
source=(http://www.openssl.org/source/$name-$version.tar.gz \
mksslcert.sh)
build() {
cd $name-$version
export MAKEFLAGS="$MAKEFLAGS -j1"
./config --prefix=/usr --openssldir=/etc/ssl shared
./config --prefix=/usr \
--openssldir=/etc/ssl \
shared \
enable-ec_nistp_64_gcc_128
sed -i "s|-O3|$CFLAGS|" Makefile
make
make depend
make INSTALL_PREFIX=$PKG LIBDIR=lib MANDIR=/usr/man MANSUFFIX=ssl install
find $PKG -name "*fips*" -delete
chmod -R +w $PKG
install -D -m 755 $SRC/mksslcert.sh $PKG/usr/bin/mksslcert

View File

@ -6,7 +6,7 @@
# the local hostname or the given one
# Fallback to localhost if not set.
#
# Jürgen Daubert, jue at jue dot li
# Juergen Daubert, jue at crux dot nu
print_help() {
@ -31,7 +31,7 @@ main() {
INFO=".\n.\n.\n.\n.\n$FQDN\nroot@$FQDN"
OPTS="req -new -nodes -x509 -days 365 -newkey rsa:2048"
echo -e $INFO | openssl $OPTS -out $CRT -keyout $KEY 2> /dev/null
printf "$INFO\n" | openssl $OPTS -out $CRT -keyout $KEY 2> /dev/null
if [ $? -ne 0 ]; then
echo "Error: creating of certificate failed"