31 Commits

Author SHA1 Message Date
matt335672 463e500f77 Security improvements
1) In FIPS mode, Classic RDP security is not allowed at all.
2) In FIPS mode xrdp-keygen creates an empty file
3) Documentation wording improved around the security_level setting
4) Logging improved around the security negotiation
5) Warnings now generated if Classic RDP security is negotiated
2025-05-06 11:30:36 +01:00
Koichiro Iwao 981ceadd1f keygen: replace hardcoded path with sysconf(sub)dir 2024-12-28 22:21:14 +09:00
Daniel Richard G 1c0c923ad1 Split g_file_open() into _ro() and _rw() variants
Rename g_file_open() to g_file_open_rw(), and add a new g_file_open_ro()
call that wraps the common g_file_open_ex(file, 1, 0, 0, 0) idiom. This
will make the file access mode more explicit in the code.

Change all calls to g_file_open() to the _ro() or _rw() variant as
appropriate, and replace g_file_open_ex(file, 1, 0, 0, 0) with the _ro()
call.

Lastly, add tests for the two new calls to test_os_calls.c (code
courteously provided by matt335672).
2023-05-15 17:38:31 -04:00
matt335672 0a1a8f40e5 Moved a lot of string funcs to string_calls module 2020-12-22 11:57:24 +00:00
Pavel Roskin 6ed4c969f4 Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
Pavel Roskin b2d3dcf169 Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
Pavel Roskin 35d7a0b34f Constify all input string arguments in keygen.c 2017-02-02 21:39:10 -08:00
Pavel Roskin aeeb3d2c2e Fix warnings detected by -Wwrite-strings 2016-07-08 04:29:42 +00:00
Pavel Roskin bd0b1acf79 Fix format warnings caused by g_writeln("") 2016-04-21 21:21:15 -07:00
Jay Sorg 5af0d06d1e keygen: default 2048 bit RSA key 2016-02-24 14:10:46 -08:00
Laxmikant Rashinkar 0915d33d70 coverity: dead code 2014-07-26 15:06:35 -07:00
Laxmikant Rashinkar 3bb31876e7 coverity: fixed resolution leak issues 2014-07-19 11:56:00 -07:00
Jay Sorg bd810c0695 support 2048 bit RSA keys 2014-06-18 22:02:58 -07:00
Jay Sorg 293c404a12 keygen: add 2048 bit key option 2014-06-06 00:33:08 -07:00
Jay Sorg 96e1811808 keygen: started adding bits for bigger rsa key size 2014-03-28 23:55:25 -07:00
Laxmikant Rashinkar 1123323fda o moved from GNU General Public License to Apache License, Version 2.0
o applied new coding standards to all .c files
o moved some files around
2012-09-19 20:51:34 -07:00
Itamar Reis Peixoto c1d27665df remove execute permission from keygen.c 2010-11-18 01:27:25 -02:00
jsorg71 d70d80a33d update copyright year 2010-07-04 07:20:56 +00:00
jsorg71 1c3e74606a work on keygen to install and run on install 2008-05-08 01:43:31 +00:00
jsorg71 cc464bbd04 added comments and changed executable name to xrdp-keygen 2008-04-15 05:37:30 +00:00
jsorg71 c4038f3834 changed unsigned char to tui8 changed a print messsage 2008-04-15 02:30:23 +00:00
jsorg71 38b789e81f update copyright year 2008-01-30 07:30:10 +00:00
jsorg71 bc9462fefe moved ssl calls to common 2007-06-16 04:52:19 +00:00
jsorg71 48153b6244 completed sign key and some cleanups 2007-06-09 23:08:16 +00:00
jsorg71 48f09546a7 added test function 2007-06-09 22:21:39 +00:00
jsorg71 5f4dacbaad added ppk 2007-06-09 06:25:34 +00:00
jsorg71 32cee722e1 reverse the big number bytes 2007-06-09 00:26:02 +00:00
jsorg71 a6d3edf2a2 completed save function 2007-06-08 18:20:09 +00:00
jsorg71 a5fd28f4f5 added dumby sign and save function 2007-06-08 07:31:45 +00:00
jsorg71 023a32252d warnings 2007-06-08 06:54:46 +00:00
jsorg71 ddba72271f added keygen utility 2007-06-08 01:11:35 +00:00