blob: 9ccfb56b7dd1f9aa0346e8907e788eaddbd2c753 [file] [log] [blame]
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +00001/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 */
18//
19// secTypes.h - constants for the various security types.
20//
21
22#ifndef __RFB_SECTYPES_H__
23#define __RFB_SECTYPES_H__
24
Adam Tkac94d88c12010-04-23 13:59:52 +000025#include <rdr/types.h>
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000026#include <list>
27
28namespace rfb {
Adam Tkac94d88c12010-04-23 13:59:52 +000029 const rdr::U8 secTypeInvalid = 0;
30 const rdr::U8 secTypeNone = 1;
31 const rdr::U8 secTypeVncAuth = 2;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000032
Adam Tkac94d88c12010-04-23 13:59:52 +000033 const rdr::U8 secTypeRA2 = 5;
34 const rdr::U8 secTypeRA2ne = 6;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000035
Adam Tkac94d88c12010-04-23 13:59:52 +000036 const rdr::U8 secTypeSSPI = 7;
37 const rdr::U8 secTypeSSPIne = 8;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000038
Adam Tkac94d88c12010-04-23 13:59:52 +000039 const rdr::U8 secTypeTight = 16;
40 const rdr::U8 secTypeUltra = 17;
41 const rdr::U8 secTypeTLS = 18;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000042
43 // result types
44
Adam Tkac94d88c12010-04-23 13:59:52 +000045 const rdr::U32 secResultOK = 0;
46 const rdr::U32 secResultFailed = 1;
47 const rdr::U32 secResultTooMany = 2; // deprecated
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000048
Adam Tkac94d88c12010-04-23 13:59:52 +000049 const char* secTypeName(rdr::U8 num);
50 rdr::U8 secTypeNum(const char* name);
Adam Tkac94d88c12010-04-23 13:59:52 +000051 std::list<rdr::U8> parseSecTypes(const char* types);
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000052}
53
54#endif