Skip to content

Commit

Permalink
Add OPENSSL_SUPPRESS_DEPRECATED
Browse files Browse the repository at this point in the history
We will eventually update to the OpenSSL 3.0.0 APIs but for now there
is no overriding need to, so shut the warnings up the easy way.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed May 5, 2021
1 parent 9457f40 commit 0745545
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -567,6 +567,7 @@ case "$ssl_library" in

dtls=yes
AC_DEFINE(OPENCONNECT_OPENSSL, 1, [Using OpenSSL])
AC_DEFINE(OPENSSL_SUPPRESS_DEPRECATED, 1, [We need to update to OpenSSL 3.0.0 API])
AC_SUBST(SSL_LIBS, ['$(OPENSSL_LIBS)'])
AC_SUBST(SSL_CFLAGS, ['$(OPENSSL_CFLAGS)'])
;;
Expand Down
2 changes: 2 additions & 0 deletions tests/bad_dtls_test.c
Expand Up @@ -37,6 +37,8 @@
*/
#include <string.h>

#define OPENSSL_SUPPRESS_DEPRECATED

#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/evp.h>
Expand Down

0 comments on commit 0745545

Please sign in to comment.