Merge pull request #3567 from mfleisz/file_mode_fix
crypto: Remove unneeded update (+) flag from file open mode
This commit is contained in:
commit
20344f28a5
@ -863,7 +863,7 @@ BOOL tls_accept(rdpTls* tls, BIO* underlying, rdpSettings* settings)
|
|||||||
|
|
||||||
if (settings->PrivateKeyFile)
|
if (settings->PrivateKeyFile)
|
||||||
{
|
{
|
||||||
bio = BIO_new_file(settings->PrivateKeyFile, "rb+");
|
bio = BIO_new_file(settings->PrivateKeyFile, "rb");
|
||||||
|
|
||||||
if (!bio)
|
if (!bio)
|
||||||
{
|
{
|
||||||
@ -907,7 +907,7 @@ BOOL tls_accept(rdpTls* tls, BIO* underlying, rdpSettings* settings)
|
|||||||
|
|
||||||
if (settings->CertificateFile)
|
if (settings->CertificateFile)
|
||||||
{
|
{
|
||||||
bio = BIO_new_file(settings->CertificateFile, "rb+");
|
bio = BIO_new_file(settings->CertificateFile, "rb");
|
||||||
|
|
||||||
if (!bio)
|
if (!bio)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user