author | Michael Krelin <hacker@klever.net> | 2007-12-29 21:26:53 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-01-04 18:22:12 (UTC) |
commit | 9020dcc4b8187a9dd31c62dbe89041772b0f5473 (patch) (side-by-side diff) | |
tree | d04da68e1c01a687834525437487364de53a6ad2 | |
parent | 3801123163d78896a05fb26323deb7c0fa8c7f8e (diff) | |
download | libopkele-9020dcc4b8187a9dd31c62dbe89041772b0f5473.zip libopkele-9020dcc4b8187a9dd31c62dbe89041772b0f5473.tar.gz libopkele-9020dcc4b8187a9dd31c62dbe89041772b0f5473.tar.bz2 |
xri discovery fills in canonicalized_id for xri identities now
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | lib/discovery.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/discovery.cc b/lib/discovery.cc index 3b184ee..bc7d6fb 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -101,12 +101,13 @@ namespace opkele { "?_xrd_r=application/xrd+xml;sep=false", xmode_xrd); if(status_code!=100) throw failed_xri_resolution(OPKELE_CP_ "XRI resolution failed with '"+status_string+"' message",status_code); if(result.xrd.canonical_ids.empty()) throw opkele::failed_discovery(OPKELE_CP_ "No CanonicalID for XRI identity found"); + result.canonicalized_id = result.xrd.canonical_ids.begin()->second; }else{ result.xri_identity = false; if(id.find("://")==string::npos) id.insert(0,"http://"); string::size_type fp = id.find('#'); if(fp!=string::npos) { |