Adam Tkac | 5522d61 | 2010-08-11 15:28:01 +0000 | [diff] [blame] | 1 | /* 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_SSECURITYSTACK_H__ |
| 21 | #define __RFB_SSECURITYSTACK_H__ |
| 22 | |
| 23 | #include <rfb/SSecurity.h> |
| 24 | |
| 25 | namespace rfb { |
| 26 | |
| 27 | class SSecurityStack : public SSecurity { |
| 28 | public: |
Pierre Ossman | ad2b3c4 | 2018-09-21 15:31:11 +0200 | [diff] [blame^] | 29 | SSecurityStack(SConnection* sc, int Type, |
| 30 | SSecurity* s0 = NULL, SSecurity* s1 = NULL); |
Adam Tkac | 5522d61 | 2010-08-11 15:28:01 +0000 | [diff] [blame] | 31 | ~SSecurityStack(); |
Pierre Ossman | ad2b3c4 | 2018-09-21 15:31:11 +0200 | [diff] [blame^] | 32 | virtual bool processMsg(); |
Adam Tkac | 5522d61 | 2010-08-11 15:28:01 +0000 | [diff] [blame] | 33 | virtual int getType() const { return type; }; |
| 34 | virtual const char* getUserName() const; |
Pierre Ossman | 555815a | 2014-12-02 15:13:22 +0100 | [diff] [blame] | 35 | virtual SConnection::AccessRights getAccessRights() const; |
Adam Tkac | 5522d61 | 2010-08-11 15:28:01 +0000 | [diff] [blame] | 36 | protected: |
| 37 | short state; |
| 38 | SSecurity* state0; |
| 39 | SSecurity* state1; |
| 40 | int type; |
| 41 | }; |
| 42 | } |
| 43 | #endif |