From 0eb4a19c378805a548cd12ce1c37fd5163f45944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 28 Jan 2014 07:58:21 +0000 Subject: [PATCH] backward-compatible (non C++11) constants; refs #27 --- src/suisseid.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/suisseid.hxx b/src/suisseid.hxx index 0131c2b..7c79c00 100644 --- a/src/suisseid.hxx +++ b/src/suisseid.hxx @@ -27,6 +27,7 @@ //@{ /*! @defgroup suisseidlib SuisseID Library */ /*! @defgroup suisseidtypes SuisseID C++ Types and Auxiliary */ +/*! @defgroup suisseidconsts SuisseID C++ Constants */ /*! @defgroup suisseidexceptions SuisseID Exceptions */ //@} @@ -126,6 +127,13 @@ namespace suisseid { /// List of DER encoded binary certificates typedef std::vector Certificates; //@} + + /*! @addtogroup suisseidconsts */ + //@{ + const std::string NON_REP = "SwissSign_nonRep "; + const std::string DIG_SIG = "SwissSign_digSig "; + const std::string DATA_ENC = "SwissSign_dataEnc "; + //@} /*! @addtogroup suisseidlib */ //@{ @@ -304,10 +312,6 @@ namespace suisseid { private: - const std::string NON_REP = "SwissSign_nonRep "; - const std::string DIG_SIG = "SwissSign_digSig "; - const std::string DATA_ENC = "SwissSign_dataEnc "; - std::string _version; // version is cached unsigned int _minPinLen; // minimal PIN length is cached unsigned int _maxPinLen; // maximal PIN length is cached