mirror of
https://github.com/esp8266/Arduino.git
synced 2025-10-15 11:26:40 +03:00
* X509 State, country and location are now used for verification and display.
* SNI hostname memory is now managed by the calling application * X509 version number is checked before processing v3 extensions. git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@272 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
committed by
Ivan Grokhotkov
parent
425067abe6
commit
2213f30449
@@ -650,7 +650,6 @@ static void do_client(int argc, char *argv[])
|
||||
}
|
||||
|
||||
ssl_free(ssl);
|
||||
ssl_ext_free(extensions);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -660,7 +659,6 @@ static void do_client(int argc, char *argv[])
|
||||
if (reconnect)
|
||||
{
|
||||
ssl_free(ssl);
|
||||
ssl_ext_free(extensions);
|
||||
SOCKET_CLOSE(client_fd);
|
||||
|
||||
client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||
@@ -687,13 +685,6 @@ static void do_client(int argc, char *argv[])
|
||||
|
||||
if (!quiet)
|
||||
{
|
||||
const char *common_name = ssl_get_cert_dn(ssl,
|
||||
SSL_X509_CERT_COMMON_NAME);
|
||||
if (common_name)
|
||||
{
|
||||
printf("Common Name:\t\t\t%s\n", common_name);
|
||||
}
|
||||
|
||||
display_session_id(ssl);
|
||||
display_cipher(ssl);
|
||||
}
|
||||
@@ -766,7 +757,6 @@ static void do_client(int argc, char *argv[])
|
||||
}
|
||||
|
||||
ssl_ctx_free(ssl_ctx);
|
||||
ssl_ext_free(extensions);
|
||||
SOCKET_CLOSE(client_fd);
|
||||
#else
|
||||
print_client_options(argv[1]);
|
||||
|
Reference in New Issue
Block a user