Fixes for building wolfSSL along side openssl.

This commit is contained in:
David Garske
2022-03-04 10:45:53 -08:00
parent e1829e614d
commit 3839b0e675
24 changed files with 332 additions and 215 deletions

View File

@@ -2015,7 +2015,7 @@ int wolfSSL_EVP_PKEY_paramgen(WOLFSSL_EVP_PKEY_CTX* ctx,
* The difference is nicely explained and illustrated in section
* "ECDH and Named Curves" of
* https://wiki.openssl.org/index.php/Elliptic_Curve_Diffie_Hellman */
int EVP_PKEY_CTX_set_ec_param_enc(WOLFSSL_EVP_PKEY_CTX *ctx,
int wolfSSL_EVP_PKEY_CTX_set_ec_param_enc(WOLFSSL_EVP_PKEY_CTX *ctx,
int flag)
{
(void)ctx;
@@ -2727,7 +2727,7 @@ int wolfSSL_EVP_add_cipher(const WOLFSSL_EVP_CIPHER *cipher)
}
WOLFSSL_EVP_PKEY* wolfSSL_EVP_PKEY_new_mac_key(int type, ENGINE* e,
WOLFSSL_EVP_PKEY* wolfSSL_EVP_PKEY_new_mac_key(int type, WOLFSSL_ENGINE* e,
const unsigned char* key, int keylen)
{
WOLFSSL_EVP_PKEY* pkey;

View File

@@ -85,7 +85,7 @@
*/
#define GET_U16(a) (*(word16*)(a))
/**
* Encode 64-bit nuumber to a little-endian byte array.
* Encode 64-bit number to a little-endian byte array.
*
* @param [out] a Byte array to write into.
* @param [in] n Number to encode.
@@ -125,7 +125,7 @@
#define GET_U16(a) (((word16)((a)[1]) << 8) | \
((word16)((a)[0]) ))
/**
* Encode 64-bit nuumber to a little-endian byte array.
* Encode 64-bit number to a little-endian byte array.
*
* @param [out] a Byte array to write into.
* @param [in] n Number to encode.