summaryrefslogtreecommitdiffabout
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
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>
2008-02-02moved uri matching into separate procedureMichael Krelin2-32/+33
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02check if return_to matches realmMichael Krelin1-0/+36
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02first rough cut on OP 2.0 implementationMichael Krelin2-1/+322
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02added util::attr_escapeMichael Krelin1-0/+19
escaping string for inclusion into x(ht)ml attributes Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02generate html form hiddens from the openid messageMichael Krelin1-0/+20
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-31added util::change_mode_message_proxy classMichael Krelin1-19/+2
generatlized checkauth_message_proxy and added it to util namespace. To be later used for constructing setup url in 1.0 checkid_immediate reply. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-30a few changes to the infrastructureMichael Krelin1-1/+18
* added mode_unknown to the mode_t enumeration * add to_keyvalues(ostream&) to openid message class * fixed openid_message_t::set_field for the case of overwriting Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-23check associate reply for consistencyMichael Krelin1-3/+6
Reject associate replies returning secret of inconsistent with association type length. This way severely broken OPs which return SHA1 association as SHA256 will still work in dumb mode. 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 Krelin12-167/+871
Signed-off-by: Michael Krelin <hacker@klever.net>