summaryrefslogtreecommitdiffabout
path: root/lib/util.cc
AgeCommit message (Collapse)AuthorFilesLines
2009-09-13minor url_decode improvementsMichael Krelin1-4/+3
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>
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 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 Krelin1-3/+3
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-03-02aded util::url_decode()Michael Krelin1-0/+28
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-19added an identifier normalization utility functionMichael Krelin1-3/+38
* 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-19use local array for hmac when calculating signatureMichael Krelin1-4/+7
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02moved uri matching into separate procedureMichael Krelin1-0/+30
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-01-20the whole library rewrittenMichael Krelin1-2/+69
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04fix to rfc normalizationMichael Krelin1-1/+2
It kept prepending a '/' to the trailing segment even if the segment was past [?#] 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>
2007-12-09Merge branch 'next' into devel/xriMichael Krelin1-3/+3
2007-12-09reworked identity resolution and service discoveryMichael Krelin1-10/+12
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-04save a couple of ticks and make a bit more senseMichael Krelin1-3/+3
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-12-02first cut on XRI resolverMichael Krelin1-4/+12
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-28keep keeping compilers happyMichael Krelin1-1/+1
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-21added some missing includes for gcc 4.3Michael Krelin1-0/+1
According to Marcus Rueckert gcc 4.3 wants these. Thanks, Marcus! 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-06-18reworked zero-padding machinery and added one more instance of zero-paddingMichael Krelin1-3/+7
2007-01-12eliminated mimetic dependency and made use of openssl base64 encoder insteadMichael Krelin1-11/+56
2005-07-20moved util::canonicalize_url to consumer classMichael Krelin1-25/+0
2005-07-19initial commit of libopkele - OpenID support libraryMichael Krelin1-0/+138