diff options
author | Martin Willi <martin@revosec.ch> | 2010-08-24 11:34:43 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-08-24 11:34:43 +0200 |
commit | 69e8bb2e8d61a8e7b2a889eaae9722a4e5ed51c6 (patch) | |
tree | 1e4fbeded6b1cd5b456a21c594f80a212d7f2b89 /src/libtls/tls.c | |
parent | a2c12359691943ede12f7f515cbe97af1b193e7b (diff) | |
download | strongswan-69e8bb2e8d61a8e7b2a889eaae9722a4e5ed51c6.tar.bz2 strongswan-69e8bb2e8d61a8e7b2a889eaae9722a4e5ed51c6.tar.xz |
Pass NULL peer identity to omit TLS peer authentication, added eap-ttls.request_peer_auth option
Diffstat (limited to 'src/libtls/tls.c')
-rw-r--r-- | src/libtls/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtls/tls.c b/src/libtls/tls.c index 142897e59..32e31c66d 100644 --- a/src/libtls/tls.c +++ b/src/libtls/tls.c @@ -268,7 +268,7 @@ METHOD(tls_t, destroy, void, this->fragmentation->destroy(this->fragmentation); this->crypto->destroy(this->crypto); this->handshake->destroy(this->handshake); - this->peer->destroy(this->peer); + DESTROY_IF(this->peer); this->server->destroy(this->server); DESTROY_IF(this->application); this->alert->destroy(this->alert); @@ -309,7 +309,7 @@ tls_t *tls_create(bool is_server, identification_t *server, .is_server = is_server, .version = TLS_1_2, .server = server->clone(server), - .peer = peer->clone(peer), + .peer = peer ? peer->clone(peer) : NULL, .application = application, .purpose = purpose, ); |