aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libpts/pts/pts_meas_algo.c7
-rw-r--r--src/libpts/pts/pts_meas_algo.h5
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
*