mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Fixed a few minor build errors with async enabled.
This commit is contained in:
@@ -2999,7 +2999,7 @@ typedef struct HS_Hashes {
|
|||||||
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
#define MAX_ASYNC_ARGS 16
|
#define MAX_ASYNC_ARGS 18
|
||||||
typedef void (*FreeArgsCb)(struct WOLFSSL* ssl, void* pArgs);
|
typedef void (*FreeArgsCb)(struct WOLFSSL* ssl, void* pArgs);
|
||||||
|
|
||||||
struct WOLFSSL_ASYNC {
|
struct WOLFSSL_ASYNC {
|
||||||
|
@@ -30,6 +30,10 @@
|
|||||||
#include <wolfssl/wolfcrypt/fe_operations.h>
|
#include <wolfssl/wolfcrypt/fe_operations.h>
|
||||||
#include <wolfssl/wolfcrypt/random.h>
|
#include <wolfssl/wolfcrypt/random.h>
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
|
#include <wolfssl/wolfcrypt/async.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@@ -50,7 +54,7 @@ typedef struct {
|
|||||||
#ifdef FREESCALE_LTC_ECC
|
#ifdef FREESCALE_LTC_ECC
|
||||||
byte pointY[CURVE25519_KEYSIZE];
|
byte pointY[CURVE25519_KEYSIZE];
|
||||||
#endif
|
#endif
|
||||||
}ECPoint;
|
} ECPoint;
|
||||||
|
|
||||||
/* A CURVE25519 Key */
|
/* A CURVE25519 Key */
|
||||||
typedef struct curve25519_key {
|
typedef struct curve25519_key {
|
||||||
@@ -61,6 +65,10 @@ typedef struct curve25519_key {
|
|||||||
curves (idx >= 0) or user supplied */
|
curves (idx >= 0) or user supplied */
|
||||||
ECPoint p; /* public key */
|
ECPoint p; /* public key */
|
||||||
ECPoint k; /* private key */
|
ECPoint k; /* private key */
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
|
WC_ASYNC_DEV asyncDev;
|
||||||
|
#endif
|
||||||
} curve25519_key;
|
} curve25519_key;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
Reference in New Issue
Block a user