From 1f30d575e5b413e522d6b3e95d3e348df9e9c69e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 26 Aug 2010 16:08:47 +0200 Subject: Unwrapping keys are restricted the same way as wrapping keys. --- ncr-key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ncr-key.c') diff --git a/ncr-key.c b/ncr-key.c index f9fdcf4..295a58e 100644 --- a/ncr-key.c +++ b/ncr-key.c @@ -723,7 +723,7 @@ struct key_item_st* newkey = NULL; /* wrapping keys cannot be used for anything except wrapping. */ - if (key->flags & NCR_KEY_FLAG_WRAPPING) { + if (key->flags & NCR_KEY_FLAG_WRAPPING || key->flags & NCR_KEY_FLAG_UNWRAPPING) { err(); ret = -EINVAL; goto fail; -- cgit