]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
NSEC3 type code update for signing algorithms.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 19 Feb 2008 13:49:47 +0000 (13:49 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 19 Feb 2008 13:49:47 +0000 (13:49 +0000)
keys.c
ldns/keys.h

diff --git a/keys.c b/keys.c
index dd35bb833efb62a67e5b545443368c3253fc93f5..c2d34ee915fe6b029de7285e9003cc8d75a02c87 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -139,23 +139,35 @@ ldns_key_new_frm_fp_l(ldns_key **key, FILE *fp, int *line_nr)
        if (strncmp(d, "1 RSA", 2) == 0) {
                alg = LDNS_SIGN_RSAMD5;
        }
+       if (strncmp(d, "2 DH", 2) == 0) {
+               alg = LDNS_DH; 
+       }
        if (strncmp(d, "3 DSA", 2) == 0) {
                alg = LDNS_SIGN_DSA; 
        }
-       if (strncmp(d, "131 DSA", 4) == 0) {
-               alg = LDNS_DSA_NSEC3
+       if (strncmp(d, "4 ECC", 2) == 0) {
+               alg = LDNS_ECC
        }
        if (strncmp(d, "5 RSASHA1", 2) == 0) {
                alg = LDNS_SIGN_RSASHA1;
        }
-       if (strncmp(d, "6 RSASHA256", 2) == 0) {
+       if (strncmp(d, "6 DSA", 4) == 0) {
+               alg = LDNS_DSA_NSEC3; 
+       }
+       if (strncmp(d, "7 RSASHA1", 4) == 0) {
+               alg = LDNS_RSASHA1_NSEC3;
+       }
+       if (strncmp(d, "8 RSASHA256", 2) == 0) {
                alg = LDNS_SIGN_RSASHA256;
        }
-       if (strncmp(d, "7 RSASHA512", 2) == 0) {
+       if (strncmp(d, "9 RSASHA512", 2) == 0) {
                alg = LDNS_SIGN_RSASHA512;
        }
-       if (strncmp(d, "133 RSASHA1", 4) == 0) {
-               alg = LDNS_RSASHA1_NSEC3;
+       if (strncmp(d, "10 RSASHA256", 3) == 0) {
+               alg = LDNS_SIGN_RSASHA256_NSEC3;
+       }
+       if (strncmp(d, "11 RSASHA512", 3) == 0) {
+               alg = LDNS_SIGN_RSASHA512_NSEC3;
        }
        if (strncmp(d, "157 HMAC-MD5", 4) == 0) {
                alg = LDNS_SIGN_HMACMD5;
index 98e83fb3c31fa9041d1eae713f6a103b334f8de6..48bc4812c44c1b78ccd52dfdf95afc940d25122a 100644 (file)
@@ -43,12 +43,12 @@ enum ldns_enum_algorithm
         LDNS_DSA                = 3,
         LDNS_ECC                = 4,
         LDNS_RSASHA1            = 5,
-        LDNS_RSASHA256          = 6,
-        LDNS_RSASHA512          = 7,
-        LDNS_DSA_NSEC3           = 131,
-        LDNS_RSASHA1_NSEC3       = 133,
-        LDNS_RSASHA256_NSEC3    = 134,
-        LDNS_RSASHA512_NSEC3    = 135,
+        LDNS_DSA_NSEC3         = 6,
+        LDNS_RSASHA1_NSEC3     = 7,
+        LDNS_RSASHA256          = 8, /* not official */
+        LDNS_RSASHA512          = 9, /* not official */
+        LDNS_RSASHA256_NSEC3    = 10, /* not official */
+        LDNS_RSASHA512_NSEC3    = 11, /* not official */
         LDNS_INDIRECT           = 252,
         LDNS_PRIVATEDNS         = 253,
         LDNS_PRIVATEOID         = 254