summaryrefslogtreecommitdiffstats
path: root/common/rfb/Security.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-04-23 13:59:52 +0000
committerAdam Tkac <atkac@redhat.com>2010-04-23 13:59:52 +0000
commit94d88c1799d6446c132a2ac7198601487d792099 (patch)
treea875eb50a160f77ffcbc2b27f3dd2b743368a2c5 /common/rfb/Security.h
parent5a0caed91c3879413b23d6906341856d1cc31dc1 (diff)
downloadtigervnc-94d88c1799d6446c132a2ac7198601487d792099.tar.gz
tigervnc-94d88c1799d6446c132a2ac7198601487d792099.zip
[Development] Define security types as rdr::U8 values.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4034 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/Security.h')
-rw-r--r--common/rfb/Security.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/common/rfb/Security.h b/common/rfb/Security.h
index 3cf783bd..d890d560 100644
--- a/common/rfb/Security.h
+++ b/common/rfb/Security.h
@@ -22,33 +22,34 @@
#ifndef __RFB_SECTYPES_H__
#define __RFB_SECTYPES_H__
+#include <rdr/types.h>
#include <list>
namespace rfb {
- const int secTypeInvalid = 0;
- const int secTypeNone = 1;
- const int secTypeVncAuth = 2;
+ const rdr::U8 secTypeInvalid = 0;
+ const rdr::U8 secTypeNone = 1;
+ const rdr::U8 secTypeVncAuth = 2;
- const int secTypeRA2 = 5;
- const int secTypeRA2ne = 6;
+ const rdr::U8 secTypeRA2 = 5;
+ const rdr::U8 secTypeRA2ne = 6;
- const int secTypeSSPI = 7;
- const int secTypeSSPIne = 8;
+ const rdr::U8 secTypeSSPI = 7;
+ const rdr::U8 secTypeSSPIne = 8;
- const int secTypeTight = 16;
- const int secTypeUltra = 17;
- const int secTypeTLS = 18;
+ const rdr::U8 secTypeTight = 16;
+ const rdr::U8 secTypeUltra = 17;
+ const rdr::U8 secTypeTLS = 18;
// result types
- const int secResultOK = 0;
- const int secResultFailed = 1;
- const int secResultTooMany = 2; // deprecated
+ const rdr::U32 secResultOK = 0;
+ const rdr::U32 secResultFailed = 1;
+ const rdr::U32 secResultTooMany = 2; // deprecated
- const char* secTypeName(int num);
- int secTypeNum(const char* name);
- bool secTypeEncrypts(int num);
- std::list<int> parseSecTypes(const char* types);
+ const char* secTypeName(rdr::U8 num);
+ rdr::U8 secTypeNum(const char* name);
+ bool secTypeEncrypts(rdr::U8 num);
+ std::list<rdr::U8> parseSecTypes(const char* types);
}
#endif