From 14f6295f3ffb22848d848265042b088a28451677 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 21 Dec 2007 21:22:54 +0000 Subject: id_res_cancel and id_res_bad_nonce exceptions Signed-off-by: Michael Krelin --- (limited to 'include') diff --git a/include/opkele/exception.h b/include/opkele/exception.h index 64f189e..d003ce4 100644 --- a/include/opkele/exception.h +++ b/include/opkele/exception.h @@ -184,6 +184,24 @@ namespace opkele { }; /** + * thown when the user cancelled authentication process. + */ + class id_res_cancel : public id_res_failed { + public: + id_res_cancel(OPKELE_E_PARS) + : id_res_failed(OPKELE_E_CONS) { } + }; + + /** + * thrown in case of nonce reuse or otherwise imperfect nonce. + */ + class id_res_bad_nonce : public id_res_failed { + public: + id_res_bad_nonce(OPKELE_E_PARS) + : id_res_failed(OPKELE_E_CONS) { } + }; + + /** * openssl malfunction occured */ class exception_openssl : public exception { -- cgit v0.9.0.2