mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
fix -Wunused-macros
This commit is contained in:
@@ -1615,13 +1615,8 @@ int AddCA(CYASSL_CERT_MANAGER* cm, buffer der, int type, int verify)
|
|||||||
|
|
||||||
static ClientRow ClientCache[SESSION_ROWS]; /* Client Cache */
|
static ClientRow ClientCache[SESSION_ROWS]; /* Client Cache */
|
||||||
/* uses session mutex */
|
/* uses session mutex */
|
||||||
|
|
||||||
#endif /* NO_CLIENT_CACHE */
|
#endif /* NO_CLIENT_CACHE */
|
||||||
|
|
||||||
/* for persistance, if changes to layout need to increment and modify
|
|
||||||
save_session_cache() and restore_session_cache and memory versions too */
|
|
||||||
#define CYASSL_CACHE_VERSION 2
|
|
||||||
|
|
||||||
#endif /* NO_SESSION_CACHE */
|
#endif /* NO_SESSION_CACHE */
|
||||||
|
|
||||||
|
|
||||||
@@ -3455,6 +3450,10 @@ int CyaSSL_SetServerID(CYASSL* ssl, const byte* id, int len, int newSession)
|
|||||||
|
|
||||||
#if defined(PERSIST_SESSION_CACHE)
|
#if defined(PERSIST_SESSION_CACHE)
|
||||||
|
|
||||||
|
/* for persistance, if changes to layout need to increment and modify
|
||||||
|
save_session_cache() and restore_session_cache and memory versions too */
|
||||||
|
#define CYASSL_CACHE_VERSION 2
|
||||||
|
|
||||||
/* Session Cache Header information */
|
/* Session Cache Header information */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int version; /* cache layout version id */
|
int version; /* cache layout version id */
|
||||||
|
@@ -36,7 +36,9 @@
|
|||||||
#define MAX_COMMAND_SZ 240
|
#define MAX_COMMAND_SZ 240
|
||||||
#define MAX_SUITE_SZ 80
|
#define MAX_SUITE_SZ 80
|
||||||
#define NOT_BUILT_IN -123
|
#define NOT_BUILT_IN -123
|
||||||
#define VERSION_TOO_OLD -124
|
#ifdef NO_OLD_TLS
|
||||||
|
#define VERSION_TOO_OLD -124
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "examples/client/client.h"
|
#include "examples/client/client.h"
|
||||||
#include "examples/server/server.h"
|
#include "examples/server/server.h"
|
||||||
|
Reference in New Issue
Block a user