[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r1725 - trunk/OpenDNSSEC/libhsm/src

Jakob Schlyter jakob at kirei.se
Fri Aug 28 10:07:22 CEST 2009


Author: jakob
Date: 2009-08-28 10:07:22 +0200 (Fri, 28 Aug 2009)
New Revision: 1725

Modified:
   trunk/OpenDNSSEC/libhsm/src/libhsm.c
Log:
set error if token is not attached

Modified: trunk/OpenDNSSEC/libhsm/src/libhsm.c
===================================================================
--- trunk/OpenDNSSEC/libhsm/src/libhsm.c	2009-08-28 08:01:10 UTC (rev 1724)
+++ trunk/OpenDNSSEC/libhsm/src/libhsm.c	2009-08-28 08:07:22 UTC (rev 1725)
@@ -2365,6 +2365,10 @@
                 return 1;
         }
     }
+    
+    hsm_ctx_set_error(ctx, HSM_REPOSITORY_NOT_FOUND,
+                    "hsm_token_attached()",
+                    "Can't find repository: %s", repository);
     return 0;
 }
 




More information about the Opendnssec-commits mailing list