mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-06-01 17:37:41 +00:00
Fail with no key if algorithm is not NONE
This commit is contained in:
parent
f8eebbede0
commit
cb1847142e
5 changed files with 50 additions and 3 deletions
|
@ -22,6 +22,8 @@ struct AlgorithmErrCategory: std::error_category
|
|||
return "signing failed";
|
||||
case AlgorithmErrc::VerificationErr:
|
||||
return "verification failed";
|
||||
case AlgorithmErrc::KeyNotFoundErr:
|
||||
return "key not provided";
|
||||
case AlgorithmErrc::NoneAlgorithmUsed:
|
||||
return "none algorithm used";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue