author | Michael Krelin <hacker@klever.net> | 2008-02-03 15:28:30 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-02-03 15:28:30 (UTC) |
commit | d1c45af16b3bd31f65d03eec0fcd1c61b4d69fb0 (patch) (side-by-side diff) | |
tree | 34fc1389a138a2c33ccfceb595379a16a0139768 | |
parent | 5f742d37f78d626e0140632b28b072f892fd98c3 (diff) | |
download | libopkele-d1c45af16b3bd31f65d03eec0fcd1c61b4d69fb0.zip libopkele-d1c45af16b3bd31f65d03eec0fcd1c61b4d69fb0.tar.gz libopkele-d1c45af16b3bd31f65d03eec0fcd1c61b4d69fb0.tar.bz2 |
moved openid_endpoint_t to types.h
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/opkele/basic_rp.h | 18 | ||||
-rw-r--r-- | include/opkele/types.h | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/include/opkele/basic_rp.h b/include/opkele/basic_rp.h index 3f17fd9..d5356aa 100644 --- a/include/opkele/basic_rp.h +++ b/include/opkele/basic_rp.h @@ -3,3 +3,2 @@ -#include <cstring> #include <string> @@ -11,19 +10,2 @@ namespace opkele { - struct openid_endpoint_t { - string uri; - string claimed_id; - string local_id; - - openid_endpoint_t() { } - openid_endpoint_t(const string& u,const string& cid,const string& lid) - : uri(u), claimed_id(cid), local_id(lid) { } - - bool operator==(const openid_endpoint_t& x) const { - return uri==x.uri && local_id==x.local_id; } - bool operator<(const openid_endpoint_t& x) const { - int c; - return (c=strcmp(uri.c_str(),x.uri.c_str())) - ? (c<0) : (strcmp(local_id.c_str(),x.local_id.c_str())<0); } - }; - class basic_RP { diff --git a/include/opkele/types.h b/include/opkele/types.h index 5d39a5c..6ab51ef 100644 --- a/include/opkele/types.h +++ b/include/opkele/types.h @@ -8,2 +8,3 @@ +#include <cstring> #include <ostream> @@ -208,2 +209,19 @@ namespace opkele { + struct openid_endpoint_t { + string uri; + string claimed_id; + string local_id; + + openid_endpoint_t() { } + openid_endpoint_t(const string& u,const string& cid,const string& lid) + : uri(u), claimed_id(cid), local_id(lid) { } + + bool operator==(const openid_endpoint_t& x) const { + return uri==x.uri && local_id==x.local_id; } + bool operator<(const openid_endpoint_t& x) const { + int c; + return (c=strcmp(uri.c_str(),x.uri.c_str())) + ? (c<0) : (strcmp(local_id.c_str(),x.local_id.c_str())<0); } + }; + } |