選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SSecurityVeNCrypt.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2005-2006 Martin Koegler
  3. * Copyright (C) 2006 OCCAM Financial Technology
  4. * Copyright (C) 2010 TigerVNC Team
  5. *
  6. * This is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This software is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this software; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  19. * USA.
  20. */
  21. //
  22. // SSecurityVeNCrypt
  23. //
  24. #ifndef __SSECURITYVENCRYPT_H__
  25. #define __SSECURITYVENCRYPT_H__
  26. #include <rfb/SSecurityStack.h>
  27. #include <rfb/SConnection.h>
  28. namespace rfb {
  29. class SSecurityVeNCrypt : public SSecurity {
  30. public:
  31. SSecurityVeNCrypt(SConnection* sc, SecurityServer *sec);
  32. ~SSecurityVeNCrypt();
  33. virtual bool processMsg();
  34. virtual int getType() const { return chosenType; }
  35. virtual const char* getUserName() const;
  36. virtual SConnection::AccessRights getAccessRights() const;
  37. protected:
  38. SSecurity *ssecurity;
  39. SecurityServer *security;
  40. bool haveSentVersion, haveRecvdMajorVersion, haveRecvdMinorVersion;
  41. bool haveSentTypes, haveChosenType;
  42. rdr::U8 majorVersion, minorVersion, numTypes;
  43. rdr::U32 *subTypes, chosenType;
  44. };
  45. }
  46. #endif