diff options
author | Sansar Choinyambuu <schoinya@hsr.ch> | 2011-11-23 15:11:53 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-11-28 21:22:51 +0100 |
commit | 8f1a6d50b4cf4ba746fd78c588f28f37d63059a4 (patch) | |
tree | 96bac0fc57ac9b6b565e305bb8045cf90a927bec /src | |
parent | 51b000527737aef208260e34776a846cae30210a (diff) | |
download | strongswan-8f1a6d50b4cf4ba746fd78c588f28f37d63059a4.tar.bz2 strongswan-8f1a6d50b4cf4ba746fd78c588f28f37d63059a4.tar.xz |
Added enum names for measurement algorithms
Diffstat (limited to 'src')
-rw-r--r-- | src/libpts/pts/pts_meas_algo.c | 7 | ||||
-rw-r--r-- | src/libpts/pts/pts_meas_algo.h | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/libpts/pts/pts_meas_algo.c b/src/libpts/pts/pts_meas_algo.c index cf5c72431..e8f3aa378 100644 --- a/src/libpts/pts/pts_meas_algo.c +++ b/src/libpts/pts/pts_meas_algo.c @@ -17,6 +17,13 @@ #include <debug.h> +ENUM(pts_meas_algorithm_names, PTS_MEAS_ALGO_NONE, PTS_MEAS_ALGO_SHA384, + "None", + "SHA1", + "SHA256", + "SHA384" +); + /** * Described in header. */ diff --git a/src/libpts/pts/pts_meas_algo.h b/src/libpts/pts/pts_meas_algo.h index 90fa7ef60..bb34a6ac3 100644 --- a/src/libpts/pts/pts_meas_algo.h +++ b/src/libpts/pts/pts_meas_algo.h @@ -37,6 +37,11 @@ enum pts_meas_algorithms_t { }; /** + * enum name for pts_meas_algorithms_t. + */ +extern enum_name_t *pts_meas_algorithm_names; + +/** * Diffie-Hellman Hash Algorithm Values * see section 3.8.5 of PTS Protocol: Binding to TNC IF-M Specification * |