mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 09:18:33 +00:00
#102 Prevent Algo confusion attack
This commit is contained in:
parent
4a970bc302
commit
b9528b32eb
7 changed files with 82 additions and 2 deletions
|
@ -124,6 +124,8 @@ struct VerificationErrorCategory: std::error_category
|
|||
return "invalid signature";
|
||||
case VerificationErrc::TypeConversionError:
|
||||
return "type conversion error";
|
||||
case VerificationErrc::AlgoConfusionAttack:
|
||||
return "algo confusion attack possibility";
|
||||
};
|
||||
return "unknown verification error";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue