blob: a16003f0bd5325b6a86516eb26bf39c317c7476a [file] [log] [blame]
Adam Tkac5522d612010-08-11 15:28:01 +00001/* Copyright (C) 2005 Martin Koegler
2 * Copyright (C) 2006 OCCAM Financial Technology
3 * Copyright (C) 2010 TigerVNC Team
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18 * USA.
19 */
20#ifndef __RFB_CSECURITYSTACK_H__
21#define __RFB_CSECURITYSTACK_H__
22
23#include <rfb/CSecurity.h>
24#include <rfb/Security.h>
25
26namespace rfb {
27
28 class CSecurityStack : public CSecurity {
29 public:
30 CSecurityStack(int Type, const char *Name, CSecurity* s0 = 0, CSecurity* s1 = 0);
31 ~CSecurityStack();
32 virtual bool processMsg(CConnection* cc);
33 virtual int getType() const {return type;};
34 virtual const char* description() const {return name;}
Pierre Ossmandaf3d882017-09-01 11:14:35 +020035 virtual bool isSecure() const;
Adam Tkac5522d612010-08-11 15:28:01 +000036 protected:
37 int state;
38 CSecurity* state0;
39 CSecurity* state1;
40 const char* name;
41 int type;
42 };
43}
44#endif