comparison libtomcrypt/src/headers/tomcrypt_pk.h @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents e9dba7abd939
children
comparison
equal deleted inserted replaced
1643:b59623a64678 1733:d529a52b2f7c
665 int der_printable_char_encode(int c); 665 int der_printable_char_encode(int c);
666 int der_printable_value_decode(int v); 666 int der_printable_value_decode(int v);
667 667
668 /* UTF-8 */ 668 /* UTF-8 */
669 #if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L || defined(WCHAR_MAX) || defined(__WCHAR_MAX__) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED) || defined (__WCHAR_TYPE__)) && !defined(LTC_NO_WCHAR) 669 #if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L || defined(WCHAR_MAX) || defined(__WCHAR_MAX__) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED) || defined (__WCHAR_TYPE__)) && !defined(LTC_NO_WCHAR)
670 #include <wchar.h> 670 #if defined(__WCHAR_MAX__)
671 #if defined(__WCHAR_MAX__) 671 #define LTC_WCHAR_MAX __WCHAR_MAX__
672 #define LTC_WCHAR_MAX __WCHAR_MAX__ 672 #else
673 #elif defined(WCHAR_MAX) 673 #include <wchar.h>
674 #define LTC_WCHAR_MAX WCHAR_MAX 674 #define LTC_WCHAR_MAX WCHAR_MAX
675 #endif 675 #endif
676 /* please note that it might happen that LTC_WCHAR_MAX is undefined */ 676 /* please note that it might happen that LTC_WCHAR_MAX is undefined */
677 #else 677 #else
678 typedef ulong32 wchar_t; 678 typedef ulong32 wchar_t;
679 #define LTC_WCHAR_MAX 0xFFFFFFFF 679 #define LTC_WCHAR_MAX 0xFFFFFFFF
680 #endif 680 #endif
681 681
682 int der_encode_utf8_string(const wchar_t *in, unsigned long inlen, 682 int der_encode_utf8_string(const wchar_t *in, unsigned long inlen,
683 unsigned char *out, unsigned long *outlen); 683 unsigned char *out, unsigned long *outlen);
684 684