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-23 20:01:58 +0200
commitb777f05372cd72112c10344630e8b1dc7918aa35 (patch)
treea259db660b39f4b36a96ef9bc50b1aa88835d956 /userspace/ncrypto_key.c
parent377e8e5dca01fa1a572ca1a84aee817279a86f9c (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;
}