[BACKPORT] x509: optimize subject alternative name access 26/133326/1
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 2 Feb 2017 21:59:43 +0000 (22:59 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Fri, 9 Jun 2017 19:33:32 +0000 (21:33 +0200)
commit4cbf2db4952f89a2972a925e85f639afb81c9dd7
tree3f24c8d05c73673fa7834ffa8e6fdefd3121e60d
parent01709c10d6c2d64b91691ec5218379b29e930c9f
[BACKPORT] x509: optimize subject alternative name access

That reads SAN and IAN early on import, significantly reducing
the running time of functions which iterate over the alternative
names of a certificate, e.g., gnutls_x509_crt_check_hostname().

Relates #165

Re-apply this patch for Tizen on top of upstream version 3.3.27.
Previously this patch was backported on top of 3.3.5.

Change-Id: I5987a8b4e6f216609957dc8cea952d77498f1910
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
lib/x509/x509.c
lib/x509/x509_int.h