From 1d57248db9b14aac5d2ec26661f8fe4e59b7e20c Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 26 Apr 2016 22:28:38 +0200 Subject: [PATCH] skipping the iv parameter initialisation --- configure | 2 -- configure.in | 2 -- etc/Makefile.in | 1 - etc/example.conf | 2 +- util/gen-iv.pl | 13 ------------- 5 files changed, 1 insertion(+), 19 deletions(-) delete mode 100755 util/gen-iv.pl diff --git a/configure b/configure index 2a28ed0f..fc0592a7 100755 --- a/configure +++ b/configure @@ -4883,8 +4883,6 @@ echo "tnef: $tnef" id -u $RUNNING_USER 2>/dev/null 1>/dev/null if test $? -eq 1; then echo "the user \"$RUNNING_USER\" does not exists, please create it, first with adduser..."; exit 1; fi -iv=`util/gen-iv.pl` - echo; echo CFLAGS="$static -O2 -Wall -g" diff --git a/configure.in b/configure.in index 88f979f4..cbe3ae08 100644 --- a/configure.in +++ b/configure.in @@ -550,8 +550,6 @@ echo "tnef: $tnef" id -u $RUNNING_USER 2>/dev/null 1>/dev/null if test $? -eq 1; then echo "the user \"$RUNNING_USER\" does not exists, please create it, first with adduser..."; exit 1; fi -iv=`util/gen-iv.pl` - echo; echo CFLAGS="$static -O2 -Wall -g" diff --git a/etc/Makefile.in b/etc/Makefile.in index 360405e2..e19395f6 100644 --- a/etc/Makefile.in +++ b/etc/Makefile.in @@ -26,7 +26,6 @@ INSTALL = @INSTALL@ all: sed -e 's%pidfile=.*%pidfile=$(localstatedir)/run/piler/piler.pid%g' \ - -e 's%iv=.*%iv=@iv@%g' \ -e 's%pemfile=%pemfile=$(sysconfdir)/piler.pem%g' \ -e 's%workdir=.*%workdir=$(localstatedir)/piler/tmp%g' < $(srcdir)/example.conf | grep -v ^\; | grep '=' | sort > $(srcdir)/piler.conf diff --git a/etc/example.conf b/etc/example.conf index 190cfed8..3a0b0eb9 100644 --- a/etc/example.conf +++ b/etc/example.conf @@ -25,7 +25,7 @@ default_retention_days=2557 ; this is a 16 character long vector ; after the installation you must not change it ever ; otherwise you can't access your emails -iv=**************** +;iv=**************** ; whether to encrypt messages (1) or not (0). ; Make sure to set this value to your needs right after installing piler, diff --git a/util/gen-iv.pl b/util/gen-iv.pl deleted file mode 100755 index 25879ccb..00000000 --- a/util/gen-iv.pl +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/perl -# - -@x = ('A'..'Z','a'..'z',0..9); -$iv = ""; - -srand; - -for($i=0; $i<16; $i++){ - $iv .= @x[rand @x]; -} - -print $iv;