From: Tobias Brunner Date: Wed, 28 Nov 2012 09:18:28 +0000 (+0100) Subject: Fixed encoding of TLS extensions (elliptic_curves and signature_algorithms) X-Git-Tag: 5.0.2dr4~161 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=07f826af673d492ee08f7b3af892242a1b122c3e Fixed encoding of TLS extensions (elliptic_curves and signature_algorithms) --- diff --git a/src/libtls/tls_crypto.c b/src/libtls/tls_crypto.c index 20a7da0..12aa049 100644 --- a/src/libtls/tls_crypto.c +++ b/src/libtls/tls_crypto.c @@ -1110,6 +1110,7 @@ METHOD(tls_crypto_t, get_signature_algorithms, void, } enumerator->destroy(enumerator); + supported->wrap16(supported); writer->write_data16(writer, supported->get_buf(supported)); supported->destroy(supported); } diff --git a/src/libtls/tls_peer.c b/src/libtls/tls_peer.c index e9f967e..622df40 100644 --- a/src/libtls/tls_peer.c +++ b/src/libtls/tls_peer.c @@ -760,6 +760,7 @@ static status_t send_client_hello(private_tls_peer_t *this, enumerator->destroy(enumerator); if (curves) { + curves->wrap16(curves); extensions->write_data16(extensions, curves->get_buf(curves)); curves->destroy(curves);