mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[clang,tidy] fix warnings
This commit is contained in:
@@ -191,9 +191,9 @@ extern "C"
|
||||
WINPR_API size_t WinPrAsn1EncContextualOID(WinPrAsn1Encoder* enc, WinPrAsn1_tagId tagId,
|
||||
const WinPrAsn1_OID* oid);
|
||||
WINPR_API size_t WinPrAsn1EncOctetString(WinPrAsn1Encoder* enc,
|
||||
const WinPrAsn1_OctetString* oid);
|
||||
const WinPrAsn1_OctetString* octetstring);
|
||||
WINPR_API size_t WinPrAsn1EncContextualOctetString(WinPrAsn1Encoder* enc, WinPrAsn1_tagId tagId,
|
||||
const WinPrAsn1_OctetString* oid);
|
||||
const WinPrAsn1_OctetString* octetstring);
|
||||
WINPR_API size_t WinPrAsn1EncIA5String(WinPrAsn1Encoder* enc, WinPrAsn1_IA5STRING ia5);
|
||||
WINPR_API size_t WinPrAsn1EncGeneralString(WinPrAsn1Encoder* enc, WinPrAsn1_STRING str);
|
||||
WINPR_API size_t WinPrAsn1EncContextualIA5String(WinPrAsn1Encoder* enc, WinPrAsn1_tagId tagId,
|
||||
|
||||
@@ -84,7 +84,7 @@ extern "C"
|
||||
WINPR_API BOOL winpr_HMAC_Init(WINPR_HMAC_CTX* ctx, WINPR_MD_TYPE md, const void* key,
|
||||
size_t keylen);
|
||||
WINPR_API BOOL winpr_HMAC_Update(WINPR_HMAC_CTX* ctx, const void* input, size_t ilen);
|
||||
WINPR_API BOOL winpr_HMAC_Final(WINPR_HMAC_CTX* ctx, void* output, size_t ilen);
|
||||
WINPR_API BOOL winpr_HMAC_Final(WINPR_HMAC_CTX* ctx, void* output, size_t olen);
|
||||
|
||||
WINPR_API BOOL winpr_HMAC(WINPR_MD_TYPE md, const void* key, size_t keylen, const void* input,
|
||||
size_t ilen, void* output, size_t olen);
|
||||
@@ -111,7 +111,7 @@ extern "C"
|
||||
WINPR_API BOOL winpr_Digest_Init_Allow_FIPS(WINPR_DIGEST_CTX* ctx, WINPR_MD_TYPE md);
|
||||
WINPR_API BOOL winpr_Digest_Init(WINPR_DIGEST_CTX* ctx, WINPR_MD_TYPE md);
|
||||
WINPR_API BOOL winpr_Digest_Update(WINPR_DIGEST_CTX* ctx, const void* input, size_t ilen);
|
||||
WINPR_API BOOL winpr_Digest_Final(WINPR_DIGEST_CTX* ctx, void* output, size_t ilen);
|
||||
WINPR_API BOOL winpr_Digest_Final(WINPR_DIGEST_CTX* ctx, void* output, size_t olen);
|
||||
|
||||
WINPR_API BOOL winpr_Digest_Allow_FIPS(WINPR_MD_TYPE md, const void* input, size_t ilen,
|
||||
void* output, size_t olen);
|
||||
|
||||
@@ -35,9 +35,9 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
WINPR_API void winpr_HexDump(const char* tag, UINT32 lvl, const void* data, size_t length);
|
||||
WINPR_API void winpr_HexLogDump(wLog* log, UINT32 lvl, const void* data, size_t length);
|
||||
WINPR_API void winpr_CArrayDump(const char* tag, UINT32 lvl, const void* data, size_t length,
|
||||
WINPR_API void winpr_HexDump(const char* tag, UINT32 level, const void* data, size_t length);
|
||||
WINPR_API void winpr_HexLogDump(wLog* log, UINT32 level, const void* data, size_t length);
|
||||
WINPR_API void winpr_CArrayDump(const char* tag, UINT32 level, const void* data, size_t length,
|
||||
size_t width);
|
||||
|
||||
WINPR_API char* winpr_BinToHexString(const BYTE* data, size_t length, BOOL space);
|
||||
|
||||
@@ -318,12 +318,12 @@ extern "C"
|
||||
* The function does string conversions of any '\0' terminated input string
|
||||
*
|
||||
* \param wstr A '\0' terminated WCHAR string, may be NULL
|
||||
* \param pSize Ignored if NULL, otherwise receives the length of the result string in
|
||||
* \param pUtfCharLength Ignored if NULL, otherwise receives the length of the result string in
|
||||
* characters (strlen)
|
||||
*
|
||||
* \return An allocated zero terminated UTF-8 string or NULL in case of failure.
|
||||
*/
|
||||
WINPR_API char* ConvertWCharToUtf8Alloc(const WCHAR* wstr, size_t* pSize);
|
||||
WINPR_API char* ConvertWCharToUtf8Alloc(const WCHAR* wstr, size_t* pUtfCharLength);
|
||||
|
||||
/** \brief Converts form UTF-16 to UTF-8, returns an allocated string
|
||||
*
|
||||
@@ -332,12 +332,13 @@ extern "C"
|
||||
*
|
||||
* \param wstr A WCHAR string of \b wlen length
|
||||
* \param wlen The (buffer) length in characters of \b wstr
|
||||
* \param pSize Ignored if NULL, otherwise receives the length of the result string in
|
||||
* \param pUtfCharLength Ignored if NULL, otherwise receives the length of the result string in
|
||||
* characters (strlen)
|
||||
*
|
||||
* \return An allocated zero terminated UTF-8 string or NULL in case of failure.
|
||||
*/
|
||||
WINPR_API char* ConvertWCharNToUtf8Alloc(const WCHAR* wstr, size_t wlen, size_t* pSize);
|
||||
WINPR_API char* ConvertWCharNToUtf8Alloc(const WCHAR* wstr, size_t wlen,
|
||||
size_t* pUtfCharLength);
|
||||
|
||||
/** \brief Converts multistring form UTF-16 to UTF-8, returns an allocated string
|
||||
*
|
||||
@@ -346,12 +347,13 @@ extern "C"
|
||||
*
|
||||
* \param wstr A WCHAR string of \b len character length
|
||||
* \param wlen The (buffer) length in characters of \b str
|
||||
* \param pSize Ignored if NULL, otherwise receives the length of the result string in
|
||||
* \param pUtfCharLength Ignored if NULL, otherwise receives the length of the result string in
|
||||
* characters (including any '\0' character)
|
||||
*
|
||||
* \return An allocated double zero terminated UTF-8 string or NULL in case of failure.
|
||||
*/
|
||||
WINPR_API char* ConvertMszWCharNToUtf8Alloc(const WCHAR* wstr, size_t wlen, size_t* pSize);
|
||||
WINPR_API char* ConvertMszWCharNToUtf8Alloc(const WCHAR* wstr, size_t wlen,
|
||||
size_t* pUtfCharLength);
|
||||
|
||||
/** \brief Converts form UTF-8 to UTF-16, returns an allocated string
|
||||
*
|
||||
|
||||
@@ -296,7 +296,7 @@ extern "C"
|
||||
#define OpenWaitableTimer OpenWaitableTimerA
|
||||
#endif
|
||||
|
||||
WINPR_API int GetTimerFileDescriptor(HANDLE hEvent);
|
||||
WINPR_API int GetTimerFileDescriptor(HANDLE hTimer);
|
||||
|
||||
/**
|
||||
* Timer-Queue Timer
|
||||
|
||||
Reference in New Issue
Block a user