Major and incompatible overhaul of key_data representation. Fix leaks.
[u/mdw/catacomb] / cookie.c
index 9b32389..c988541 100644 (file)
--- a/cookie.c
+++ b/cookie.c
@@ -188,9 +188,9 @@ static gmac *getmac(key *k, const char *app)
 
   /* --- Unlock the key --- */
 
-  kp.kd.e = KENC_BINARY;
+  kp.e = KENC_BINARY;
   kp.p = &kb;
-  if ((e = key_unpack(&kp, &k->k, &t)) != 0) {
+  if ((e = key_unpack(&kp, k->k, &t)) != 0) {
     die(EXIT_FAILURE, "error unpacking key `%s': %s",
        t.buf, key_strerror(e));
   }