Files
jwt-cpp/tests/cmake/wolfssl-is-used.cpp
Juliusz Sosinowicz a968dfe4f7 Fix build and tests for wolfSSL (#352)
* Fix build and tests for wolfSSL

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>

* Remove unnecessary symbols

* Don't fail fast on wolfSSL actions

* Include wolfssl/options.h explicitly

* Fix old wolfSSL failures

* remove unused EVP_PKEY_get1_RSA

this is deprecated with 3.0

* code review comments

* Apply suggestions from code review

* rm extra headers?

* fix cmake test

use the new macro that was required

* linter

* fix unused warning fail_HMAC

* reenable fail fast

* fix spelling

---------

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2024-07-29 08:14:34 -07:00

19 lines
343 B
C++

#if !__has_include(<wolfssl/ssl.h>)
#error "missing wolfSSL's SSL header!"
#endif
// See https://github.com/Thalhammer/jwt-cpp/pull/352
#ifndef EXTERNAL_OPTS_OPENVPN
#error "missing wolfSSL's OPENSSL_EXTRA macro!"
#endif
#include "jwt-cpp/jwt.h"
#include <wolfssl/ssl.h>
int main() {
wolfSSL_library_init();
jwt::date date;
return 0;
}