Fail with no key if algorithm is not NONE

This commit is contained in:
Arun M 2017-12-25 21:35:28 +05:30
parent f8eebbede0
commit cb1847142e
5 changed files with 50 additions and 3 deletions

View file

@ -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";
};