diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-26 16:08:47 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-26 16:08:47 +0200 |
commit | 1f30d575e5b413e522d6b3e95d3e348df9e9c69e (patch) | |
tree | 39a3f5c118e75d45ce587a3c4e9486eef511cfd0 /ncr-key.c | |
parent | 3b521fbc223cafd360def97841544d34d7396dc2 (diff) | |
download | cryptodev-linux-1f30d575e5b413e522d6b3e95d3e348df9e9c69e.tar.gz cryptodev-linux-1f30d575e5b413e522d6b3e95d3e348df9e9c69e.tar.xz cryptodev-linux-1f30d575e5b413e522d6b3e95d3e348df9e9c69e.zip |
Unwrapping keys are restricted the same way as wrapping keys.
Diffstat (limited to 'ncr-key.c')
-rw-r--r-- | ncr-key.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |