forked from wolfSSL/wolfssl
change SESSION_STATS to PRINT_SESSION_STATS, will add WOLFSSL_SESSION_STATS
This commit is contained in:
@@ -615,6 +615,7 @@
|
|||||||
#define CyaSSL_connect_cert wolfSSL_connect_cert
|
#define CyaSSL_connect_cert wolfSSL_connect_cert
|
||||||
#define CyaSSL_flush_sessions wolfSSL_flush_sessions
|
#define CyaSSL_flush_sessions wolfSSL_flush_sessions
|
||||||
#define CyaSSL_get_using_nonblock wolfSSL_get_using_nonblock
|
#define CyaSSL_get_using_nonblock wolfSSL_get_using_nonblock
|
||||||
|
#define CyaSSL_PrintSessionStats wolfSSL_PrintSessionStats
|
||||||
|
|
||||||
/* DTLS Specific */
|
/* DTLS Specific */
|
||||||
#define CyaSSL_dtls wolfSSL_dtls
|
#define CyaSSL_dtls wolfSSL_dtls
|
||||||
|
@@ -54,10 +54,6 @@
|
|||||||
#include "examples/echoserver/echoserver.h"
|
#include "examples/echoserver/echoserver.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef SESSION_STATS
|
|
||||||
CYASSL_API void PrintSessionStats(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SVR_COMMAND_SIZE 256
|
#define SVR_COMMAND_SIZE 256
|
||||||
|
|
||||||
static void SignalReady(void* args, word16 port)
|
static void SignalReady(void* args, word16 port)
|
||||||
@@ -275,9 +271,9 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
|
|||||||
printf("client sent break command: closing session!\n");
|
printf("client sent break command: closing session!\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef SESSION_STATS
|
#ifdef PRINT_SESSION_STATS
|
||||||
if ( strncmp(command, "printstats", 10) == 0) {
|
if ( strncmp(command, "printstats", 10) == 0) {
|
||||||
PrintSessionStats();
|
CyaSSL_PrintSessionStats();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -5979,10 +5979,10 @@ WOLFSSL_X509_CHAIN* wolfSSL_SESSION_get_peer_chain(WOLFSSL_SESSION* session)
|
|||||||
#endif /* SESSION_INDEX && SESSION_CERTS */
|
#endif /* SESSION_INDEX && SESSION_CERTS */
|
||||||
|
|
||||||
|
|
||||||
#ifdef SESSION_STATS
|
#ifdef PRINT_SESSION_STATS
|
||||||
|
|
||||||
WOLFSSL_API
|
WOLFSSL_API
|
||||||
void PrintSessionStats(void)
|
void wolfSSL_PrintSessionStats(void)
|
||||||
{
|
{
|
||||||
word32 totalSessionsSeen = 0;
|
word32 totalSessionsSeen = 0;
|
||||||
word32 totalSessionsNow = 0;
|
word32 totalSessionsNow = 0;
|
||||||
|
@@ -1375,6 +1375,8 @@ WOLFSSL_API int wolfSSL_set_SessionTicket_cb(WOLFSSL*,
|
|||||||
#define WOLFSSL_CRL_MONITOR 0x01 /* monitor this dir flag */
|
#define WOLFSSL_CRL_MONITOR 0x01 /* monitor this dir flag */
|
||||||
#define WOLFSSL_CRL_START_MON 0x02 /* start monitoring flag */
|
#define WOLFSSL_CRL_START_MON 0x02 /* start monitoring flag */
|
||||||
|
|
||||||
|
WOLFSSL_API
|
||||||
|
void wolfSSL_PrintSessionStats(void);
|
||||||
|
|
||||||
/* External facing KDF */
|
/* External facing KDF */
|
||||||
WOLFSSL_API
|
WOLFSSL_API
|
||||||
|
Reference in New Issue
Block a user