summaryrefslogtreecommitdiff
path: root/lib/str.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/str.c: Replace sscanf() in _gnutls_buffer_unescape()Tim Rühsen2019-10-131-14/+11
| | | | | | Fixes Coverity issue 1454651 Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Use https:// for www.gnu.org and www.example.comTim Rühsen2019-03-131-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Remove redundant resets of variables after free()Tim Rühsen2019-02-221-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Fix typos in lib/tmp-fix-typos-in-libTim Rühsen2019-01-041-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* vasprintf: use from gnulib; don't bundle twiceNikos Mavrogiannopoulos2018-12-191-1/+0
| | | | | | Relates #653 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* buf: _gnutls_buffer_pop_data made easier to useNikos Mavrogiannopoulos2018-02-191-9/+8
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* kx: moved to new buffer APINikos Mavrogiannopoulos2018-02-191-8/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: added _gnutls_buffer_pop_prefix24 and _gnutls_buffer_pop_prefix8Nikos Mavrogiannopoulos2018-02-191-0/+45
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: use assert to mark impossible casesNikos Mavrogiannopoulos2018-02-191-0/+2
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: allow creating a read-only bufferNikos Mavrogiannopoulos2018-02-191-1/+6
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: rename _gnutls_buffer_pop_prefix to _gnutls_buffer_pop_prefix32Nikos Mavrogiannopoulos2018-02-191-3/+3
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: rename _gnutls_buffer_pop_datum_prefix to _gnutls_buffer_pop_datum_prefix32Nikos Mavrogiannopoulos2018-02-191-2/+2
| | | | 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/+62
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* str: added function to append fixed-size MPINikos Mavrogiannopoulos2018-02-191-0/+37
| | | | | | | This is used in TLS 1.3 which introduces a new MPI over-the-wire format. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* nettle base64_encode_raw: use cast to avoid warningsNikos Mavrogiannopoulos2018-02-061-1/+1
| | | | | | | | | | | Nettle switched prototypes for base64_encode_raw() as follows: -base64_encode_raw(uint8_t *dst, size_t length, const uint8_t *src); +base64_encode_raw(char *dst, size_t length, const uint8_t *src); That means we need to cast fist param to void if we want to avoid warnings on different platforms. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* _gnutls_buffer_append_data_prefix: cleanupNikos Mavrogiannopoulos2017-07-131-6/+5
| | | | | | | | This eliminates a misleading code that assumed that the called functions will return the appended size. Always return zero on success which is what the existing callers assume. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* Removed unused functionsNikos Mavrogiannopoulos2017-07-101-33/+0
| | | | | | | These were identified using callcatcher. http://www.skynet.ie/~caolan/Packages/callcatcher.html Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* x509/output: print the public key PIN of a certificateNikos Mavrogiannopoulos2017-02-231-0/+21
| | | | | | | That is, print the value used by the HPKP protocol as per RFC7469. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* eliminated various clang warnings with non-null argumentsNikos Mavrogiannopoulos2017-02-201-0/+3
| | | | | | | That is, use assert() to ensure that known to be non-null variables will be used as input to functions requiring non-null. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* avoid the use of c_isascii() and use c_isprint()Nikos Mavrogiannopoulos2016-11-231-1/+1
| | | | | That latter detects correctly the printable characters we are interested in.
* cleanups in _gnutls_buffer_to_datum()Nikos Mavrogiannopoulos2016-11-141-5/+9
|
* several spacing fixes to keep syntax-check happyNikos Mavrogiannopoulos2016-09-111-1/+1
|
* avoid the usage of strncpyNikos Mavrogiannopoulos2016-09-111-1/+1
|
* _gnutls_hex2bin: refuse to decode odd-sized hex dataNikos Mavrogiannopoulos2016-04-291-0/+3
|
* _gnutls_hex2bin: avoid overrun in the provided bufferNikos Mavrogiannopoulos2015-09-141-2/+1
|
* Removed the 'gnutls_' prefix from files to simplify file namingNikos Mavrogiannopoulos2015-08-231-0/+951