"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/asn1-func.c" between
libksba-1.5.1.tar.bz2 and libksba-1.6.0.tar.bz2

About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.

asn1-func.c  (libksba-1.5.1.tar.bz2):asn1-func.c  (libksba-1.6.0.tar.bz2)
skipping to change at line 866 skipping to change at line 866
} }
return 0; return 0;
} }
/* Expand all object ID constants */ /* Expand all object ID constants */
int int
_ksba_asn_expand_object_id (AsnNode node) _ksba_asn_expand_object_id (AsnNode node)
{ {
AsnNode p, p2, p3, p4, p5; AsnNode p, p2, p3, p4, p5;
char name_root[129], name2[129*2+1]; char name_root[129], name2[129*2+1] = "";
/* Fixme: Make a cleaner implementation */ /* Fixme: Make a cleaner implementation */
if (!node) if (!node)
return gpg_error (GPG_ERR_ELEMENT_NOT_FOUND); return gpg_error (GPG_ERR_ELEMENT_NOT_FOUND);
if (!node->name) if (!node->name)
return gpg_error (GPG_ERR_INV_VALUE); return gpg_error (GPG_ERR_INV_VALUE);
if (strlen(node->name) >= DIM(name_root)-1) if (strlen(node->name) >= DIM(name_root)-1)
return gpg_error (GPG_ERR_GENERAL); return gpg_error (GPG_ERR_GENERAL);
strcpy (name_root, node->name); strcpy (name_root, node->name);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)