From 8f1a6d50b4cf4ba746fd78c588f28f37d63059a4 Mon Sep 17 00:00:00 2001 From: Sansar Choinyambuu Date: Wed, 23 Nov 2011 15:11:53 +0100 Subject: [PATCH] Added enum names for measurement algorithms --- src/libpts/pts/pts_meas_algo.c | 7 +++++++ src/libpts/pts/pts_meas_algo.h | 5 +++++ 2 files changed, 12 insertions(+) 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 +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 @@ -36,6 +36,11 @@ enum pts_meas_algorithms_t { PTS_MEAS_ALGO_SHA384 = (1<<13), }; +/** + * 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