diff --git a/src/ssl/negotiate.c b/src/ssl/negotiate.c index d50ef8d..200a5a1 100644 --- a/src/ssl/negotiate.c +++ b/src/ssl/negotiate.c @@ -158,14 +158,18 @@ static const struct ssl_protocol { .id = TLS1_2_VERSION, .description = SSL_TXT_TLSV1_2 }, +#ifdef DTLS1_VERSION { .id = DTLS1_VERSION, .description = "DTLSv1" }, +#endif // DTLS1_VERSION +#ifdef DTLS1_2_VERSION { .id = DTLS1_2_VERSION, .description = "DTLSv2" - } + }, +#endif // DTLS1_2_VERSION }; -- libgit2 0.21.2