revision 0.55
date: 2012/05/02 16:16:19;  author: giova;  state: Exp;  lines: +6 -5
Startup's GBC record corrected
----------------------------
revision 0.54
date: 2012/05/02 16:01:54;  author: giova;  state: Exp;  lines: +8 -3
last (OLD) rsid/gbc added to startup line
----------------------------
revision 0.53
date: 2012/05/02 15:56:11;  author: giova;  state: Exp;  lines: +6 -2
First db rsid-gbc try (to be able to check rsid-gbc between reboots)
----------------------------
revision 0.52
date: 2012/05/02 15:35:27;  author: giova;  state: Exp;  lines: +2 -4
rcsid added to the startup message
----------------------------
revision 0.51
date: 2012/05/02 15:33:40;  author: giova;  state: Exp;  lines: +7 -3
Initial Syslog message added at startup.
----------------------------
revision 0.50
date: 2012/04/27 11:06:38;  author: giova;  state: Exp;  lines: +2 -2
Changed gpgdir params
----------------------------
revision 0.49
date: 2012/04/27 10:37:43;  author: giova;  state: Exp;  lines: +12 -2
Verifier decrypts with gpgdir if needed.
----------------------------
revision 0.48
date: 2012/04/27 09:55:36;  author: giova;  state: Exp;  lines: +18 -10
Auto Date-Time format in encrypted logfiles
logdir+logname instead of logfile in config
-e honored
----------------------------
revision 0.47
date: 2012/04/26 15:25:19;  author: giova;  state: Exp;  lines: +6 -5
log opening at the first syslog line arrival
----------------------------
revision 0.46
date: 2012/04/26 15:16:14;  author: giova;  state: Exp;  lines: +15 -5
GPG encryption added
----------------------------
revision 0.45
date: 2012/04/26 10:52:57;  author: giova;  state: Exp;  lines: +3 -1
close(LOG) added to the signal_trap sub
----------------------------
revision 0.44
date: 2012/04/26 10:42:26;  author: giova;  state: Exp;  lines: +1 -72
minor
----------------------------
revision 0.43
date: 2012/04/24 14:57:28;  author: giova;  state: Exp;  lines: +96 -11
Improved verification algorithm for incorrect blocks, detailing:
- Missing lines (where signed, but have been removed)
- Added lines (unsigned)
- Twisted lines (lines that appear in the wrong order)
Verbose output to STDERR, might need a review...
----------------------------
revision 0.42
date: 2012/04/23 20:07:53;  author: giova;  state: Exp;  lines: +4 -4
minor
----------------------------
revision 0.41
date: 2012/04/23 18:45:47;  author: giova;  state: Exp;  lines: +9 -3
added -e | --encrypt command line switch
----------------------------
revision 0.40
date: 2012/04/23 16:18:19;  author: giova;  state: Exp;  lines: +5 -3
Bugfixes:
- my  $dsa_priv = Crypt::OpenSSL::DSA->read_priv_key( $signseckeyfile ); Not working
  had to remove "my" (No clue why it seemed to be working until now...)
- secfrac can now be anything between 0 and 6 (and it is honored)
----------------------------
revision 0.39
date: 2012/04/23 15:26:49;  author: giova;  state: Exp;  lines: +6 -2
-l logfile bugfixed
----------------------------
revision 0.38
date: 2012/04/23 15:12:15;  author: giova;  state: Exp;  lines: +252 -21
Merged with verifier (-v switch)
added command line options -l (logfile), -c (debug)
added config for secfrac (default 0)
added config for incremental RSID (default: NO, using epoch)
----------------------------
revision 0.37
date: 2012/04/23 13:22:15;  author: giova;  state: Exp;  lines: +49 -2
External configuration file, additional switched (-d, -h, -f config-file)
----------------------------
revision 0.36
date: 2012/04/23 10:09:12;  author: giova;  state: Exp;  lines: +5 -5
Added microseconds
----------------------------
revision 0.35
date: 2012/04/23 09:35:10;  author: giova;  state: Exp;  lines: +5 -3
Added Timezone in +HH:MM format (%z)
----------------------------
revision 0.34
date: 2012/04/23 08:38:29;  author: giova;  state: Exp;  lines: +23 -23
minor
----------------------------
revision 0.33
date: 2012/04/22 12:59:50;  author: giova;  state: Exp;  lines: +43 -18
RSA Crypto Key Generation
----------------------------
revision 0.32
date: 2012/04/22 12:32:02;  author: giova;  state: Exp;  lines: +2 -1
fixme for the secret file permissions
----------------------------
revision 0.31
date: 2012/04/22 11:24:26;  author: giova;  state: Exp;  lines: +17 -33
code cleaning
----------------------------
revision 0.30
date: 2012/04/22 08:58:36;  author: giova;  state: Exp;  lines: +4 -2
Corrected a BUG:
when it was under signal trap, it tried to sign
even when there were no lines to sign. (0 lines)
----------------------------
revision 0.29
date: 2012/04/22 08:56:34;  author: giova;  state: Exp;  lines: +23 -9
Trapped the SigTERM signal, so that
now it correctly signs the last lines (still unsigned
at shutdown time)
----------------------------
revision 0.28
date: 2012/04/22 08:50:42;  author: giova;  state: Exp;  lines: +18 -10
partially implemented sigint handling
----------------------------
revision 0.27
date: 2012/04/22 08:34:38;  author: giova;  state: Exp;  lines: +8 -3
back to rsid=time()
----------------------------
revision 0.26
date: 2012/04/21 06:26:15;  author: giova;  state: Exp;  lines: +2 -2
sign_end corrected (Signature Blocks were not correctly terminated by "]\n";)
----------------------------
revision 0.25
date: 2012/04/21 06:19:38;  author: giova;  state: Exp;  lines: +17 -14
timestamp moved to Signature Block computation.

syslog-ng trials:
with:
destination d_program_sign {
        program("/opt/syslog-ng-os/bin/syslog-sign.pl"
                flags("syslog-protocol")
        );
};
syslog-ng correctly generates rfc5424 records
----------------------------
revision 0.24
date: 2012/04/20 14:37:41;  author: giova;  state: Exp;  lines: +3 -1
aggiunto IO::Handle ed ->autoflush(1) sull'IO Handler.
----------------------------
revision 0.23
date: 2012/04/19 15:59:02;  author: giova;  state: Exp;  lines: +5 -2
Fix for FMN calculation
----------------------------
revision 0.22
date: 2012/04/19 15:44:53;  author: giova;  state: Exp;  lines: +19 -8
GBC/RSID strict compliance (degenerated cases > 9999999999 included)
----------------------------
revision 0.21
date: 2012/04/19 15:19:15;  author: giova;  state: Exp;  lines: +34 -3
Incremental RSID added (avoids non-compliance when daemon reboots multiple times per second...)
----------------------------
revision 0.20
date: 2012/04/19 08:33:56;  author: giova;  state: Exp;  lines: +4 -4
\n at the end of the Signature Block
----------------------------
revision 0.19
date: 2012/04/19 06:24:55;  author: giova;  state: Exp;  lines: +13 -17
very rude check on SB lenght
----------------------------
revision 0.18
date: 2012/04/19 06:11:57;  author: giova;  state: Exp;  lines: +6 -5
Timeout disabled when T=0
----------------------------
revision 0.17
date: 2012/04/18 16:55:40;  author: giova;  state: Exp;  lines: +8 -3
corretto il baco dell'EOF
dopo alcune linee.
----------------------------
revision 0.16
date: 2012/04/18 16:51:20;  author: giova;  state: Exp;  lines: +2 -4
sistemato (spero) il FMN
baco: se arriva l'EOF come prima linea tutto funziona,
ma se arrivano alcune linee (meno di $N) e poi l'EOF ->
occorrono 2 EOF per uscire.
----------------------------
revision 0.15
date: 2012/04/18 16:48:18;  author: giova;  state: Exp;  lines: +2 -1
modificato il GBC (non veniva incrementato)
----------------------------
revision 0.14
date: 2012/04/18 16:45:02;  author: giova;  state: Exp;  lines: +19 -10
codice che gestisce meglio l'EOF.
ancora da testare a fondo
----------------------------
revision 0.13
date: 2012/04/18 16:19:50;  author: giova;  state: Exp;  lines: +3 -1
versione con il loop esterno al try/catch.
funziona, ma non esce mai quando lo standard
input finisce.
----------------------------
revision 0.12
date: 2012/04/18 16:16:23;  author: giova;  state: Exp;  lines: +12 -5
minor aestetic changes
----------------------------
revision 0.11
date: 2012/04/18 16:11:47;  author: giova;  state: Exp;  lines: +11 -6
versione che calcola correttamente il CNT= field
----------------------------
revision 0.10
date: 2012/04/18 16:06:22;  author: giova;  state: Exp;  lines: +2 -2
versione con gli hash multipli dentro all'hash block.
ancora manca il calcolo corretto dei prarametri dell'ssign
record
----------------------------
revision 0.9
date: 2012/04/18 16:04:38;  author: giova;  state: Exp;  lines: +41 -14
versione PRELIMINARE del codice con timeouts
e numero massimo di linee da leggere.
Fa' solo la PRIMA firma, poi esce.
----------------------------
revision 0.8
date: 2012/04/18 15:36:54;  author: giova;  state: Exp;  lines: +8 -3
controllo di esistenza dei files delle chiavi
----------------------------
revision 0.7
date: 2012/04/18 15:29:47;  author: giova;  state: Exp;  lines: +7 -6
versione rinominata in syslog-sign
----------------------------
revision 0.6
date: 2012/04/18 15:23:31;  author: giova;  state: Exp;  lines: +32 -8
Implemented the Generate Keys (-gk) runtime option
----------------------------
revision 0.5
date: 2012/04/17 21:54:38;  author: giova;  state: Exp;  lines: +6 -16
cambiato il nome (ed il posto) all'output.
in /tmp/, se cambiavi lo user non poteva sovrascriverlo.
----------------------------
revision 0.4
date: 2012/04/17 21:50:14;  author: giova;  state: Exp;  lines: +2 -0
aggiunto l'rcsID all'inizio del prog.
----------------------------
revision 0.3
date: 2012/04/17 21:46:58;  author: giova;  state: Exp;  lines: +9 -6
aggiunto il check sulla linea dell'ssign. Ora e' tornato a
dare valid='1';
----------------------------
revision 0.2
date: 2012/04/17 21:40:49;  author: giova;  state: Exp;  lines: +12 -4
aggiunta la firma dell'hash della linea dell'ssign.
Prima era la firma dell'hash della linea del syslog.
rfc5848, rfc5424 and example config file added