Blame SOURCES/ntp-4.2.6p5-identlen.patch

2b78f7
diff -up ntp-4.2.6p5/html/keygen.html.identlen ntp-4.2.6p5/html/keygen.html
2b78f7
--- ntp-4.2.6p5/html/keygen.html.identlen	2012-12-05 11:43:46.666828864 +0100
2b78f7
+++ ntp-4.2.6p5/html/keygen.html	2012-12-05 12:00:45.331085982 +0100
2b78f7
@@ -43,7 +43,7 @@
2b78f7
 
2b78f7
 

Synopsis

2b78f7
 
2b78f7
-

<tt>ntp-keygen [ -deGHIMPT ] [ -c [RSA-MD2 | RSA-MD5 | RSA-SHA

2b78f7
+

<tt>ntp-keygen [ -deGHIMPT ] [ -b modulus ] [ -c [RSA-MD2 | RSA-MD5 | RSA-SHA

2b78f7
 		| RSA-SHA1 | RSA-MDC2 | RSA-RIPEMD160 | DSA-SHA | DSA-SHA1 ] ] [
2b78f7
 		-i group ]
2b78f7
 		[ -m modulus ]  [ -p passwd2 ] [ -q passwd1 ] [ -S
2b78f7
@@ -140,6 +140,8 @@
2b78f7
 

Command Line Options

2b78f7
 
2b78f7
 
2b78f7
+
<tt>-b modulus</tt>
2b78f7
+
Set the modulus for generating identity keys to modulus bits. The modulus defaults to 256, but can be set from 256 (32 octets) to 2048 (256 octets). Use the larger moduli with caution, as this can consume considerable computing resources and increases the size of authenticated packets.
2b78f7
 
2b78f7
 
<tt>-c [ RSA-MD2 | RSA-MD5 | RSA-SHA | RSA-SHA1 | RSA-MDC2 | RSA-RIPEMD160 | DSA-SHA | DSA-SHA1 ]</tt>
2b78f7
 
Select certificate and message digest/signature encryption scheme. Note that
2b78f7
diff -up ntp-4.2.6p5/util/ntp-keygen-opts.def.identlen ntp-4.2.6p5/util/ntp-keygen-opts.def
2b78f7
--- ntp-4.2.6p5/util/ntp-keygen-opts.def.identlen	2009-12-09 08:36:35.000000000 +0100
2b78f7
+++ ntp-4.2.6p5/util/ntp-keygen-opts.def	2012-12-05 12:03:17.991124514 +0100
2b78f7
@@ -16,6 +16,19 @@ include        = '#include <stdlib.h>';
2b78f7
 #include       version.def
2b78f7
 
2b78f7
 flag = {
2b78f7
+    value     = b;
2b78f7
+    name      = imbits;
2b78f7
+    arg-type  = number;
2b78f7
+    arg-name  = imbits;
2b78f7
+    arg-range = '256->2048';
2b78f7
+    ifdef     = OPENSSL;
2b78f7
+    descrip   = "identity modulus bits";
2b78f7
+    doc = <<-  _EndOfDoc_
2b78f7
+	The number of bits in the identity modulus.  The default is 256.
2b78f7
+	_EndOfDoc_;
2b78f7
+};
2b78f7
+
2b78f7
+flag = {
2b78f7
     value     = c;
2b78f7
     name      = certificate;
2b78f7
     arg-type  = string;
2b78f7
diff -up ntp-4.2.6p5/util/ntp-keygen.c.identlen ntp-4.2.6p5/util/ntp-keygen.c
2b78f7
--- ntp-4.2.6p5/util/ntp-keygen.c.identlen	2011-12-25 00:27:16.000000000 +0100
2b78f7
+++ ntp-4.2.6p5/util/ntp-keygen.c	2012-12-05 12:03:43.318130907 +0100
2b78f7
@@ -318,6 +318,10 @@ main(
2b78f7
 		mvpar++;
2b78f7
 		nkeys = OPT_VALUE_MV_KEYS;
2b78f7
 	}
2b78f7
+
2b78f7
+	if (HAVE_OPT( IMBITS ))
2b78f7
+		modulus2 = OPT_VALUE_IMBITS;
2b78f7
+
2b78f7
 	if (HAVE_OPT( MODULUS ))
2b78f7
 		modulus = OPT_VALUE_MODULUS;
2b78f7