Commit d2524f38 authored by Bob Halley's avatar Bob Halley
Browse files

dns_name_downcase() API change

parent 6e952e42
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
*/ */
/* /*
* $Id: tsig.c,v 1.3 1999/08/26 20:41:53 bwelling Exp $ * $Id: tsig.c,v 1.4 1999/08/26 21:07:56 halley Exp $
* Principal Author: Brian Wellington * Principal Author: Brian Wellington
*/ */
...@@ -93,13 +93,13 @@ dns_tsig_key_create(dns_name_t *name, dns_name_t *algorithm, ...@@ -93,13 +93,13 @@ dns_tsig_key_create(dns_name_t *name, dns_name_t *algorithm,
ret = dns_name_dup(name, mctx, &tkey->name); ret = dns_name_dup(name, mctx, &tkey->name);
if (ret != ISC_R_SUCCESS) if (ret != ISC_R_SUCCESS)
goto cleanup_key; goto cleanup_key;
dns_name_downcase(&tkey->name); dns_name_downcase(&tkey->name, &tkey->name, NULL);
dns_name_init(&tkey->algorithm, NULL); dns_name_init(&tkey->algorithm, NULL);
ret = dns_name_dup(algorithm, mctx, &tkey->algorithm); ret = dns_name_dup(algorithm, mctx, &tkey->algorithm);
if (ret != ISC_R_SUCCESS) if (ret != ISC_R_SUCCESS)
goto cleanup_name; goto cleanup_name;
dns_name_downcase(&tkey->algorithm); dns_name_downcase(&tkey->algorithm, &tkey->algorithm, NULL);
isc_buffer_init(&nameb, namestr, sizeof(namestr), ISC_BUFFERTYPE_TEXT); isc_buffer_init(&nameb, namestr, sizeof(namestr), ISC_BUFFERTYPE_TEXT);
ret = dns_name_totext(name, ISC_FALSE, &nameb); ret = dns_name_totext(name, ISC_FALSE, &nameb);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment