Skip to content

Commit

Permalink
code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Jul 29, 2024
1 parent 871af79 commit 421809d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ if(${JWT_SSL_LIBRARY} MATCHES "wolfSSL")
target_link_libraries(jwt-cpp INTERFACE PkgConfig::wolfssl)
# This is required to access OpenSSL compatibility API
target_include_directories(jwt-cpp INTERFACE ${wolfssl_INCLUDE_DIRS})
target_compile_definitions(jwt-cpp INTERFACE JWT_WOLFSSL)
endif()

if(NOT JWT_DISABLE_PICOJSON AND JWT_EXTERNAL_PICOJSON)
Expand Down
7 changes: 2 additions & 5 deletions include/jwt-cpp/jwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
#include "base.h"
#endif

#ifdef JWT_WOLFSSL
#include <wolfssl/options.h>
#include <wolfssl/version.h>
#endif
#include <openssl/ec.h>
#include <openssl/ecdsa.h>
#include <openssl/err.h>
Expand All @@ -24,7 +20,6 @@
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/ssl.h>
#include <openssl/opensslv.h>

#include <algorithm>
#include <chrono>
Expand Down Expand Up @@ -71,6 +66,8 @@

#if defined(LIBWOLFSSL_VERSION_HEX)
#define JWT_OPENSSL_1_1_1
#include <wolfssl/options.h>
#include <wolfssl/version.h>
#endif

#ifndef JWT_CLAIM_EXPLICIT
Expand Down
2 changes: 1 addition & 1 deletion tests/OpenSSLErrorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static uint64_t fail_PEM_write_bio_RSA_PUBKEY = 0;
static uint64_t fail_RSA_set0_key = 0;
#endif

#ifdef LIBWOLFSSL_VERSION_STRING
#ifdef LIBWOLFSSL_VERSION_HEX
#define SYMBOL_NAME(s) ("wolfSSL_" s)
#else
#define SYMBOL_NAME(s) (s)
Expand Down

0 comments on commit 421809d

Please sign in to comment.