libraries/libpwquality: Updated for version 1.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0851bdcd41
commit
ae5b9cb97e
|
@ -1,21 +0,0 @@
|
|||
|
||||
# HG changeset patch
|
||||
# User Tomas Mraz <tmraz@redhat.com>
|
||||
# Date 1440426008 -7200
|
||||
# Node ID a4696cd7cd246f6c34a2d2f1d54d569c5e7ecd84
|
||||
# Parent bb4952bec17e830c751d99a85ae1de32e22cf659
|
||||
Fix possible stack overflow in pwquality_generate() with data from /dev/urandom.
|
||||
|
||||
diff -r bb4952bec17e -r a4696cd7cd24 src/generate.c
|
||||
--- a/src/generate.c Thu Jul 23 14:11:30 2015 +0200
|
||||
+++ b/src/generate.c Mon Aug 24 16:20:08 2015 +0200
|
||||
@@ -100,7 +100,7 @@
|
||||
int
|
||||
pwquality_generate(pwquality_settings_t *pwq, int entropy_bits, char **password)
|
||||
{
|
||||
- char entropy[PWQ_MAX_ENTROPY_BITS/8 + 1];
|
||||
+ char entropy[(PWQ_MAX_ENTROPY_BITS+PWQ_MAX_ENTROPY_BITS/9)/8 + 2];
|
||||
char *tmp;
|
||||
int maxlen;
|
||||
int try = 0;
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Slackware build script for libpwquality.
|
||||
#
|
||||
# Copyright 2015-2016 Edinaldo P. Silva, Rio de Janeiro, Brazil.
|
||||
# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,8 +23,8 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=libpwquality
|
||||
VERSION=${VERSION:-1.3.0}
|
||||
BUILD=${BUILD:-2}
|
||||
VERSION=${VERSION:-1.4.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -60,8 +60,8 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
rm -rf $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
@ -69,7 +69,7 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/Fix_possible_stack_overflow.patch
|
||||
./autogen.sh --prefix=/usr
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="libpwquality"
|
||||
VERSION="1.3.0"
|
||||
HOMEPAGE="https://fedorahosted.org/libpwquality/"
|
||||
DOWNLOAD="http://ftp.osuosl.org/pub/blfs/conglomeration/libpwquality/libpwquality-1.3.0.tar.bz2"
|
||||
MD5SUM="2a3d4ba1d11b52b4f6a7f39622ebf736"
|
||||
VERSION="1.4.0"
|
||||
HOMEPAGE="https://github.com/libpwquality/libpwquality/"
|
||||
DOWNLOAD="https://github.com/libpwquality/libpwquality/archive/libpwquality-1.4.0.tar.gz"
|
||||
MD5SUM="a4f3e8a15adba9c289349a345fd885ba"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="cracklib"
|
||||
|
|
|
@ -13,7 +13,7 @@ libpwquality: quality checking and also scoring them based on their apparent
|
|||
libpwquality: randomness. The library also provides a function for generating
|
||||
libpwquality: random passwords with good pronounceability.
|
||||
libpwquality:
|
||||
libpwquality: Home page: https://fedorahosted.org/libpwquality/
|
||||
libpwquality: Home page: https://github.com/libpwquality/libpwquality/
|
||||
libpwquality:
|
||||
libpwquality:
|
||||
libpwquality:
|
||||
|
|
Loading…
Reference in New Issue