From 4efb668baed49ede14846c3cdac31cc561451cd1 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 02 Feb 2008 11:40:56 +0000 Subject: first rough cut on OP 2.0 implementation Signed-off-by: Michael Krelin --- (limited to 'include') diff --git a/include/Makefile.am b/include/Makefile.am index 50fcb62..37fb961 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -19,6 +19,7 @@ nobase_include_HEADERS = \ opkele/basic_rp.h \ opkele/prequeue_rp.h \ opkele/iterator.h \ + opkele/basic_op.h \ ${NODIST_HEADERS_} noinst_HEADERS = \ diff --git a/include/opkele/exception.h b/include/opkele/exception.h index ccb39d9..5c8418e 100644 --- a/include/opkele/exception.h +++ b/include/opkele/exception.h @@ -330,6 +330,33 @@ namespace opkele { : exception(OPKELE_E_CONS) { } }; + /** + * thrown while processing OpenID request in OP. Signifies invalid realm + */ + class bad_realm : public exception { + public: + bad_realm(OPKELE_E_PARS) + : exception(OPKELE_E_CONS) { } + }; + + /** + * thrown when attempting to retrieve return_to of one-way request + */ + class no_return_to : public exception { + public: + no_return_to(OPKELE_E_PARS) + : exception(OPKELE_E_CONS) { } + }; + + /** + * thrown when querying identity of non-identity related request + */ + class non_identity : public exception { + public: + non_identity(OPKELE_E_PARS) + : exception(OPKELE_E_CONS) { } + }; + } #endif /* __OPKELE_EXCEPTION_H */ -- cgit v0.9.0.2