static int add_attribute(STACK **sk, int nid, int atrtype, char *value)
static int add_attribute(STACK **sk, int nid, int atrtype, void *value)
static int add_attribute(STACK **sk, int nid, int atrtype, char *value)	{	X509_ATTRIBUTE *attr=NULL;	if (*sk == NULL)		{		*sk = sk_new(NULL);new_attrib:		attr=X509_ATTRIBUTE_create(nid,atrtype,value);		sk_push(*sk,(char *)attr);		}	else		{		int i;		for (i=0; i<sk_num(*sk); i++)			{			attr=(X509_ATTRIBUTE *)sk_value(*sk,i);			if (OBJ_obj2nid(attr->object) == nid)				{				X509_ATTRIBUTE_free(attr);				attr=X509_ATTRIBUTE_create(nid,atrtype,value);				sk_value(*sk,i)=(char *)attr;				goto end;				}			}		goto new_attrib;		}end:	return(1);	}