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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user