]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
ECDSA code should not use RSA label
authorMatthijs Mekking <matthijs@isc.org>
Tue, 15 Dec 2020 12:13:26 +0000 (13:13 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 26 Jan 2021 14:01:04 +0000 (15:01 +0100)
The 'opensslecdsa_tofile()' function tags the label as an RSA label,
that is a copy paste error and should be of course an ECDSA label.

lib/dns/opensslecdsa_link.c

index f198599e2f3b0bd7306359e111f0482476d98dae..bcf92b6ca4b59c982284692731dcaa8f10b021f7 100644 (file)
@@ -539,7 +539,7 @@ opensslecdsa_tofile(const dst_key_t *key, const char *directory) {
        }
 
        if (key->label != NULL) {
-               priv.elements[i].tag = TAG_RSA_LABEL;
+               priv.elements[i].tag = TAG_ECDSA_LABEL;
                priv.elements[i].length = (unsigned short)strlen(key->label) +
                                          1;
                priv.elements[i].data = (unsigned char *)key->label;