]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Nicer private key file for ECDSA.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Wed, 11 Aug 2010 07:35:08 +0000 (07:35 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Wed, 11 Aug 2010 07:35:08 +0000 (07:35 +0000)
host2str.c
keys.c

index f83f618f60340b4308c1bb2d8249de8dd9650008..e11a1a634ebe1bc62561c0a1878a9351dd83e562 100644 (file)
@@ -1716,7 +1716,7 @@ ldns_key2buffer_str(ldns_buffer *output, const ldns_key *k)
                                 if(k->_key.key) {
                                         EC_KEY* ec = EVP_PKEY_get1_EC_KEY(k->_key.key);
                                         const BIGNUM* b = EC_KEY_get0_private_key(ec);
-                                        ldns_buffer_printf(output, "D: ");
+                                        ldns_buffer_printf(output, "PrivateKey: ");
                                         i = (uint16_t)BN_bn2bin(b, bignum);
                                         if (i > LDNS_MAX_KEYLEN) {
                                                 goto error;
diff --git a/keys.c b/keys.c
index 725c4ed3856bf0c950922fb4f9b5860c5e7d5036..7f56714cb217ee186cf435039dde2a06455f0567 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -238,7 +238,7 @@ ldns_key_new_frm_fp_ecdsa_l(FILE* fp, ldns_algorithm alg, int* line_nr)
         BIGNUM* bn;
         EVP_PKEY* evp_key;
         EC_KEY* ec;
-       if (ldns_fget_keyword_data_l(fp, "D", ": ", token, "\n", 
+       if (ldns_fget_keyword_data_l(fp, "PrivateKey", ": ", token, "\n", 
                sizeof(token), line_nr) == -1)
                return NULL;
        if(ldns_str2rdf_b64(&b64rdf, token) != LDNS_STATUS_OK)