summaryrefslogtreecommitdiff
path: root/lib/str.h
Commit message (Collapse)AuthorAgeFilesLines
* buf: _gnutls_buffer_pop_data made easier to useNikos Mavrogiannopoulos2018-02-191-4/+3
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* kx: moved to new buffer APINikos Mavrogiannopoulos2018-02-191-3/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: added _gnutls_buffer_pop_prefix24 and _gnutls_buffer_pop_prefix8Nikos Mavrogiannopoulos2018-02-191-0/+5
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: allow creating a read-only bufferNikos Mavrogiannopoulos2018-02-191-0/+9
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: rename _gnutls_buffer_pop_prefix to _gnutls_buffer_pop_prefix32Nikos Mavrogiannopoulos2018-02-191-4/+4
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: rename _gnutls_buffer_pop_datum_prefix to _gnutls_buffer_pop_datum_prefix32Nikos Mavrogiannopoulos2018-02-191-3/+3
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: added helper functions to read prefixed data with 8 or 16-bit headersNikos Mavrogiannopoulos2018-02-191-0/+11
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: added function to append fixed-size MPINikos Mavrogiannopoulos2018-02-191-0/+4
| | | | | | | This is used in TLS 1.3 which introduces a new MPI over-the-wire format. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* server_name: several simplifications of the code baseNikos Mavrogiannopoulos2017-07-211-0/+10
| | | | | | | | | | | | | The existing code was written with the intention of supporting multiple server names, however that was never happened, and this extension is currently only used for DNS server names. Remove unneeded extensibility. In addition, removed conversion of client provided server name (DNS) to IDNA. Clients not providing valid names are violating the spec and that conversion step not only wastes resources, but increases the attack surface of a server. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* Removed unused functionsNikos Mavrogiannopoulos2017-07-101-5/+0
| | | | | | | These were identified using callcatcher. http://www.skynet.ie/~caolan/Packages/callcatcher.html Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* Added _gnutls_idna_email_reverse_mapNikos Mavrogiannopoulos2017-02-281-0/+1
| | | | | | | This allows printing the reverse map of an IDNA-encoded email. Modified x509/output to include this decoding for RFC822Name. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* x509/output: print the public key PIN of a certificateNikos Mavrogiannopoulos2017-02-231-0/+2
| | | | | | | That is, print the value used by the HPKP protocol as per RFC7469. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* Exported gnutls_idna_map() and gnutls_idna_reverse_map()Nikos Mavrogiannopoulos2017-01-261-21/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Add support for libidn2 (IDNA 2008 + TR46)Tim Rühsen2017-01-251-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* str: do not call gnutls_assert in inline functionNikos Mavrogiannopoulos2016-12-081-1/+2
| | | | This allows the build to succeed when compiled without libidn.
* introduced _gnutls_idna_reverse_map()Nikos Mavrogiannopoulos2016-11-251-0/+2
| | | | This function allows mapping ACE formatted domains to UTF-8.
* When writing alternative names to certificates ensure we write in ACE formatNikos Mavrogiannopoulos2016-11-251-0/+14
|
* gnutls_idna_map was prefixed with underscore to avoid clashes with exported ↵tmp-mini-idna2003-updateNikos Mavrogiannopoulos2016-11-231-3/+4
| | | | symbols
* IDNA code re-organizationNikos Mavrogiannopoulos2016-11-231-0/+18
| | | | | | That introduces the internal function gnutls_idna_map(), which utilizes libidn and libunistring to convert hostnames to IDNA ACE form.
* unconditionally include unistring codeNikos Mavrogiannopoulos2016-11-211-2/+1
| | | | | | That simplifies internationalization support, at the cost of including a version of libunistring, which is used on systems which do not ship it.
* tolerate non-valid UTF8 passwords when decryptingNikos Mavrogiannopoulos2016-11-201-3/+4
|
* PKCS#7/8: normalize the password according to rfc7613Nikos Mavrogiannopoulos2016-11-201-0/+3
|
* Added function for UTF-8 normalization based on RFC7613Nikos Mavrogiannopoulos2016-11-201-0/+4
| | | | This introduces gnutls_utf8_password_normalize() and a dependency on libunistring.
* several spacing fixes to keep syntax-check happyNikos Mavrogiannopoulos2016-09-111-59/+59
|
* Removed the 'gnutls_' prefix from files to simplify file namingNikos Mavrogiannopoulos2015-08-231-0/+221