Fix WOLFSSL_NO_TLS12 for Async dev

This commit is contained in:
Maxime Vincent
2022-02-17 08:10:19 +01:00
parent df0b516c68
commit 111ae9da84
2 changed files with 4 additions and 0 deletions

View File

@@ -6978,8 +6978,10 @@ void FreeKeyExchange(WOLFSSL* ssl)
ssl->async.freeArgs(ssl, ssl->async.args);
ssl->async.freeArgs = NULL;
}
#ifndef WOLFSSL_NO_TLS12
FreeBuildMsgArgs(ssl, &ssl->async.buildArgs);
#endif
#endif
}

View File

@@ -4137,7 +4137,9 @@ typedef struct BuildMsgArgs {
WC_ASYNC_DEV* dev;
FreeArgsCb freeArgs; /* function pointer to cleanup args */
word32 args[MAX_ASYNC_ARGS]; /* holder for current args */
#ifndef WOLFSSL_NO_TLS12
BuildMsgArgs buildArgs; /* holder for current BuildMessage args */
#endif
};
#endif