diff options
Diffstat (limited to 'common/rfb/Security.h')
-rw-r--r-- | common/rfb/Security.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/common/rfb/Security.h b/common/rfb/Security.h index 430a1d89..40f54c36 100644 --- a/common/rfb/Security.h +++ b/common/rfb/Security.h @@ -24,11 +24,15 @@ #include <stdint.h> -#include <rfb/Configuration.h> - #include <list> +namespace core { + class EnumListParameter; + class StringParameter; +} + namespace rfb { + const uint8_t secTypeInvalid = 0; const uint8_t secTypeNone = 1; const uint8_t secTypeVncAuth = 2; @@ -76,7 +80,7 @@ namespace rfb { * Create Security instance. */ Security(); - Security(StringParameter &secTypes); + Security(core::EnumListParameter& secTypes); /* * Note about security types. @@ -105,7 +109,7 @@ namespace rfb { char *ToString(void); #ifdef HAVE_GNUTLS - static StringParameter GnuTLSPriority; + static core::StringParameter GnuTLSPriority; #endif private: @@ -114,7 +118,7 @@ namespace rfb { const char* secTypeName(uint32_t num); uint32_t secTypeNum(const char* name); - std::list<uint32_t> parseSecTypes(const char* types); + } #endif |