]> 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:04:11 +0000 (15:04 +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.

(cherry picked from commit 46afeca8bfe2e9d4080acc52dcf03fa980950e35)

lib/dns/opensslecdsa_link.c

index 8c8caf467df559581741c0ce94e60a2d77e803d9..e7cfcf2d0762ee44f84f6fe189d7d7ab7d8ec981 100644 (file)
@@ -541,7 +541,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;