[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3789 - trunk/OpenDNSSEC/signer/src/signer

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Aug 26 09:49:57 CEST 2010


Author: matthijs
Date: 2010-08-26 09:49:57 +0200 (Thu, 26 Aug 2010)
New Revision: 3789

Modified:
   trunk/OpenDNSSEC/signer/src/signer/hsm.c
Log:
we can calc keytag here too

Modified: trunk/OpenDNSSEC/signer/src/signer/hsm.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/hsm.c	2010-08-26 06:19:58 UTC (rev 3788)
+++ trunk/OpenDNSSEC/signer/src/signer/hsm.c	2010-08-26 07:49:57 UTC (rev 3789)
@@ -76,6 +76,7 @@
     if (!key_id->dnskey) {
         return 1;
     }
+    key_id->params->keytag = ldns_calc_keytag(key_id->dnskey);
     return 0;
 }
 
@@ -96,7 +97,6 @@
     se_log_assert(inception);
     se_log_assert(expiration);
 
-    key_id->params->keytag = ldns_calc_keytag(key_id->dnskey);
     key_id->params->inception = inception;
     key_id->params->expiration = expiration;
 




More information about the Opendnssec-commits mailing list