mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
@@ -1355,6 +1355,7 @@ int wolfSSL_negotiate(WOLFSSL* ssl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WOLFSSL_ABI
|
||||||
WC_RNG* wolfSSL_GetRNG(WOLFSSL* ssl)
|
WC_RNG* wolfSSL_GetRNG(WOLFSSL* ssl)
|
||||||
{
|
{
|
||||||
if (ssl) {
|
if (ssl) {
|
||||||
@@ -2067,6 +2068,7 @@ int wolfSSL_CTX_SetDevId(WOLFSSL_CTX* ctx, int devId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* helpers to get device id and heap */
|
/* helpers to get device id and heap */
|
||||||
|
WOLFSSL_ABI
|
||||||
int wolfSSL_CTX_GetDevId(WOLFSSL_CTX* ctx, WOLFSSL* ssl)
|
int wolfSSL_CTX_GetDevId(WOLFSSL_CTX* ctx, WOLFSSL* ssl)
|
||||||
{
|
{
|
||||||
int devId = INVALID_DEVID;
|
int devId = INVALID_DEVID;
|
||||||
|
@@ -7002,6 +7002,7 @@ int wc_ecc_import_x963_ex(const byte* in, word32 inLen, ecc_key* key,
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WOLFSSL_ABI
|
||||||
int wc_ecc_import_x963(const byte* in, word32 inLen, ecc_key* key)
|
int wc_ecc_import_x963(const byte* in, word32 inLen, ecc_key* key)
|
||||||
{
|
{
|
||||||
return wc_ecc_import_x963_ex(in, inLen, key, ECC_CURVE_DEF);
|
return wc_ecc_import_x963_ex(in, inLen, key, ECC_CURVE_DEF);
|
||||||
|
@@ -891,6 +891,7 @@ int wc_InitRngNonce_ex(WC_RNG* rng, byte* nonce, word32 nonceSz,
|
|||||||
|
|
||||||
|
|
||||||
/* place a generated block in output */
|
/* place a generated block in output */
|
||||||
|
WOLFSSL_ABI
|
||||||
int wc_RNG_GenerateBlock(WC_RNG* rng, byte* output, word32 sz)
|
int wc_RNG_GenerateBlock(WC_RNG* rng, byte* output, word32 sz)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@@ -2307,7 +2307,7 @@ enum {
|
|||||||
WOLFSSL_CHAIN_CA = 2 /* added to cache from trusted chain */
|
WOLFSSL_CHAIN_CA = 2 /* added to cache from trusted chain */
|
||||||
};
|
};
|
||||||
|
|
||||||
WOLFSSL_API WC_RNG* wolfSSL_GetRNG(WOLFSSL*);
|
WOLFSSL_ABI WOLFSSL_API WC_RNG* wolfSSL_GetRNG(WOLFSSL*);
|
||||||
|
|
||||||
WOLFSSL_ABI WOLFSSL_API int wolfSSL_CTX_SetMinVersion(WOLFSSL_CTX*, int);
|
WOLFSSL_ABI WOLFSSL_API int wolfSSL_CTX_SetMinVersion(WOLFSSL_CTX*, int);
|
||||||
WOLFSSL_API int wolfSSL_SetMinVersion(WOLFSSL*, int);
|
WOLFSSL_API int wolfSSL_SetMinVersion(WOLFSSL*, int);
|
||||||
@@ -2713,7 +2713,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfSSL_SetDevId(WOLFSSL*, int devId);
|
|||||||
WOLFSSL_ABI WOLFSSL_API int wolfSSL_CTX_SetDevId(WOLFSSL_CTX*, int devId);
|
WOLFSSL_ABI WOLFSSL_API int wolfSSL_CTX_SetDevId(WOLFSSL_CTX*, int devId);
|
||||||
|
|
||||||
/* helpers to get device id and heap */
|
/* helpers to get device id and heap */
|
||||||
WOLFSSL_API int wolfSSL_CTX_GetDevId(WOLFSSL_CTX* ctx, WOLFSSL* ssl);
|
WOLFSSL_ABI WOLFSSL_API int wolfSSL_CTX_GetDevId(WOLFSSL_CTX*, WOLFSSL*);
|
||||||
WOLFSSL_API void* wolfSSL_CTX_GetHeap(WOLFSSL_CTX* ctx, WOLFSSL* ssl);
|
WOLFSSL_API void* wolfSSL_CTX_GetHeap(WOLFSSL_CTX* ctx, WOLFSSL* ssl);
|
||||||
|
|
||||||
/* TLS Extensions */
|
/* TLS Extensions */
|
||||||
|
@@ -585,7 +585,7 @@ int wc_ecc_export_x963_ex(ecc_key*, byte* out, word32* outLen, int compressed);
|
|||||||
#endif /* HAVE_ECC_KEY_EXPORT */
|
#endif /* HAVE_ECC_KEY_EXPORT */
|
||||||
|
|
||||||
#ifdef HAVE_ECC_KEY_IMPORT
|
#ifdef HAVE_ECC_KEY_IMPORT
|
||||||
WOLFSSL_API
|
WOLFSSL_ABI WOLFSSL_API
|
||||||
int wc_ecc_import_x963(const byte* in, word32 inLen, ecc_key* key);
|
int wc_ecc_import_x963(const byte* in, word32 inLen, ecc_key* key);
|
||||||
WOLFSSL_API
|
WOLFSSL_API
|
||||||
int wc_ecc_import_x963_ex(const byte* in, word32 inLen, ecc_key* key,
|
int wc_ecc_import_x963_ex(const byte* in, word32 inLen, ecc_key* key,
|
||||||
|
@@ -210,7 +210,7 @@ WOLFSSL_API int wc_InitRng_ex(WC_RNG* rng, void* heap, int devId);
|
|||||||
WOLFSSL_API int wc_InitRngNonce(WC_RNG* rng, byte* nonce, word32 nonceSz);
|
WOLFSSL_API int wc_InitRngNonce(WC_RNG* rng, byte* nonce, word32 nonceSz);
|
||||||
WOLFSSL_API int wc_InitRngNonce_ex(WC_RNG* rng, byte* nonce, word32 nonceSz,
|
WOLFSSL_API int wc_InitRngNonce_ex(WC_RNG* rng, byte* nonce, word32 nonceSz,
|
||||||
void* heap, int devId);
|
void* heap, int devId);
|
||||||
WOLFSSL_API int wc_RNG_GenerateBlock(WC_RNG*, byte*, word32 sz);
|
WOLFSSL_ABI WOLFSSL_API int wc_RNG_GenerateBlock(WC_RNG*, byte*, word32 sz);
|
||||||
WOLFSSL_API int wc_RNG_GenerateByte(WC_RNG*, byte*);
|
WOLFSSL_API int wc_RNG_GenerateByte(WC_RNG*, byte*);
|
||||||
WOLFSSL_API int wc_FreeRng(WC_RNG*);
|
WOLFSSL_API int wc_FreeRng(WC_RNG*);
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user