From b7cec6ccef5d4178cf02c4cc240fd39ab7c8fe97 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 30 Dec 2007 21:08:55 +0000 Subject: parse ProviderID while doing discovery Signed-off-by: Michael Krelin --- (limited to 'lib') diff --git a/lib/discovery.cc b/lib/discovery.cc index bc7d6fb..81727c0 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -236,6 +236,9 @@ namespace opkele { }else if(is_qelement(n,NSURI_XRD "\tLocalID")) { assert(xrd); cdata = &(xrd->local_ids.add(element_priority(a),string())); + }else if(is_qelement(n,NSURI_XRD "\tProviderID")) { + assert(xrd); + cdata = &(xrd->provider_id); }else if(is_qelement(n,NSURI_XRD "\tService")) { assert(xrd); xrd_service = &(xrd->services.add(element_priority(a), @@ -273,6 +276,9 @@ namespace opkele { || is_qelement(n,NSURI_OPENID10 "\tDelegate") ) { assert(xrd); assert(xrd_service); cdata = &(xrd_service->local_ids.add(element_priority(a),string())); + }else if(is_qelement(n,NSURI_XRD "\tProviderID")) { + assert(xrd); assert(xrd_service); + cdata = &(xrd_service->provider_id); }else{ skipping = 1; } -- cgit v0.9.0.2