summaryrefslogtreecommitdiffabout
path: root/lib/basic_rp.cc
Unidiff
Diffstat (limited to 'lib/basic_rp.cc') (more/less context) (show whitespace changes)
-rw-r--r--lib/basic_rp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/basic_rp.cc b/lib/basic_rp.cc
index 3357d0b..3cad71c 100644
--- a/lib/basic_rp.cc
+++ b/lib/basic_rp.cc
@@ -1,24 +1,25 @@
1#include <sys/types.h>
1#include <cassert> 2#include <cassert>
2#include <openssl/sha.h> 3#include <openssl/sha.h>
3#include <openssl/hmac.h> 4#include <openssl/hmac.h>
4#include <opkele/basic_rp.h> 5#include <opkele/basic_rp.h>
5#include <opkele/exception.h> 6#include <opkele/exception.h>
6#include <opkele/uris.h> 7#include <opkele/uris.h>
7#include <opkele/data.h> 8#include <opkele/data.h>
8#include <opkele/util.h> 9#include <opkele/util.h>
9#include <opkele/util-internal.h> 10#include <opkele/util-internal.h>
10#include <opkele/curl.h> 11#include <opkele/curl.h>
11#include <opkele/debug.h> 12#include <opkele/debug.h>
12 13
13namespace opkele { 14namespace opkele {
14 15
15 void basic_RP::reset_vars() { 16 void basic_RP::reset_vars() {
16 claimed_id.clear(); identity.clear(); 17 claimed_id.clear(); identity.clear();
17 } 18 }
18 19
19 const string& basic_RP::get_claimed_id() const { 20 const string& basic_RP::get_claimed_id() const {
20 if(claimed_id.empty()) 21 if(claimed_id.empty())
21 throw non_identity(OPKELE_CP_ "attempting to retreive claimed_id of non-identity assertion"); 22 throw non_identity(OPKELE_CP_ "attempting to retreive claimed_id of non-identity assertion");
22 assert(!identity.empty()); 23 assert(!identity.empty());
23 return claimed_id; 24 return claimed_id;
24 } 25 }