Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 627014
Collapse All | Expand All

(-)a/lib/parser_aux.c (-6 / +12 lines)
Lines 955-961 _asn1_check_identifier (asn1_node node) Link Here
955
	  if (p2 == NULL)
955
	  if (p2 == NULL)
956
	    {
956
	    {
957
	      if (p->value)
957
	      if (p->value)
958
		_asn1_strcpy (_asn1_identifierMissing, p->value);
958
		_asn1_str_cpy (_asn1_identifierMissing, sizeof(_asn1_identifierMissing), (char*)p->value);
959
	      else
959
	      else
960
		_asn1_strcpy (_asn1_identifierMissing, "(null)");
960
		_asn1_strcpy (_asn1_identifierMissing, "(null)");
961
	      return ASN1_IDENTIFIER_NOT_FOUND;
961
	      return ASN1_IDENTIFIER_NOT_FOUND;
Lines 968-976 _asn1_check_identifier (asn1_node node) Link Here
968
	  if (p2 && (type_field (p2->type) == ASN1_ETYPE_DEFAULT))
968
	  if (p2 && (type_field (p2->type) == ASN1_ETYPE_DEFAULT))
969
	    {
969
	    {
970
	      _asn1_str_cpy (name2, sizeof (name2), node->name);
970
	      _asn1_str_cpy (name2, sizeof (name2), node->name);
971
	      _asn1_str_cat (name2, sizeof (name2), ".");
971
	      if (p2->value)
972
	      _asn1_str_cat (name2, sizeof (name2), (char *) p2->value);
972
	        {
973
	      _asn1_strcpy (_asn1_identifierMissing, p2->value);
973
	          _asn1_str_cat (name2, sizeof (name2), ".");
974
	          _asn1_str_cat (name2, sizeof (name2), (char *) p2->value);
975
	          _asn1_str_cpy (_asn1_identifierMissing, sizeof(_asn1_identifierMissing), (char*)p2->value);
976
	        }
977
	      else
978
		_asn1_strcpy (_asn1_identifierMissing, "(null)");
979
974
	      p2 = asn1_find_node (node, name2);
980
	      p2 = asn1_find_node (node, name2);
975
	      if (!p2 || (type_field (p2->type) != ASN1_ETYPE_OBJECT_ID) ||
981
	      if (!p2 || (type_field (p2->type) != ASN1_ETYPE_OBJECT_ID) ||
976
		  !(p2->type & CONST_ASSIGN))
982
		  !(p2->type & CONST_ASSIGN))
Lines 990-996 _asn1_check_identifier (asn1_node node) Link Here
990
		  _asn1_str_cpy (name2, sizeof (name2), node->name);
996
		  _asn1_str_cpy (name2, sizeof (name2), node->name);
991
		  _asn1_str_cat (name2, sizeof (name2), ".");
997
		  _asn1_str_cat (name2, sizeof (name2), ".");
992
		  _asn1_str_cat (name2, sizeof (name2), (char *) p2->value);
998
		  _asn1_str_cat (name2, sizeof (name2), (char *) p2->value);
993
		  _asn1_strcpy (_asn1_identifierMissing, p2->value);
999
		  _asn1_str_cpy (_asn1_identifierMissing, sizeof(_asn1_identifierMissing), (char*)p2->value);
1000
994
		  p2 = asn1_find_node (node, name2);
1001
		  p2 = asn1_find_node (node, name2);
995
		  if (!p2 || (type_field (p2->type) != ASN1_ETYPE_OBJECT_ID)
1002
		  if (!p2 || (type_field (p2->type) != ASN1_ETYPE_OBJECT_ID)
996
		      || !(p2->type & CONST_ASSIGN))
1003
		      || !(p2->type & CONST_ASSIGN))
997
- 

Return to bug 627014