summaryrefslogtreecommitdiffstats
path: root/userspace/ncrypto_key.c
diff options
context:
space:
mode:
authorJan Chadima <jchadima@redhat.com>2010-08-05 16:17:26 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 20:58:30 +0200
commit225e02302742657db0d5154e1fbfd558698e557c (patch)
treea03562da813f4243d2abfa5d34b24a3e724b250b /userspace/ncrypto_key.c
parenta535f6af562f85815d394c34a00f68c79f38eab8 (diff)
Userspace library updates from Jan
Diffstat (limited to 'userspace/ncrypto_key.c')
-rw-r--r--userspace/ncrypto_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/userspace/ncrypto_key.c b/userspace/ncrypto_key.c
index ca4cfeb..b5f2c92 100644
--- a/userspace/ncrypto_key.c
+++ b/userspace/ncrypto_key.c
@@ -243,7 +243,7 @@ ncr_key_wrap(ncr_key_t key, ncr_wrap_algorithm_t algorithm, ncr_key_params_t par
struct ncr_key_wrap_st io;
memset(&io, 0, sizeof(io));
- if (!key || !keytowrap || !idata || !idata_size || (algorithm == NCR_ALG_NONE)) {
+ if (!key || !keytowrap || !idata || !idata_size) {
errno = EINVAL;
return -1;
}
@@ -273,7 +273,7 @@ ncr_key_unwrap(ncr_key_t key, ncr_wrap_algorithm_t algorithm, ncr_key_params_t p
struct ncr_key_wrap_st io;
memset(&io, 0, sizeof(io));
- if (!key || !keytowrap || !idata || !idata_size || (algorithm == NCR_ALG_NONE)) {
+ if (!key || !keytowrap || !idata || !idata_size) {
errno = EINVAL;
return -1;
}