Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/tlsdate-helper-plan9.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,14 @@ run_ssl (uint32_t *time_map, int time_is_an_illusion)
{
verb ("V: using TLSv1_client_method()\n");
ctx = SSL_CTX_new(TLSv1_client_method());
} else if (0 == strcmp("tlsv11", protocol))
{
verb ("V: using TLSv1_1_client_method()");
ctx = SSL_CTX_new(TLSv1_1_client_method());
} else if (0 == strcmp("tlsv12", protocol))
{
verb ("V: using TLSv1_2_client_method()");
ctx = SSL_CTX_new(TLSv1_2_client_method());
} else
die("Unsupported protocol `%s'\n", protocol);

Expand Down
8 changes: 8 additions & 0 deletions src/tlsdate-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,14 @@ run_ssl (uint32_t *time_map, int time_is_an_illusion, int http)
{
verb ("V: using TLSv1_client_method()");
ctx = SSL_CTX_new(TLSv1_client_method());
} else if (0 == strcmp("tlsv11", protocol))
{
verb ("V: using TLSv1_1_client_method()");
ctx = SSL_CTX_new(TLSv1_1_client_method());
} else if (0 == strcmp("tlsv12", protocol))
{
verb ("V: using TLSv1_2_client_method()");
ctx = SSL_CTX_new(TLSv1_2_client_method());
} else
die("Unsupported protocol `%s'", protocol);

Expand Down
2 changes: 1 addition & 1 deletion src/tlsdate.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ usage (void)
" [-n|--dont-set-clock]\n"
" [-H|--host] [hostname|ip]\n"
" [-p|--port] [port number]\n"
" [-P|--protocol] [sslv23|sslv3|tlsv1]\n"
" [-P|--protocol] [sslv23|sslv3|tlsv1|tlsv11|tlsv12]\n"
" [-C|--certcontainer] [dirname|filename]\n"
" [-v|--verbose]\n"
" [-V|--showtime] [human|raw]\n"
Expand Down