summaryrefslogtreecommitdiffabout
path: root/lib/discovery.cc
AgeCommit message (Collapse)AuthorFilesLines
2008-04-06fix for discovery failing on some entities coming before the tag of interestMichael Krelin1-0/+1
One of the numerous opportunities to express my gratitude by means of commit message to Joseph Smarr of Plaxo for spotting it. Thanks, Joseph! Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-22fix the discovery for the case when identity URL points to XRDS document.Michael Krelin1-1/+7
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-19added an identifier normalization utility functionMichael Krelin1-9/+8
* moved iname leader characters and whitespace characters strings to opkele::data namespace * added opkele::util::normalize_identifier() function Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-16do not tidy XRD documentsMichael Krelin1-2/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08minor fixes and making compiler a bit happierMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03added provisions for discovery on RPMichael Krelin1-10/+35
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-21Implement URI construction handling append='qxri' xrd:URI attribute.Michael Krelin1-7/+22
This is the right thing to do and may come in handy assisting OPs in improving UI. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20the whole library rewrittenMichael Krelin1-35/+126
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-06Revert "discovery: stop parser with XML_StopParser()" for nowMichael Krelin1-6/+5
This reverts commit 7bde7f66284b47a75bbceadc360e7f03550ace21. because some older expat version do not support this function I don't want to make it conditional for now. Conflicts: lib/discovery.cc Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-06Fix non-debug tidying.Michael Krelin1-1/+1
somehow I've managed to put too many tidying options into conditional. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-05made more robust html discovery by using htmltidyMichael Krelin1-11/+64
now when parsing document that we expect might be html we also save first 16K of the document to the buffer and if the parser choked we run the saved data through htmltidy and feed the output to the parser again. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-05discovery: stop parser with XML_StopParser()Michael Krelin1-6/+12
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04parse ProviderID while doing discoveryMichael Krelin1-0/+6
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04xri discovery fills in canonicalized_id for xri identities nowMichael Krelin1-0/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04parse xrd:ExpiresMichael Krelin1-3/+7
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04fix the xrds_location being cleared before it gets used.Michael Krelin1-1/+1
The xrds_location should not be cleared when doing pure xrd discovery. Otherwise it may get overwritten before curl actually uses it. Previously it was cleared twice, which is a waste of cpu cycles, anyway. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-15fixed handling of openid:Delegate in discoveryMichael Krelin1-1/+1
which was mistakenly added to the list of endpoint URIs instead of local ids. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-13keep track of whether the identity being discovered is XRIMichael Krelin1-0/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-09reworked identity resolution and service discoveryMichael Krelin1-0/+375
The discovery, which does both XRDS-based (Yadis, XRI, for XRI, using proxy) and HTML-based search, now returns results in opkele:idiscovery_t structure. It uses expat-based parser idigger_t, which itself is not exposed via any header files, but hidden in lib/discovery.cc, the discovery testing program is renamed from openid_resolve to idiscover. Signed-off-by: Michael Krelin <hacker@klever.net>