aboutsummaryrefslogtreecommitdiffstats
path: root/unix/vncpasswd/vncpasswd.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Capitalize even more logging and exceptionsPierre Ossman2024-11-221-1/+1
|
* Improve error messages for base directory creationPierre Ossman2024-08-291-2/+3
|
* Handle existing config directory in vncpasswdPierre Ossman2024-08-151-2/+4
| | | | This fixes commit a79c33d.
* Let pwquality check minimum lengthPierre Ossman2024-08-151-7/+10
| | | | | This is a policy decision, so let's not enforce something on our own if there is a system policy to rely on.
* Merge branch 'master' of https://github.com/prownd/tigervncPierre Ossman2024-08-151-0/+47
|\
| * Limit the maximum length of a password to 8 charactershanjinpeng2024-08-141-0/+5
| | | | | | | | | | Password should not be greater than 8 characters. Because only 8 valid characters are used.
| * vncpasswd add password complexity rule check to enhance securityhanjinpeng2024-08-141-0/+42
| | | | | | | | | | Use the library pwquality to check password complexity and improve security. Additionally, optional enable support is also set in CMake.
* | Use nullptr in all C++ codePierre Ossman2024-06-241-6/+6
|/ | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Create common recursive mkdir()Pierre Ossman2024-05-301-9/+4
| | | | | | | Avoid duplicating this complexity in too many places. At the same time make the interface more identical to regular mkdir(), for familiarity.
* Implement XDG Base Directory paths, deprecate ~/.vnc902024-04-261-1/+10
|
* Begin work on XDGBDS compliance and overrideable configs902024-03-151-5/+5
|
* Use std::string instead of CharArrayPierre Ossman2023-02-041-31/+26
| | | | | Let's use a more common type instead of something homegrown. Should be more familiar to new developers.
* Use fixed size character bufferPierre Ossman2023-02-041-11/+12
| | | | | We know the needed space here, so let's keep it simple with a constant size string buffer.
* Remove trailing slash from getvnchomedir()Pierre Ossman2023-02-041-2/+2
| | | | | It should return a path to the directory itself, just like its sister function getuserhomedir().
* Namespace directory functionsPierre Ossman2023-02-041-1/+1
| | | | All library functions should be in a proper namespace.
* Return static char buffer from some methodsPierre Ossman2023-02-041-3/+2
| | | | | | | | | This mimics how some system functions (like inet_ntop()) work, and avoids complexity around ownership of the returned string buffer. The downside is that the string must be consumed directly as it will be overwritten on the next call, but that is not an issue with the current usage.
* Be consistent in including config.hPierre Ossman2021-12-301-0/+5
| | | | | | The generally recommended way is to include it from source files, not headers. We had a mix of both. Let's try to be consistent and follow the recommended way.
* Let user know that a view-only password is not usedJan Grulich2021-05-251-0/+2
|
* Fix memory leaksJan Grulich2018-11-201-1/+14
|
* Handle view only password in vncpasswd filter modePierre Ossman2018-05-071-5/+15
|
* vncpasswd: Ask for read only password.Michal Srb2014-11-101-24/+44
| | | | | Ask for optional second password that is used for read only access. Save it after the main password. This is same format as tightvnc uses.
* [Development] Rename function "gethomedir" to "getvnchomedir" and rewrite it inAdam Tkac2011-02-071-6/+5
| | | | | | | | | platform-intependent manner. Thanks to Guillaume Destuynder. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4252 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Use gethomedir() function in vncpasswd and vncviewer.Adam Tkac2010-10-291-5/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4177 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Reuse the getpasswd() function in filter mode so that the new line is ↵DRC2010-07-091-9/+10
| | | | | | stripped from the input git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4086 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add a filter mode option to vncpasswdDRC2010-07-091-1/+18
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4085 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+138
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@590 3789f03b-4d11-0410-bbf8-ca57d06f2519