summaryrefslogtreecommitdiffabout
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-01-04parse xrd:ExpiresMichael Krelin1-3/+7
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04adjust w3c_to_time output by timezone, so that it returns local timeMichael Krelin1-5/+15
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04corrected typoMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04fixed sreg namespace setting ('sreg.ns' to 'ns.sreg')Michael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04added openid.sreg.ns parameter to sreg extensionMichael Krelin1-0/+2
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-17made secret_t non-constant size and added params_t::query_string functionMichael Krelin2-8/+17
1. removed checking that secret_t is exactly 20 bytes, because its size is not so constant anymore. 2. added a query_string function that produces a query string suitable for use in GET and POST requests. I'm making use of it when performing direct request when establishing associations. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-17moved curl_fetch_string_t/curl_pick_t classes into curl.hMichael Krelin1-19/+1
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-09Merge branch 'next' into devel/xriMichael Krelin2-6/+6
2007-12-09reworked identity resolution and service discoveryMichael Krelin4-309/+388
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>
2007-12-04Minor improvementsMichael Krelin1-3/+3
- almost irrelevant documentation updates - introduced id_res_expired_on_delivery exception to be thrown if the association has expired right before it could've been used for signature verification. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-04save a couple of ticks and make a bit more senseMichael Krelin1-3/+3
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-02more robust discoveryMichael Krelin1-7/+11
if no service found in yadis document, but it is found in html, use html-discovered service. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-02first cut on XRI resolverMichael Krelin3-5/+308
This commit adds openid service resolver that does discovery using XRI (proxy only), Yadis protocol and html-based discovery. It uses expat as xml parsing engine, which makes it a bit more strict about html it receives, but I think failing to discover links in *severely* broken html is better than misdetecting links, hidden in comments or such. This is highly experimental code and needs more thoughts and testing. Thanks everyone pushing me towards this development. Namely Joseph, John, Gen. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-28added a trivial expat wrapperMichael Krelin2-3/+100
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-28keep keeping compilers happyMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-28added header and progress callbacks to curl wrapperMichael Krelin1-0/+25
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-28removed meaningless conditionMichael Krelin1-1/+0
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-26encapsulated write functionality into curl_tMichael Krelin2-22/+40
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-24more curl wrapper cosmeticsMichael Krelin3-62/+88
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-24moved curl_t wrapper to util namespaceMichael Krelin1-20/+5
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-24added URI normalization procedure to opkele::utilMichael Krelin1-0/+131
as specified in RFC3896, section 6 Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-21keep compiler happy about shadowed variableMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-21further calming compiler downMichael Krelin3-7/+7
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-21added some missing includes for gcc 4.3Michael Krelin3-0/+3
According to Marcus Rueckert gcc 4.3 wants these. Thanks, Marcus! Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-21Fix exception constructionMichael Krelin1-9/+6
Thanks to Marcus Rueckert for pointing this out. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-21keep compiler happy and check more error conditionsMichael Krelin1-3/+4
Thanks Marcus Rueckert for pointing this out Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-21Keep compiler happyMichael Krelin1-2/+2
Thanks Marcus Rueckert for pointing this out. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-11-20added more precise source tree version detectionMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-10-31allow whitespace separated list in @rel when doing links discovery.Michael Krelin1-9/+31
Thanks to Joseph Smarr and Chris Messina for bringing it to my attention! Signed-off-by: Michael Krelin <hacker@klever.net>
2007-09-22save a couple of ticksMichael Krelin1-3/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-09-22got rid of all pcre wrappers altogetherMichael Krelin2-61/+67
although all claims against pcre++ make absolutely no sense. But for now I'll live with no wrappers at all. I may reconsider it when implementing more sophisticated discovery mechanisms for upcoming extensions. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-09-14robustness improvements in link descovery mechanismsMichael Krelin1-4/+4
accept stray spaces in link tags and inside relevant attribute values. Thanks, Gen, for pointing it out. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-09-11added support for crappy libpcre c++ bindingsMichael Krelin1-6/+47
Added optional support for crappy google's c++ bindings. The bindings are ridiculously googley, so I think, taking into account the amount of pcre involved, I'll soon drop requirement for any bindings and will use libpcre directly. Signed-off-by: Michael Krelin <hacker@klever.net>
2007-08-09libopkele: prepared 0.3 release0.3Michael Krelin1-1/+1
- bumped package version - bumped library version - sumarized news
2007-08-09fix to previous commitMichael Krelin1-2/+0
2007-08-09associations robustness improvements and documentation updatesMichael Krelin1-0/+4
2007-08-09make canonicalize follow redirectsMichael Krelin1-1/+25
- renamed old consumer_t::canonicalize to consumer_t::normalize - made the real canonicalize virtual to allow caching layer
2007-06-24yet another signature bugfixMichael Krelin1-1/+1
2007-06-18reworked zero-padding machinery and added one more instance of zero-paddingMichael Krelin3-14/+20
2007-06-18Adhere to Postel's Law.Michael Krelin1-0/+16
That is, be liberal when parsing key/value parameters from remote. Along with configure switch to disable it.
2007-06-16adjusted LDADD in lib's Makefile.amMichael Krelin1-1/+1
2007-06-16remove catch-all nop handlerMichael Krelin1-8/+6
2007-01-15fixed a typoMichael Krelin1-1/+1
2007-01-15--disable-ssl-verify-{host,peer} options addedMichael Krelin1-0/+6
2007-01-12fixed curl exception constructorMichael Krelin1-1/+1
2007-01-12Be a bit more liberal in what we accept as key-value pairsMichael Krelin1-1/+2
2007-01-12eliminated mimetic dependency and made use of openssl base64 encoder insteadMichael Krelin6-55/+65