aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-09-06 10:54:11 +0200
committerMartin Willi <martin@revosec.ch>2010-09-06 15:37:51 +0200
commit6cf85b35a41a18f3c316ceddd045d4672dfef8d3 (patch)
tree7cb972dc3705d0d469f834e0438dd1e155c99796 /src/libtls/tls.c
parent3255e489be926866a40cf81c82bbf3f72200fe69 (diff)
downloadstrongswan-6cf85b35a41a18f3c316ceddd045d4672dfef8d3.tar.bz2
strongswan-6cf85b35a41a18f3c316ceddd045d4672dfef8d3.tar.xz
Added TLS extension identifiers from RFC 3546
Diffstat (limited to 'src/libtls/tls.c')
-rw-r--r--src/libtls/tls.c27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/libtls/tls.c b/src/libtls/tls.c
index 0d40211eb..20141f235 100644
--- a/src/libtls/tls.c
+++ b/src/libtls/tls.c
@@ -44,23 +44,36 @@ ENUM_BEGIN(tls_handshake_type_names, TLS_HELLO_REQUEST, TLS_SERVER_HELLO,
"HelloRequest",
"ClientHello",
"ServerHello");
-ENUM_NEXT(tls_handshake_type_names, TLS_CERTIFICATE, TLS_CLIENT_KEY_EXCHANGE, TLS_SERVER_HELLO,
+ENUM_NEXT(tls_handshake_type_names,
+ TLS_CERTIFICATE, TLS_CLIENT_KEY_EXCHANGE, TLS_SERVER_HELLO,
"Certificate",
"ServerKeyExchange",
"CertificateRequest",
"ServerHelloDone",
"CertificateVerify",
"ClientKeyExchange");
-ENUM_NEXT(tls_handshake_type_names, TLS_FINISHED, TLS_FINISHED, TLS_CLIENT_KEY_EXCHANGE,
+ENUM_NEXT(tls_handshake_type_names,
+ TLS_FINISHED, TLS_FINISHED, TLS_CLIENT_KEY_EXCHANGE,
"Finished");
ENUM_END(tls_handshake_type_names, TLS_FINISHED);
-ENUM(tls_extension_names, TLS_EXT_ELLIPTIC_CURVES, TLS_EXT_SIGNATURE_ALGORITHMS,
+ENUM_BEGIN(tls_extension_names, TLS_EXT_SERVER_NAME, TLS_EXT_STATUS_REQUEST,
+ "server name",
+ "max fragment length",
+ "client certificate url",
+ "trusted ca keys",
+ "truncated hmac",
+ "status request");
+ENUM_NEXT(tls_extension_names,
+ TLS_EXT_ELLIPTIC_CURVES, TLS_EXT_EC_POINT_FORMATS,
+ TLS_EXT_STATUS_REQUEST,
"elliptic curves",
- "ec point formats",
- "(12)",
- "signature algorithms",
-);
+ "ec point formats");
+ENUM_NEXT(tls_extension_names,
+ TLS_EXT_SIGNATURE_ALGORITHMS, TLS_EXT_SIGNATURE_ALGORITHMS,
+ TLS_EXT_EC_POINT_FORMATS,
+ "signature algorithms");
+ENUM_END(tls_extension_names, TLS_EXT_SIGNATURE_ALGORITHMS);
/**
* TLS record