From: Wouter Wijngaards Date: Mon, 10 Aug 2009 14:10:03 +0000 (+0000) Subject: fix private key write and read X-Git-Tag: release-1.6.1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67e72c8651dad418c9dc2dc6fd9e06d2ca3e3974;p=thirdparty%2Fldns.git fix private key write and read --- diff --git a/host2str.c b/host2str.c index c7d52c28..09593961 100644 --- a/host2str.c +++ b/host2str.c @@ -1665,7 +1665,7 @@ ldns_key2buffer_str(ldns_buffer *output, const ldns_key *k) /* no format defined, use blob */ #if defined(HAVE_SSL) && defined(USE_GOST) ldns_buffer_printf(output, "Private-key-format: v1.2\n"); - ldns_buffer_printf(output, "Algorithm: 11 (GOST)\n"); + ldns_buffer_printf(output, "Algorithm: 211 (GOST)\n"); status = ldns_gost_key2buffer_str(output, k->_key.key); #endif break; diff --git a/keys.c b/keys.c index cf1a99f2..2c5172a8 100644 --- a/keys.c +++ b/keys.c @@ -260,7 +260,7 @@ ldns_key_new_frm_fp_l(ldns_key **key, FILE *fp, int *line_nr) fprintf(stderr, "version of ldns\n"); #endif } - if (strncmp(d, "11 GOST", 3) == 0) { + if (strncmp(d, "211 GOST", 4) == 0) { #ifdef USE_GOST alg = LDNS_SIGN_GOST; #else