diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-15 13:02:57 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-15 13:02:57 +0200 |
commit | b51ac45c484b4fb08153fe2075b8899d48d36862 (patch) | |
tree | b01e63e2fda0a75203112d47d2c10451e8d66101 /src/libtls/tls.c | |
parent | 758d7283fbb626f5e90595ce180396e372bd4d8f (diff) | |
download | strongswan-b51ac45c484b4fb08153fe2075b8899d48d36862.tar.bz2 strongswan-b51ac45c484b4fb08153fe2075b8899d48d36862.tar.xz |
optional certificate-based peer authentication on TLS server side
Diffstat (limited to 'src/libtls/tls.c')
-rw-r--r-- | src/libtls/tls.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libtls/tls.c b/src/libtls/tls.c index 24f442ca9..e3be79dda 100644 --- a/src/libtls/tls.c +++ b/src/libtls/tls.c @@ -178,8 +178,8 @@ METHOD(tls_t, destroy, void, * See header */ tls_t *tls_create(bool is_server, identification_t *server, - identification_t *peer, char *msk_label, - tls_application_t *application) + identification_t *peer, bool request_peer_auth, + char *msk_label, tls_application_t *application) { private_tls_t *this; @@ -205,7 +205,8 @@ tls_t *tls_create(bool is_server, identification_t *server, if (is_server) { this->handshake = &tls_server_create(&this->public, this->crypto, - this->server, this->peer)->handshake; + this->server, this->peer, + request_peer_auth)->handshake; } else { |