summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-16 20:48:18 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-16 21:27:19 +0200
commita501b7d37dda50953077b3e7083e6ec3be1157cc (patch)
tree6004658dd325c6ca865bc8c25767c599589552cf /lib
parent43a4f7e4eba901e5fffaa2bbdb6d1f43fde51e10 (diff)
downloadgnutls-a501b7d37dda50953077b3e7083e6ec3be1157cc.tar.gz
MAX_NAME_SIZE -> MAX_SERVER_NAME_SIZE
Diffstat (limited to 'lib')
-rw-r--r--lib/x509/verify-high.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index 3b3c02ceb3..2ec527939a 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -35,7 +35,7 @@
struct named_cert_st {
gnutls_x509_crt_t cert;
- uint8_t name[MAX_NAME_SIZE];
+ uint8_t name[MAX_SERVER_NAME_SIZE];
unsigned int name_size;
};
@@ -223,7 +223,7 @@ gnutls_x509_trust_list_add_named_crt(gnutls_x509_trust_list_t list,
int ret;
uint32_t hash;
- if (name_size >= MAX_NAME_SIZE)
+ if (name_size >= MAX_SERVER_NAME_SIZE)
return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
ret = gnutls_x509_crt_get_raw_issuer_dn(cert, &dn);