X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/c65df27983057ec76ed0e72bb370f9a5ae7dad28..298182ad446aaced14dea7ed0e7c968946787288:/cookie.c diff --git a/cookie.c b/cookie.c index 9b32389..c988541 100644 --- 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)); }