memcpy (der + *counter, tag_der, tag_len);
*counter += tag_len;
- _asn1_ltostr (*counter, (char *) temp, sizeof(temp));
+ _asn1_ltostr (*counter, (char *) temp);
_asn1_set_name (p, (const char *) temp);
is_tag_implicit = 0;
case ASN1_ETYPE_SET:
if (move != UP)
{
- _asn1_ltostr (counter, (char *) temp, sizeof(temp));
+ _asn1_ltostr (counter, (char *) temp);
tlen = _asn1_strlen (temp);
if (tlen > 0)
_asn1_set_value (p, temp, tlen + 1);
case ASN1_ETYPE_SET_OF:
if (move != UP)
{
- _asn1_ltostr (counter, (char *) temp, sizeof(temp));
+ _asn1_ltostr (counter, (char *) temp);
tlen = _asn1_strlen (temp);
if (tlen > 0)
val1 = der[len_len] / 40;
val = der[len_len] - val1 * 40;
- _asn1_str_cpy (str, str_size, _asn1_ltostr (val1, temp, sizeof(temp)));
+ _asn1_str_cpy (str, str_size, _asn1_ltostr (val1, temp));
_asn1_str_cat (str, str_size, ".");
- _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp, sizeof(temp)));
+ _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp));
val = 0;
leading = 1;
if (!(der[len_len + k] & 0x80))
{
_asn1_str_cat (str, str_size, ".");
- _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp, sizeof(temp)));
+ _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp));
val = 0;
leading = 1;
}
if (len3 > 0)
{
- _asn1_ltostr (counter + len3, temp, sizeof(temp));
+ _asn1_ltostr (counter + len3, temp);
tlen = strlen (temp);
if (tlen > 0)
_asn1_set_value (p, temp, tlen + 1);
{
if (len3 > 0)
{ /* definite length method */
- _asn1_ltostr (counter + len3, temp, sizeof(temp));
+ _asn1_ltostr (counter + len3, temp);
tlen = strlen (temp);
if (tlen > 0)
n = strtol (p->name + 1, NULL, 0);
n++;
temp[0] = '?';
- _asn1_ltostr (n, temp + 1, sizeof(temp)-1);
+ _asn1_ltostr (n, temp + 1);
}
_asn1_set_name (p2, temp);
/* p2->type |= CONST_OPTION; */
/***************************************/
inline static char *
-_asn1_ltostr (long v, char *str, size_t str_size)
+_asn1_ltostr (long v, char *str)
{
- snprintf(str, str_size, "%ld", v);
+ sprintf(str, "%ld", v);
return str;
}
void _asn1_delete_list_and_nodes (void);
+char *_asn1_ltostr (long v, char *str);
+
asn1_node _asn1_find_up (asn1_node node);
int _asn1_change_integer_value (asn1_node node);