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

Added warning when no certificate.

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@31 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2006-08-12 02:52:36 +00:00
parent cd9b3c8865
commit e2cf04d605

View File

@ -42,6 +42,15 @@ EXP_FUNC SSL * STDCALL ssl_server_new(SSLCTX *ssl_ctx, int client_fd)
SSL *ssl = ssl_new(ssl_ctx, client_fd);
ssl->next_state = HS_CLIENT_HELLO;
ssl->hs_status = SSL_NOT_OK; /* not connected */
#ifdef CONFIG_SSL_FULL_MODE
if (ssl_ctx->chain_length == 0)
{
printf("Warning - no server certificate defined\n");
TTY_FLUSH();
}
#endif
return ssl;
}