summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-15 14:45:20 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-19 15:29:33 +0100
commitcfeb22adbbbfb6dafcfcaf2185a7c44d38a97f7e (patch)
tree82f0eb283440be5e5740c57792d9893831a30788
parent55c7818fba5d84780d18b3a3aa5a6a42cfde03a3 (diff)
downloadgnutls-cfeb22adbbbfb6dafcfcaf2185a7c44d38a97f7e.tar.gz
str: rename _gnutls_buffer_pop_datum_prefix to _gnutls_buffer_pop_datum_prefix32
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/str.c4
-rw-r--r--lib/str.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/str.c b/lib/str.c
index 17e4fe3b86..404d466ab0 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -800,8 +800,8 @@ _gnutls_buffer_pop_prefix(gnutls_buffer_st * buf, size_t * data_size,
}
int
-_gnutls_buffer_pop_datum_prefix(gnutls_buffer_st * buf,
- gnutls_datum_t * data)
+_gnutls_buffer_pop_datum_prefix32(gnutls_buffer_st * buf,
+ gnutls_datum_t * data)
{
size_t size;
int ret;
diff --git a/lib/str.h b/lib/str.h
index 48dd15e314..c7ba54af47 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -124,8 +124,8 @@ int _gnutls_buffer_pop_prefix(gnutls_buffer_st * buf, size_t * data_size,
int check);
/* 32-bit prefix */
-int _gnutls_buffer_pop_datum_prefix(gnutls_buffer_st * buf,
- gnutls_datum_t * data);
+int _gnutls_buffer_pop_datum_prefix32(gnutls_buffer_st * buf,
+ gnutls_datum_t * data);
/* 16-bit prefix */
int _gnutls_buffer_pop_datum_prefix16(gnutls_buffer_st * buf,
@@ -234,7 +234,7 @@ int _gnutls_hostname_compare(const char *certname, size_t certnamesize,
#define BUFFER_POP_DATUM(b, o) { \
gnutls_datum_t d; \
- ret = _gnutls_buffer_pop_datum_prefix(b, &d); \
+ ret = _gnutls_buffer_pop_datum_prefix32(b, &d); \
if (ret >= 0) \
ret = _gnutls_set_datum (o, d.data, d.size); \
if (ret < 0) { \