mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
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)
|
||||
cert->sigCtx.CertAtt.curve_id = ret;
|
||||
#else
|
||||
(void)ret;
|
||||
#endif
|
||||
/* key header */
|
||||
ret = CheckBitString(source, srcIdx, &length, maxIdx, 1, NULL);
|
||||
|
@@ -372,7 +372,6 @@ int wolfCrypt_Cleanup(void)
|
||||
#else
|
||||
|
||||
#ifdef WOLFSSL_SCE
|
||||
|
||||
WOLFSSL_SCE_GSCE_HANDLE.p_api->close(WOLFSSL_SCE_GSCE_HANDLE.p_ctrl);
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -3652,9 +3652,9 @@ typedef struct PkCbInfo {
|
||||
} PkCbInfo;
|
||||
|
||||
#if defined(DEBUG_PK_CB) || defined(TEST_PK_PRIVKEY)
|
||||
#define WOLFSSL_PKMSG(_f_, ...) printf(_f_, ##__VA_ARGS__)
|
||||
#define WOLFSSL_PKMSG(...) printf(__VA_ARGS__)
|
||||
#else
|
||||
#define WOLFSSL_PKMSG(_f_, ...)
|
||||
#define WOLFSSL_PKMSG(...)
|
||||
#endif
|
||||
|
||||
#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);
|
||||
#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
|
||||
* building old kernels with new gcc:
|
||||
*/
|
||||
@@ -602,6 +588,20 @@
|
||||
|
||||
#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 */
|
||||
|
||||
/* THREADING/MUTEX SECTION */
|
||||
|
Reference in New Issue
Block a user