Use hostname removing peer_cn.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 19 Jan 2017 01:04:48 +0000 (10:04 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 19 Jan 2017 01:04:48 +0000 (10:04 +0900)
commit4c5dc1776227c81d106e177e231fc43c2d044f66
tree7eec790ed54c29e37127e038187ddb3fef34b80a
parent58ce55fefaf450c534622fea63d073dac8f218de
Use hostname removing peer_cn.

* src/context.h (struct _ntbtls_context_s): Remove peer_cn field.
* src/protocol.c (_ntbtls_read_certificate): Use ->hostname.

--

This change reflects the change of mbedtls API:
bc2b771af4b67c900813e58e7c8c77d7907291c1

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/context.h
src/ntbtls.h.in
src/protocol.c