mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
ECDSA code should not use RSA label
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.
This commit is contained in:
@@ -539,7 +539,7 @@ opensslecdsa_tofile(const dst_key_t *key, const char *directory) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (key->label != NULL) {
|
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) +
|
priv.elements[i].length = (unsigned short)strlen(key->label) +
|
||||||
1;
|
1;
|
||||||
priv.elements[i].data = (unsigned char *)key->label;
|
priv.elements[i].data = (unsigned char *)key->label;
|
||||||
|
Reference in New Issue
Block a user