diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-05 18:05:11 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-05 18:05:11 +0200 |
commit | a2ba41e2ad3a7ec399e9216be81cc2e244f45dd9 (patch) | |
tree | fc7930e24fb14a86b9d705b68e95c0afdd134299 | |
parent | 67d0481e51b198cbad2b1d33389fd80e7a87dd46 (diff) | |
download | cryptodev-linux-a2ba41e2ad3a7ec399e9216be81cc2e244f45dd9.tar.gz cryptodev-linux-a2ba41e2ad3a7ec399e9216be81cc2e244f45dd9.tar.xz cryptodev-linux-a2ba41e2ad3a7ec399e9216be81cc2e244f45dd9.zip |
Change NCR_{KEY,SESSION}_INVALID
We can allocate ID 0 now. Note that this is an ABI change.
-rw-r--r-- | ncr.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ typedef enum { typedef int ncr_key_t; -#define NCR_KEY_INVALID (ncr_key_t)(0) +#define NCR_KEY_INVALID ((ncr_key_t)-1) #define NCR_KEY_FLAG_EXPORTABLE 1 #define NCR_KEY_FLAG_WRAPPABLE (1<<1) @@ -249,7 +249,7 @@ typedef enum { } ncr_crypto_op_t; typedef int ncr_session_t; -#define NCR_SESSION_INVALID (ncr_session_t)0 +#define NCR_SESSION_INVALID ((ncr_session_t)-1) /* input of CIOCGSESSION */ struct ncr_session_st { |