aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Security.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using excessive namespacesPierre Ossman2024-08-131-3/+2
| | | | | Try to be more clear about what things are external to the current context, and what aren't.
* Simplify code using range-based for loopsPierre Ossman2024-06-241-13/+10
| | | | | | | | | These are often more readable as they avoid a lot of the boilerplate of iterating over fixed arrays or STL containers. Note that this change is very conservative to avoid noise in "git blame". Only loops where this is a clear improvement have been converted.
* Prefer std::find() over manual searchPierre Ossman2024-06-241-10/+8
| | | | | Let's avoid reimplementing something basic that's available in the standard library. It also makes the code easier to read.
* Remove unnecessary headers from Security.cxxPierre Ossman2024-06-241-18/+1
|
* Remove "str" prefix from string helpersPierre Ossman2023-02-041-1/+1
| | | | | This matches the naming in STL, which is what we are mostly mimicing now that we are using std::string for these functions.
* Make strSplit() simpler and saferPierre Ossman2023-02-041-4/+4
| | | | | | | Get rid of all the magical re-allocation and shuffling and instead just return a new set of strings that is fully splitted. Will consume a bit more memory, but is a lot safer to use as there is less confusion about ownership of memory.
* Use StringParameters directlyPierre Ossman2023-02-041-6/+1
| | | | | We don't need to make extra copies of the string in most cases, so let's simplify the code and access the string directly when we can.
* Use stdint typesPierre Ossman2023-02-011-16/+16
| | | | | Avoid having our own custom stuff and instead use the modern, standard types, for familiarity.
* Add client-side support for the MSLogonII security type.Dinglan Peng2022-12-271-0/+2
|
* Add client-side support for the DH security type.Dinglan Peng2022-12-271-0/+2
|
* Add support for RSA-AES security typespdlan2022-09-011-0/+4
|
* Utilize system-wide crypto policiesJan Grulich2021-07-141-1/+1
|
* Add workaround for Vino's VeNCrypt implementationPierre Ossman2015-12-291-1/+12
|
* Add parameter to override GnuTLS priorityPierre Ossman2015-01-291-0/+6
|
* Remove a lot of platform compatibilty stuffPierre Ossman2014-07-071-3/+0
| | | | It's either not used, or no longer relevant.
* Use the correct matching free operation. Patch by Matthieu Lochegnies.Pierre Ossman2011-11-091-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4786 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add a default constructor so that you can create empty Security objects.Pierre Ossman2011-05-161-0/+4
| | | | | | | Useful when you just want to use the string encoder. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4418 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make the VeNCrypt security type implicitDRC2011-02-211-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4301 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Add Security::ToString methodAdam Tkac2011-02-011-0/+24
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4245 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Move Get{C,S}Security from Security class to separate classes.Adam Tkac2010-10-011-100/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4156 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement *Plain security types on the server side and useAdam Tkac2010-09-021-0/+6
| | | | | | | PAM for credential validation on UNIX. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4128 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement *Plain types on the client side.Adam Tkac2010-09-021-1/+9
| | | | | | | Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4127 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Set default security types as follows:Adam Tkac2010-08-121-2/+12
| | | | | | | | | | | | | 1. gnutls support is compiled in: - server: VeNCrypt,TLSVnc,VncAuth - client: VeNCrypt,X509Vnc,TLSVnc,X509None,TLSNone,VncAuth,None 2. gnutls support is disabled: - server: VncAuth - client: VncAuth,None git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4123 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Extend Security class to allow different default sectypes for ↵Adam Tkac2010-08-121-4/+18
| | | | | | server/viewer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4122 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Return also "standard" security types (except VeNCrypt type) asAdam Tkac2010-08-121-1/+1
| | | | | | | VeNCrypt subtypes. This is same behavior as original VeNCrypt implementation. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4121 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Rename CSecurityTLSBase class to CSecurityTLS.Adam Tkac2010-07-211-5/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4110 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Merge CSecurityTLS and CSecurityX509 classes into ↵Adam Tkac2010-07-211-6/+5
| | | | | | CSecurityTLSBase class. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4109 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Rename SSecurityTLSBase source/class to SSecurityTLS.Adam Tkac2010-07-211-5/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4108 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Cleanup] Merge SSecurityTLS and SSecurityX509 classes into SSecurityTLSBase ↵Adam Tkac2010-07-211-6/+5
| | | | | | class. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4107 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement VeNCrypt X509 subtypes on the client side.Adam Tkac2010-07-211-0/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4106 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement X509 VeNCrypt subtypes on the server side.Adam Tkac2010-07-211-0/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4105 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Create VeNCrypt security types in Security class.Adam Tkac2010-07-201-3/+17
| | | | | | | Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4103 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Pass Security instance to {C,S}SecurityVeNCrypt.Adam Tkac2010-07-201-2/+2
| | | | | | | Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4101 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Minor fixes in previous commit.Adam Tkac2010-07-201-6/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4099 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Support VeNCrypt Security types in standard security type parser.Adam Tkac2010-07-201-0/+22
| | | | | | | Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4098 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Use U32 as internal SecurityType type.Adam Tkac2010-07-201-11/+35
| | | | | | | Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4097 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Compile VeNCrypt extension only when gnutls is enabled and available.Adam Tkac2010-04-281-0/+12
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4049 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement VeNCrypt type support on client side. Currently onlyAdam Tkac2010-04-231-5/+9
| | | | | | | TLSNone and TLSVnc VeNCrypt subtypes are implemented. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4046 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement VeNCrypt security type on server side. Currently onlyAdam Tkac2010-04-231-1/+5
| | | | | | | TLSNone and TLSVnc VeNCrypt subtypes are implemented. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4045 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Use enhanced Security class by both UNIX and Windows viewers.Adam Tkac2010-04-231-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4042 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Enhance Security class to be usable by viewer.Adam Tkac2010-04-231-4/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4041 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Replace SSecurityFactoryStandard class by simplier Security class.Adam Tkac2010-04-231-2/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4039 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement Security class. This class will be used to createAdam Tkac2010-04-231-0/+61
| | | | | | | CSecurity/SSecurity objects for authentication purposes. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4038 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Include Security.h instead of former secTypes.h in Security.cxx.Adam Tkac2010-04-231-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4037 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove unneeded secTypeEncrypts() function.Adam Tkac2010-04-231-11/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4035 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Define security types as rdr::U8 values.Adam Tkac2010-04-231-6/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4034 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Rename common/rfb/secTypes.{h,cxx} to common/rfb/Security.{h,cxx}.Adam Tkac2010-04-231-0/+73
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4033 3789f03b-4d11-0410-bbf8-ca57d06f2519