From: Dave Hart Date: Mon, 15 Nov 2010 22:30:55 +0000 (+0000) Subject: [Bug 1727] ntp-keygen PLEN, ILEN undeclared --without-crypto. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ac3e94dbfe7a20dbf5b5fff8a19445ff001f26a;p=thirdparty%2Fntp.git [Bug 1727] ntp-keygen PLEN, ILEN undeclared --without-crypto. bk: 4ce1b49f35La2EPdhPMPiapHf3hgeg --- diff --git a/ChangeLog b/ChangeLog index 002fed49c7..94e380efef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1727] ntp-keygen PLEN, ILEN undeclared --without-crypto. (4.2.7p81) 2010/11/14 Released by Harlan Stenn * [Bug 1681] from 4.2.6p3-RC10: More sntp logging cleanup. * [Bug 1683] from 4.2.6p3-RC10: Non-localhost on loopback exempted from diff --git a/util/ntp-keygen.c b/util/ntp-keygen.c index 6daf6d1e2c..c6ab0fa3c1 100644 --- a/util/ntp-keygen.c +++ b/util/ntp-keygen.c @@ -157,8 +157,6 @@ u_long asn2ntp (ASN1_TIME *); extern char *optarg; /* command line argument */ char *progname; volatile int debug = 0; /* debug, not de bug */ -u_int modulus = PLEN; /* prime modulus size (bits) */ -u_int modulus2 = ILEN; /* identity modulus size (bits) */ u_int lifetime = YEAR; /* cetificate lifetime (days) */ int nkeys; /* MV keys */ time_t epoch; /* Unix epoch (seconds) since 1970 */ @@ -170,6 +168,8 @@ char *passwd1 = NULL; /* input private key password */ char *passwd2 = NULL; /* output private key password */ char filename[MAXFILENAME + 1]; /* file name */ #ifdef AUTOKEY +u_int modulus = PLEN; /* prime modulus size (bits) */ +u_int modulus2 = ILEN; /* identity modulus size (bits) */ long d0, d1, d2, d3; /* callback counters */ #endif /* AUTOKEY */