arun11299 / cpp-jwt

JSON Web Token library for C++
MIT License
396 stars 111 forks source link

error C4996: 'EVP_PKEY_get1_EC_KEY': Since OpenSSL 3.0 and a few more #86

Closed Ruuddenbekker closed 3 years ago

Ruuddenbekker commented 3 years ago

L.S.,

When I try to build a program using your library, I still get the following errors: 1>D:\VisualStudioProjects\cpp_jwt\include\jwt\impl\algorithm.ipp(113,24): error C4996: 'EVP_PKEY_get1_EC_KEY': Since OpenSSL 3.0 1>D:\VisualStudioProjects\cpp_jwt\include\jwt\impl\algorithm.ipp(119,9): error C4996: 'EC_KEY_get0_group': Since OpenSSL 3.0 1>D:\VisualStudioProjects\cpp_jwt\include\jwt\impl\algorithm.ipp(264,22): error C4996: 'EVP_PKEY_get1_EC_KEY': Since OpenSSL 3.0 1>D:\VisualStudioProjects\cpp_jwt\include\jwt\impl\algorithm.ipp(271,41): error C4996: 'EC_KEY_get0_group': Since OpenSSL 3.0

What can be the problem?

I'm using OpenSSL-Win64 Win64 OpenSSL v3.0.0 -> downloaded from: https://slproweb.com/products/Win32OpenSSL.html

Regards,

Ruud

Ruuddenbekker commented 3 years ago

Solution can be found on: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(C4996)%26rd%3Dtrue&view=msvc-160