]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1180. [func] dnssec-keygen should always generate keys with
authorBrian Wellington <source@isc.org>
Mon, 21 Jan 2002 10:13:20 +0000 (10:13 +0000)
committerBrian Wellington <source@isc.org>
Mon, 21 Jan 2002 10:13:20 +0000 (10:13 +0000)
                        protocol 3 (DNSSEC), since it's less confusing
that way.

CHANGES
bin/dnssec/dnssec-keygen.c
bin/dnssec/dnssec-keygen.docbook

diff --git a/CHANGES b/CHANGES
index ed10a05d8100c838fd1e52ee48bc01300f53dfc6..287df251c7cf0e1bd25ab207875f26ac6d494ac4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+1180.  [func]          dnssec-keygen should always generate keys with
+                       protocol 3 (DNSSEC), since it's less confusing
+                       that way.
+
 1179.  [func]          Add SIG(0) support to nsupdate.
 
 1178.  [func]          Follow and cache (if appropriate) A6 and other
index d4cc3380438be97224828030298cae72a6816ba6..ea85435bab59102719d503c3670f1c16c64de6c4 100644 (file)
@@ -17,7 +17,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssec-keygen.c,v 1.59 2001/11/15 19:44:52 bwelling Exp $ */
+/* $Id: dnssec-keygen.c,v 1.60 2002/01/21 10:13:19 bwelling Exp $ */
 
 #include <config.h>
 
@@ -79,7 +79,7 @@ usage(void) {
                "AUTHCONF | NOAUTHCONF | NOAUTH | NOCONF "
                "(default: AUTHCONF)\n");
        fprintf(stderr, "    -p <protocol>: "
-              "default: 2 [email] for USER, 3 [dnssec] otherwise\n");
+              "default: 3 [dnssec]\n");
        fprintf(stderr, "    -s <strength> strength value this key signs DNS "
                "records with (default: 0)\n");
        fprintf(stderr, "    -r <randomdev>: a file containing random data\n");
@@ -270,12 +270,8 @@ main(int argc, char **argv) {
 
        flags |= signatory;
 
-       if (protocol == -1) {
-               if ((flags & DNS_KEYFLAG_OWNERMASK) == DNS_KEYOWNER_USER)
-                       protocol = DNS_KEYPROTO_EMAIL;
-               else
-                       protocol = DNS_KEYPROTO_DNSSEC;
-       }
+       if (protocol == -1)
+               protocol = DNS_KEYPROTO_DNSSEC;
 
        if ((flags & DNS_KEYFLAG_TYPEMASK) == DNS_KEYTYPE_NOKEY) {
                if (size > 0)
index e8b5590d52ed8411cfd46ad293f89efbf3fff51c..f8814affa5d2cc690e6be02d963681fccb1a31b4 100644 (file)
@@ -16,7 +16,7 @@
  - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 -->
 
-<!-- $Id: dnssec-keygen.docbook,v 1.3 2001/04/10 21:50:26 bwelling Exp $ -->
+<!-- $Id: dnssec-keygen.docbook,v 1.4 2002/01/21 10:13:20 bwelling Exp $ -->
 
 <refentry>
   <refentryinfo>
        <listitem>
          <para>
               Sets the protocol value for the generated key.  The protocol
-              is a number between 0 and 255.  The default is 2 (email) for
-              keys of type USER and 3 (DNSSEC) for all other key types.
+              is a number between 0 and 255.  The default is 3 (DNSSEC).
               Other possible values for this argument are listed in
               RFC 2535 and its successors.
          </para>