]> git.ipfire.org Git - thirdparty/hostap.git/commit
wolfSSL: Fix dNSName matching with domain_match and domain_suffix_match
authorJouni Malinen <jouni@codeaurora.org>
Tue, 9 Apr 2019 13:22:13 +0000 (16:22 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 9 Apr 2019 13:24:38 +0000 (16:24 +0300)
commitdcc0ccd5b0faab259a48c0cb6427b8b825ba4217
tree0448741ee9ad2c6e579dc42fd2ab27c56a00a21d
parent83f13e4ff688548678b8a3308522fe42e1dd3c5e
wolfSSL: Fix dNSName matching with domain_match and domain_suffix_match

Incorrect gen->type value was used to check whether subjectAltName
contained dNSName entries. This resulted in all domain_match and
domain_suffix_match entries failing to find a match and rejecting the
server certificate. Fix this by checking against the correct type
definition for dNSName.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/crypto/tls_wolfssl.c