|
@@ -71,6 +71,9 @@ static void request_key_auth_describe(const struct key *key,
|
|
|
{
|
|
{
|
|
|
struct request_key_auth *rka = get_request_key_auth(key);
|
|
struct request_key_auth *rka = get_request_key_auth(key);
|
|
|
|
|
|
|
|
|
|
+ if (!rka)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
seq_puts(m, "key:");
|
|
seq_puts(m, "key:");
|
|
|
seq_puts(m, key->description);
|
|
seq_puts(m, key->description);
|
|
|
if (key_is_positive(key))
|
|
if (key_is_positive(key))
|
|
@@ -88,6 +91,9 @@ static long request_key_auth_read(const struct key *key,
|
|
|
size_t datalen;
|
|
size_t datalen;
|
|
|
long ret;
|
|
long ret;
|
|
|
|
|
|
|
|
|
|
+ if (!rka)
|
|
|
|
|
+ return -EKEYREVOKED;
|
|
|
|
|
+
|
|
|
datalen = rka->callout_len;
|
|
datalen = rka->callout_len;
|
|
|
ret = datalen;
|
|
ret = datalen;
|
|
|
|
|
|