diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-07-22 23:48:23 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-07-22 23:48:23 +0200 |
commit | 688f3f9471266e0fb500b4ec5c4f2ab3729c8808 (patch) | |
tree | f1fe7ff4efdf0d2af61caa756f16041158a7357a | |
parent | db809e1605f7cbec22dfc376d25b036070bd1a46 (diff) | |
download | gnutls-688f3f9471266e0fb500b4ec5c4f2ab3729c8808.tar.gz |
use const return value in ip_to_string
-rw-r--r-- | lib/x509/output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/x509/output.c b/lib/x509/output.c index 41f3be710c..41de7e193a 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -40,7 +40,7 @@ #define ERROR_STR (char*) "(error)" -static char *ip_to_string(void *_ip, int ip_size, char *string, +static const char *ip_to_string(void *_ip, int ip_size, char *string, int string_size) { uint8_t *ip; @@ -89,7 +89,7 @@ add_altname(gnutls_buffer_st * str, const char *prefix, unsigned int alt_type, char *name, size_t name_size) { char str_ip[64]; - char *p; + const char *p; if ((alt_type == GNUTLS_SAN_DNSNAME || alt_type == GNUTLS_SAN_RFC822NAME @@ -538,7 +538,7 @@ static void print_crldist(gnutls_buffer_st * str, gnutls_x509_crt_t cert) char *buffer = NULL; size_t size; char str_ip[64]; - char *p; + const char *p; int err; int indx; |