summaryrefslogtreecommitdiffabout
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-12-22put Joseph's files into repositoryJoseph Smarr2-0/+210
Thanks to Joseph Smarr (now) of Plaxo for contributing these extensions! Signed-off-by: Michael Krelin <hacker@klever.net>
2009-09-13minor url_decode improvementsMichael Krelin1-4/+3
Signed-off-by: Michael Krelin <hacker@klever.net>
2009-09-13removed legacy compatibility code and pcre dependencyMichael Krelin3-572/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
2009-09-01fixed normalization for the single-character trailing componentMichael Krelin1-1/+1
Thanks Hiroyuki ARAKI for spotting the bug and providing the fix Signed-off-by: Michael Krelin <hacker@klever.net>
2009-09-01corrected typoMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2009-04-11make compiler a bit happierMichael Krelin1-2/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
2009-04-11looks like yet another breakage by LJMichael Krelin1-1/+2
IIRC, previously, livejournal.com supplied empty op_endpoint URL. Now it doesn't supply it at all. Dunno which breakage is better. Signed-off-by: Michael Krelin <hacker@klever.net>
2009-04-11workaround for livejournal.com breaking specsMichael Krelin1-1/+1
just don't treat those who supply empty op_endpoint as OpenID 2.0 providers Signed-off-by: Michael Krelin <hacker@klever.net>
2009-01-28XRD discovery fix.Michael Krelin1-0/+4
Added omitted popping of the XRD element out of stack when it ends. Thanks to our usual suspect - Joseph for spotting it ;-) Signed-off-by: Michael Krelin <hacker@klever.net>
2009-01-21Do not bomb out on unusual xmlMichael Krelin1-15/+26
In particular, properly handle directy Type child of XRD element. As usually, thanks to Joseph Smarr of Plaxo for spotting it ;-) Signed-off-by: Michael Krelin <hacker@klever.net>
2008-12-02added passthrough unknown encoding handler to discovery parserMichael Krelin1-0/+8
2008-12-02support for unknown encoding in expat wrapperMichael Krelin1-0/+9
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-11-12build fix: added missing includeMichael Krelin1-0/+1
Thanks to Jim Downing for spotting it! Signed-off-by: Michael Krelin <hacker@klever.net>
2008-09-22A couple of bugfixesMichael Krelin1-1/+1
- added missing 'return' statement to the forward_iterator_proxy operator=() - made temporary non-static for thread safety in url_decode() Thanks to Masato Kataoka of orenosv project Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-29fixed debugging info settings for htmltidyMichael Krelin1-2/+5
Thanks to Brian Muller for spotting it! Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-29Fixed w3c to unix timestamp conversion for FreeBSDMichael Krelin1-3/+18
Thanks to Göran Löwkrantz for pointing both to the problem and possible solution. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-27made gcc 4.3 a bit happierMichael Krelin5-9/+9
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-27Fix for gcc 4.3Michael Krelin2-0/+4
Thanks to Oden Eriksson of Mandriva for report and patch Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-26bumped version to 2.0 in preparation for releaseMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-25gave up the most stupid bug contest awardMichael Krelin1-2/+2
Thanks to compiler for spotting it. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-25make compiler a bit happierMichael Krelin1-2/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-06-25improved detection of htmltidy for debian and co.Michael Krelin1-1/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
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-04-06Merge commit '1e3ed01c149aaeed5a64aacff218a5486128fc92' into devel/openid20Michael Krelin4-84/+108
2008-04-06empty trust_root is no trust root.Michael Krelin1-0/+6
work around some thoughtful and considerate RPs that take the pain of sending the trust_root parameter, but do not go into as much trouble as setting it to anything but an empty string. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-03-04added curl_slist wrapperMichael Krelin1-0/+20
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-03-03renamed basic_message to basic_fieldsMichael Krelin3-78/+88
since oauth fieldsets aren't really messages Signed-off-by: Michael Krelin <hacker@klever.net>
2008-03-03introduced base_message class as a base for basic_openid_messageMichael Krelin2-51/+45
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-03-03added append_to() to basic_openid_messageMichael Krelin1-3/+6
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-03-02aded util::url_decode()Michael Krelin1-0/+28
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-03-02reinstated prefix handling in query buildingMichael Krelin1-9/+11
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-03-02made util::url_encode refrain from encoding unreserved charsMichael Krelin1-6/+33
as per rfc 3986 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 Krelin3-12/+49
* 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-19basic_RP: add methods for accessing identity information passed from OP.Michael Krelin1-2/+27
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-19use local array for hmac when calculating signatureMichael Krelin1-4/+7
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-16moved some stuff out of the now installed util.h headerMichael Krelin4-0/+4
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-15small fix to openid message find_ns methodMichael Krelin1-2/+4
it foolishly failed in presence of ns field and absence of namespace in question. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-12slight api improvement to ease caching of discovery informationMichael Krelin1-2/+7
* added opend_endpoint_output_iterator to types.h * changed endpoint_discovery_iterator to the aforementioned iterator typedef * added discover() virtual to prequeue_RP and made use thereof. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-11allow to add prefix to generated htmlhiddensMichael Krelin1-5/+9
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-09OP fixesMichael Krelin1-3/+3
* allocate stateful handles when processing associate request * use the expiration from allocated handle, not empty shared_ptr Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08minor fixes and making compiler a bit happierMichael Krelin9-46/+44
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08renamed verify_op to verify_OPMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08renamed basic_op class to basic_OPMichael Krelin2-20/+20
and doxygenated basic_OP a bit. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08do not allocate stateless assoc ahead of timeMichael Krelin1-5/+4
that would just pollute the database Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-04reworked extensions frameworkMichael Krelin5-22/+67
* changed {checkid,id_res}_hook to {rp,op}_{checkid,id_res}_hook * deprecated older hooks, although implemented it in sreg and chain extensions * added extension processing to basic_op * added sreg to test OP Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03openid 1 compatibility fix in OPMichael Krelin1-0/+1
I shouldn't be failing if there's no claimed_id field for OpenID 1 request. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03added verify_op that performs discovery on the relying partyMichael Krelin2-3/+55
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>