summaryrefslogtreecommitdiffstats
path: root/ncr.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-18 05:51:32 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 23:59:46 +0200
commitf9fa90899a4691ce01244593e2902111fe9bf2c6 (patch)
tree39d1ba8c29b4df7323016dc171692225cc1f847f /ncr.h
parenteef7de54be0cd38abb689de7b0a749154b04c694 (diff)
downloadkernel-crypto-f9fa90899a4691ce01244593e2902111fe9bf2c6.tar.gz
kernel-crypto-f9fa90899a4691ce01244593e2902111fe9bf2c6.tar.xz
kernel-crypto-f9fa90899a4691ce01244593e2902111fe9bf2c6.zip
Replace ncr_derive_t by NLA_NUL_STRING
Diffstat (limited to 'ncr.h')
-rw-r--r--ncr.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ncr.h b/ncr.h
index 3dae3f38eb8..7f8fba40740 100644
--- a/ncr.h
+++ b/ncr.h
@@ -31,7 +31,7 @@
enum {
NCR_ATTR_UNSPEC, /* 0 is special in lib/nlattr.c. */
NCR_ATTR_ALGORITHM, /* NLA_NUL_STRING */
- NCR_ATTR_DERIVATION_ALGORITHM, /* NLA_U32 - ncr_algorithm_t */
+ NCR_ATTR_DERIVATION_ALGORITHM, /* NLA_NUL_STRING - NCR_DERIVE_* */
NCR_ATTR_SIGNATURE_HASH_ALGORITHM, /* NLA_NUL_STRING */
NCR_ATTR_WRAPPING_ALGORITHM, /* NLA_U32 - ncr_wrap_algorithm_t */
NCR_ATTR_UPDATE_INPUT_DATA, /* NLA_BINARY - ncr_session_input_data */
@@ -120,9 +120,7 @@ typedef enum {
RSA_PKCS1_PSS, /* for signatures only */
} ncr_rsa_type_t;
-typedef enum {
- NCR_DERIVE_DH=1,
-} ncr_derive_t;
+#define NCR_DERIVE_DH "dh"
struct ncr_key_derive {