]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
nsupdate needed KEY for SIG(0), not DNSKEY.
authorRob Austein <sra@isc.org>
Thu, 17 Jun 2004 01:03:00 +0000 (01:03 +0000)
committerRob Austein <sra@isc.org>
Thu, 17 Jun 2004 01:03:00 +0000 (01:03 +0000)
bin/nsupdate/nsupdate.c

index 53777b8dfb5b338509906ed13cda6dba70578c68..5e7c13b0c5edbabb693e291cb11f0e0b1d6e3d9d 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: nsupdate.c,v 1.132 2004/05/12 04:48:23 marka Exp $ */
+/* $Id: nsupdate.c,v 1.133 2004/06/17 01:03:00 sra Exp $ */
 
 #include <config.h>
 
@@ -346,7 +346,8 @@ setup_keyfile(void) {
 
        debug("Creating key...");
 
-       result = dst_key_fromnamedfile(keyfile, DST_TYPE_PRIVATE, mctx,
+       result = dst_key_fromnamedfile(keyfile,
+                                      DST_TYPE_PRIVATE | DST_TYPE_KEY, mctx,
                                       &dstkey);
        if (result != ISC_R_SUCCESS) {
                fprintf(stderr, "could not read key from %s: %s\n",