Merge pull request #4226 from krisztian-kovacs-balabit/open-x509-keyfile-readonly
libfreerdp/core/certificate: open key file for reading only
This commit is contained in:
commit
dcafd4dacd
@ -753,7 +753,7 @@ rdpRsaKey* key_new(const char* keyfile)
|
||||
char* buffer = NULL;
|
||||
rdpRsaKey* key = NULL;
|
||||
|
||||
fp = fopen(keyfile, "r+b");
|
||||
fp = fopen(keyfile, "rb");
|
||||
if (!fp)
|
||||
{
|
||||
WLog_ERR(TAG, "unable to open RSA key file %s: %s.", keyfile, strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user