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
64d78ad7
Commit
64d78ad7
authored
Aug 04, 2020
by
Rosen Penev
Browse files
fix compilation without deprecated OpenSSL APIs
Initialization is deprecated.
parent
bab861df
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/crypt.cpp
View file @
64d78ad7
...
...
@@ -42,6 +42,7 @@
#include
<openssl/engine.h>
#include
<openssl/err.h>
#include
<openssl/rsa.h>
#include
<openssl/bn.h>
#ifdef _USING_FCGI_
#include
"boinc_fcgi.h"
...
...
@@ -718,8 +719,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
;
...
...
@@ -770,7 +774,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