Added enum names for measurement algorithms
authorSansar Choinyambuu <schoinya@hsr.ch>
Wed, 23 Nov 2011 14:11:53 +0000 (15:11 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 28 Nov 2011 20:22:51 +0000 (21:22 +0100)
src/libpts/pts/pts_meas_algo.c
src/libpts/pts/pts_meas_algo.h

index cf5c724..e8f3aa3 100644 (file)
 
 #include <debug.h>
 
+ENUM(pts_meas_algorithm_names, PTS_MEAS_ALGO_NONE, PTS_MEAS_ALGO_SHA384,
+       "None",
+       "SHA1",
+       "SHA256",
+       "SHA384"
+);
+
 /**
  * Described in header.
  */
index 90fa7ef..bb34a6a 100644 (file)
@@ -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
  *