1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

dir changes - things are broken at the moment

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@116 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2007-08-29 09:15:39 +00:00
parent a1bfbe6b07
commit f9ee197cff
40 changed files with 432 additions and 901 deletions

View File

@ -30,7 +30,7 @@ TARGET=../../$(STAGE)/axssl
endif # cygwin
LIBS=../../$(STAGE)
CFLAGS += -I../../ssl -I../../config
CFLAGS += -I../../crypto -I../../ssl -I../../config
else
TARGET=../../$(STAGE)/axssl.exe
CFLAGS += /I"..\..\ssl" /I"..\..\config"

View File

@ -607,7 +607,8 @@ static void do_client(int argc, char *argv[])
{
while (reconnect--)
{
ssl = ssl_client_new(ssl_ctx, client_fd, session_id);
ssl = ssl_client_new(ssl_ctx, client_fd, session_id,
sizeof(session_id));
if ((res = ssl_handshake_status(ssl)) != SSL_OK)
{
if (!quiet)
@ -635,7 +636,7 @@ static void do_client(int argc, char *argv[])
}
else
{
ssl = ssl_client_new(ssl_ctx, client_fd, NULL);
ssl = ssl_client_new(ssl_ctx, client_fd, NULL, 0);
}
/* check the return status */
@ -854,9 +855,10 @@ static void display_session_id(SSL *ssl)
{
int i;
const uint8_t *session_id = ssl_get_session_id(ssl);
int sess_id_size = ssl_get_session_id_size(ssl);
printf("-----BEGIN SSL SESSION PARAMETERS-----\n");
for (i = 0; i < SSL_SESSION_ID_SIZE; i++)
for (i = 0; i < sess_id_size; i++)
{
printf("%02x", session_id[i]);
}