author | Michael Krelin <hacker@klever.net> | 2007-12-15 15:04:01 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-12-15 15:04:40 (UTC) |
commit | 52c81fff0274c6bb54f6f9be414432ee6388e723 (patch) (side-by-side diff) | |
tree | dc950b3f640bd7db8fc3f9f331f51a724a84f440 | |
parent | 58383f07af80dfd5b5c18e5158291c3d8caefbe7 (diff) | |
download | libopkele-52c81fff0274c6bb54f6f9be414432ee6388e723.zip libopkele-52c81fff0274c6bb54f6f9be414432ee6388e723.tar.gz libopkele-52c81fff0274c6bb54f6f9be414432ee6388e723.tar.bz2 |
fixed handling of openid:Delegate in discovery
which was mistakenly added to the list of endpoint URIs instead of local ids.
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | lib/discovery.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/discovery.cc b/lib/discovery.cc index 1f23ff1..9503b5d 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -249,49 +249,49 @@ namespace opkele { if(sscanf(*(a++),"%ld",&status_code)==1 && status_code!=100) { cdata = &status_string; pt_stack.push_back(n); break; } } } }else if(xmode&xmode_html) { html_start_element(n,a); }else{ skipping = 1; } }else if(pt_s==2) { if(is_qelement(pt_stack.back().c_str(), NSURI_XRD "\tService")) { if(is_qelement(n,NSURI_XRD "\tType")) { assert(xrd); assert(xrd_service); cdata_buf.clear(); cdata = &cdata_buf; }else if(is_qelement(n,NSURI_XRD "\tURI")) { assert(xrd); assert(xrd_service); cdata = &(xrd_service->uris.add(element_priority(a),string())); }else if(is_qelement(n,NSURI_XRD "\tLocalID") || is_qelement(n,NSURI_OPENID10 "\tDelegate") ) { assert(xrd); assert(xrd_service); - cdata = &(xrd_service->uris.add(element_priority(a),string())); + cdata = &(xrd_service->local_ids.add(element_priority(a),string())); }else{ skipping = 1; } }else skipping = 1; }else if(xmode&xmode_html) { html_start_element(n,a); }else{ skipping = 1; } } } void end_element(const XML_Char *n) { if(skipping<0) return; if(skipping) { --skipping; return; } if(is_qelement(n,NSURI_XRD "\tType")) { assert(xrd); assert(xrd_service); assert(cdata==&cdata_buf); xrd_service->types.insert(cdata_buf); }else if(is_qelement(n,NSURI_XRD "\tService")) { assert(xrd); assert(xrd_service); assert(!pt_stack.empty()); assert(pt_stack.back()==(NSURI_XRD "\tService")); |