- snprintf(bin + enclen + 1, 3, "%02X", cv);
+ silc_silc_snprintf(bin + enclen + 1, 3, "%02X", cv);
/* Returns TRUE if the `utf8' string of length of `utf8_len' is valid
UTF-8 encoded string, FALSE if it is not UTF-8 encoded string. */
/* Returns TRUE if the `utf8' string of length of `utf8_len' is valid
UTF-8 encoded string, FALSE if it is not UTF-8 encoded string. */
{
return silc_utf8_decode(utf8, utf8_len, 0, NULL, 0) != 0;
}
/* Pretty close strcasecmp */
{
return silc_utf8_decode(utf8, utf8_len, 0, NULL, 0) != 0;
}
/* Pretty close strcasecmp */
{
unsigned char *s1u, *s2u;
SilcUInt32 s1u_len, s2u_len;
SilcStringprepStatus status;
{
unsigned char *s1u, *s2u;
SilcUInt32 s1u_len, s2u_len;
SilcStringprepStatus status;
- status = silc_stringprep(s1, strlen(s1), SILC_STRING_UTF8,
+ status = silc_stringprep(s1, n, SILC_STRING_UTF8,
SILC_IDENTIFIERC_PREP, 0, &s1u,
&s1u_len, SILC_STRING_UTF8);
if (status != SILC_STRINGPREP_OK)
return FALSE;
/* Casefold and normalize */
SILC_IDENTIFIERC_PREP, 0, &s1u,
&s1u_len, SILC_STRING_UTF8);
if (status != SILC_STRINGPREP_OK)
return FALSE;
/* Casefold and normalize */
- status = silc_stringprep(s2, strlen(s2), SILC_STRING_UTF8,
+ status = silc_stringprep(s2, n, SILC_STRING_UTF8,
SILC_IDENTIFIERC_PREP, 0, &s2u,
&s2u_len, SILC_STRING_UTF8);
if (status != SILC_STRINGPREP_OK)
SILC_IDENTIFIERC_PREP, 0, &s2u,
&s2u_len, SILC_STRING_UTF8);
if (status != SILC_STRINGPREP_OK)