Skip to content

Commit

Permalink
Suppress OpenSSL 3.0 warnings (eProsima#2503)
Browse files Browse the repository at this point in the history
* Suppress OpenSSL 3.0 warnings (eProsima#2502)

This is a temporary fix until the code can be refactored to
use real OpenSSL 3.0 APIs.

Signed-off-by: Chris Lalancette <[email protected]>
(cherry picked from commit 8834128)

* Fix OpenSSL 3.0 warnings in Pkcs11Provider

Signed-off-by: Miguel Company <[email protected]>

Co-authored-by: Chris Lalancette <[email protected]>
Co-authored-by: Miguel Company <[email protected]>
  • Loading branch information
3 people authored Feb 17, 2022
1 parent c545b52 commit 2ce1f64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cpp/security/artifact_providers/Pkcs11Provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* @file Pkcs11Provider.cpp
*/

// TODO This isn't a proper fix for compatibility with OpenSSL 3.0, but
// suppresses the warnings until true OpenSSL 3.0 APIs can be used.
#define OPENSSL_API_COMPAT 10101

#include <security/artifact_providers/Pkcs11Provider.hpp>

#include <iostream>
Expand Down
4 changes: 4 additions & 0 deletions src/cpp/security/authentication/PKIDH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* @file PKIDH.cpp
*/

// TODO This isn't a proper fix for compatibility with OpenSSL 3.0, but
// suppresses the warnings until true OpenSSL 3.0 APIs can be used.
#define OPENSSL_API_COMPAT 10101

#include <security/authentication/PKIDH.h>
#include <security/authentication/PKIIdentityHandle.h>
#include <fastdds/rtps/security/logging/Logging.h>
Expand Down

0 comments on commit 2ce1f64

Please sign in to comment.