Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
boinc
Commits
f25e4d78
Unverified
Commit
f25e4d78
authored
Dec 31, 2020
by
Christian Beer
Committed by
GitHub
Dec 31, 2020
Browse files
Merge pull request #3961 from neheb/patch-1
fix compilation without deprecated OpenSSL APIs
parents
b6e54cbc
64d78ad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/crypt.cpp
View file @
f25e4d78
...
...
@@ -37,6 +37,7 @@
#include
<openssl/engine.h>
#include
<openssl/err.h>
#include
<openssl/rsa.h>
#include
<openssl/bn.h>
#ifdef _USING_FCGI_
#include
"boinc_fcgi.h"
...
...
@@ -713,8 +714,11 @@ char *check_validity(
int
rbytes
;
unsigned
char
md5_md
[
MD5_DIGEST_LENGTH
],
rbuf
[
2048
];
// OpenSSL 1.1 does initialization internally. This is default.
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
SSL_load_error_strings
();
SSL_library_init
();
#endif
if
(
!
is_file
(
origFile
))
{
return
NULL
;
...
...
@@ -765,7 +769,10 @@ int cert_verify_file(
fflush
(
stdout
);
return
false
;
}
// OpenSSL 1.1 does initialization internally. This is default.
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
SSL_library_init
();
#endif
if
(
!
is_file
(
origFile
))
return
false
;
FILE
*
of
=
boinc_fopen
(
origFile
,
"r"
);
if
(
!
of
)
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment