forked from wolfSSL/wolfssl
Merge pull request #4618 from douzzer/wc-port-h-linuxkm-XSNPRINTF-XATOI
linuxkm wc_port.h macro scoping fix
This commit is contained in:
@@ -9817,6 +9817,8 @@ static int StoreEccKey(DecodedCert* cert, const byte* source, word32* srcIdx,
|
|||||||
|
|
||||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT)
|
#if defined(WOLFSSL_RENESAS_SCEPROTECT)
|
||||||
cert->sigCtx.CertAtt.curve_id = ret;
|
cert->sigCtx.CertAtt.curve_id = ret;
|
||||||
|
#else
|
||||||
|
(void)ret;
|
||||||
#endif
|
#endif
|
||||||
/* key header */
|
/* key header */
|
||||||
ret = CheckBitString(source, srcIdx, &length, maxIdx, 1, NULL);
|
ret = CheckBitString(source, srcIdx, &length, maxIdx, 1, NULL);
|
||||||
|
@@ -372,7 +372,6 @@ int wolfCrypt_Cleanup(void)
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef WOLFSSL_SCE
|
#ifdef WOLFSSL_SCE
|
||||||
|
|
||||||
WOLFSSL_SCE_GSCE_HANDLE.p_api->close(WOLFSSL_SCE_GSCE_HANDLE.p_ctrl);
|
WOLFSSL_SCE_GSCE_HANDLE.p_api->close(WOLFSSL_SCE_GSCE_HANDLE.p_ctrl);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@@ -3652,9 +3652,9 @@ typedef struct PkCbInfo {
|
|||||||
} PkCbInfo;
|
} PkCbInfo;
|
||||||
|
|
||||||
#if defined(DEBUG_PK_CB) || defined(TEST_PK_PRIVKEY)
|
#if defined(DEBUG_PK_CB) || defined(TEST_PK_PRIVKEY)
|
||||||
#define WOLFSSL_PKMSG(_f_, ...) printf(_f_, ##__VA_ARGS__)
|
#define WOLFSSL_PKMSG(...) printf(__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define WOLFSSL_PKMSG(_f_, ...)
|
#define WOLFSSL_PKMSG(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_ECC
|
#ifdef HAVE_ECC
|
||||||
|
0
wolfssl/wolfcrypt/port/Renesas/renesas_cmn.h
Executable file → Normal file
0
wolfssl/wolfcrypt/port/Renesas/renesas_cmn.h
Executable file → Normal file
@@ -579,20 +579,6 @@
|
|||||||
extern void fipsEntry(void);
|
extern void fipsEntry(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* needed to suppress inclusion of stdio.h in wolfssl/wolfcrypt/types.h */
|
|
||||||
#define XSNPRINTF snprintf
|
|
||||||
|
|
||||||
/* the rigmarole around kstrtoll() here is to accommodate its warn-unused-result attribute. */
|
|
||||||
#define XATOI(s) ({ \
|
|
||||||
long long _xatoi_res = 0; \
|
|
||||||
int _xatoi_ret = kstrtoll(s, 10, &_xatoi_res); \
|
|
||||||
if (_xatoi_ret != 0) { \
|
|
||||||
_xatoi_res = 0; \
|
|
||||||
} \
|
|
||||||
(int)_xatoi_res; \
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
/* suppress false-positive "writing 1 byte into a region of size 0" warnings
|
/* suppress false-positive "writing 1 byte into a region of size 0" warnings
|
||||||
* building old kernels with new gcc:
|
* building old kernels with new gcc:
|
||||||
*/
|
*/
|
||||||
@@ -602,6 +588,20 @@
|
|||||||
|
|
||||||
#endif /* BUILDING_WOLFSSL */
|
#endif /* BUILDING_WOLFSSL */
|
||||||
|
|
||||||
|
/* needed to suppress inclusion of stdio.h in wolfssl/wolfcrypt/types.h */
|
||||||
|
#define XSNPRINTF snprintf
|
||||||
|
|
||||||
|
/* the rigmarole around kstrtoll() here is to accommodate its warn-unused-result attribute. */
|
||||||
|
/* also needed to suppress inclusion of stdlib.h in wolfssl/wolfcrypt/types.h */
|
||||||
|
#define XATOI(s) ({ \
|
||||||
|
long long _xatoi_res = 0; \
|
||||||
|
int _xatoi_ret = kstrtoll(s, 10, &_xatoi_res); \
|
||||||
|
if (_xatoi_ret != 0) { \
|
||||||
|
_xatoi_res = 0; \
|
||||||
|
} \
|
||||||
|
(int)_xatoi_res; \
|
||||||
|
})
|
||||||
|
|
||||||
#endif /* WOLFSSL_LINUXKM */
|
#endif /* WOLFSSL_LINUXKM */
|
||||||
|
|
||||||
/* THREADING/MUTEX SECTION */
|
/* THREADING/MUTEX SECTION */
|
||||||
|
Reference in New Issue
Block a user