summaryrefslogtreecommitdiff
path: root/common/url.c
Commit message (Collapse)AuthorAgeFilesLines
* url: Prefer upper-case letters in hex characters when encodingDaiki Ueno2018-11-071-7/+17
| | | | | | | This makes it more compliant with RFC 3986, where the use of upper-case letters is recommended (as "SHOULD"). Suggested by Sumit Bose.
* common: Make case conversion locale independentDaiki Ueno2018-05-251-2/+2
| | | | | | The tolower()/toupper() functions take into account of the current locale settings, which p11-kit doesn't want. Add replacement functions that work as if they are called under the C locale.
* common, trust: Avoid integer overflowDaiki Ueno2016-12-061-1/+1
| | | | | | | This fixes issues pointed in: https://bugzilla.redhat.com/show_bug.cgi?id=985445 except for p11-kit/conf.c:read_config_file(), which was rewritten using mmap() and thus length calculation is no longer needed.
* url: Encode directly to a bufferStef Walter2013-05-271-19/+10
|
* url: Split out the URL encoding and decoding functionsStef Walter2013-03-151-0/+142
We want to use these as the format for encoding binary data in our PKCS#11 attribute persistence https://bugs.freedesktop.org/show_bug.cgi?id=62156