Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-cpp-lib
Commits
861504d9
Commit
861504d9
authored
Nov 24, 2021
by
Jørgen Lind
Browse files
fix: compilation on RedHat 7
parent
e9299428
Pipeline
#78776
passed with stages
in 12 minutes and 48 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/src/lib/shared/openssl_utils.h
View file @
861504d9
...
...
@@ -118,7 +118,11 @@ namespace seismicdrive
static
std
::
string
SignStringWithPem
(
std
::
string
const
&
str
,
std
::
string
const
&
pem_contents
,
JwtSigningAlgorithms
alg
)
{
std
::
string
msg
=
"Permanent error in SignStringWithPem (failed to sign string with PEM key): Unable to "
;
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) // Older than version 1.1.0
std
::
unique_ptr
<
EVP_MD_CTX
,
decltype
(
&
EVP_MD_CTX_destroy
)
>
digest_ctx
(
EVP_MD_CTX_create
(),
&
EVP_MD_CTX_destroy
);
#else
std
::
unique_ptr
<
EVP_MD_CTX
,
decltype
(
&
EVP_MD_CTX_free
)
>
digest_ctx
(
EVP_MD_CTX_new
(),
&
EVP_MD_CTX_free
);
#endif
if
(
!
digest_ctx
)
{
throw
error
::
authprovider
::
Error
(
msg
+
"create context for OpenSSL digest."
);
...
...
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