mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
#102 Add ES algos also to the exception list
Some checks failed
CMake / build (map[name:MacOSX/11/AppleClang-12.0.5.12050022 os:macos-11 parallel:3 triplet:x64-osx]) (push) Has been cancelled
CMake / build (map[name:Ubuntu/20.04/GCC-9.3.0 os:ubuntu-20.04 parallel:2 triplet:x64-linux]) (push) Has been cancelled
CMake / build (map[name:Windows/2019/MSVC-19.30.30528.0 os:windows-2019 parallel:2 triplet:x64-windows]) (push) Has been cancelled
Some checks failed
CMake / build (map[name:MacOSX/11/AppleClang-12.0.5.12050022 os:macos-11 parallel:3 triplet:x64-osx]) (push) Has been cancelled
CMake / build (map[name:Ubuntu/20.04/GCC-9.3.0 os:ubuntu-20.04 parallel:2 triplet:x64-linux]) (push) Has been cancelled
CMake / build (map[name:Windows/2019/MSVC-19.30.30528.0 os:windows-2019 parallel:2 triplet:x64-windows]) (push) Has been cancelled
This commit is contained in:
parent
b9528b32eb
commit
a54fa08a3b
1 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,9 @@ inline verify_result_t jwt_signature::check_for_algo_confusion_attack(
|
||||||
case algorithm::RS256:
|
case algorithm::RS256:
|
||||||
case algorithm::RS384:
|
case algorithm::RS384:
|
||||||
case algorithm::RS512:
|
case algorithm::RS512:
|
||||||
|
case algorithm::ES256:
|
||||||
|
case algorithm::ES384:
|
||||||
|
case algorithm::ES512:
|
||||||
return {false, std::error_code{}};
|
return {false, std::error_code{}};
|
||||||
default:
|
default:
|
||||||
// For all other cases make sure that the secret provided
|
// For all other cases make sure that the secret provided
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue