From: Wouter Wijngaards Date: Wed, 11 Aug 2010 07:35:08 +0000 (+0000) Subject: Nicer private key file for ECDSA. X-Git-Tag: release-1.6.7~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=251cfa24a7d585f08ab4d0365abbe221e6f4e71e;p=thirdparty%2Fldns.git Nicer private key file for ECDSA. --- diff --git a/host2str.c b/host2str.c index f83f618f..e11a1a63 100644 --- a/host2str.c +++ b/host2str.c @@ -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 725c4ed3..7f56714c 100644 --- 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)