case V_ASN1_OTHER: default:
int i2d_ASN1_TYPE(ASN1_TYPE *a, unsigned char **pp)	{	int r=0;	if (a == NULL) return(0);	switch (a->type)		{	case V_ASN1_NULL:		if (pp != NULL)			ASN1_put_object(pp,0,0,V_ASN1_NULL,V_ASN1_UNIVERSAL);		r=2;		break;	case V_ASN1_INTEGER:	case V_ASN1_NEG_INTEGER:		r=i2d_ASN1_INTEGER(a->value.integer,pp);		break;	case V_ASN1_ENUMERATED:	case V_ASN1_NEG_ENUMERATED:		r=i2d_ASN1_ENUMERATED(a->value.enumerated,pp);		break;	case V_ASN1_BIT_STRING:		r=i2d_ASN1_BIT_STRING(a->value.bit_string,pp);		break;	case V_ASN1_OCTET_STRING:		r=i2d_ASN1_OCTET_STRING(a->value.octet_string,pp);		break;	case V_ASN1_OBJECT:		r=i2d_ASN1_OBJECT(a->value.object,pp);		break;	case V_ASN1_PRINTABLESTRING:		r=M_i2d_ASN1_PRINTABLESTRING(a->value.printablestring,pp);		break;	case V_ASN1_T61STRING:		r=M_i2d_ASN1_T61STRING(a->value.t61string,pp);		break;	case V_ASN1_IA5STRING:		r=M_i2d_ASN1_IA5STRING(a->value.ia5string,pp);		break;	case V_ASN1_GENERALSTRING:		r=M_i2d_ASN1_GENERALSTRING(a->value.generalstring,pp);		break;	case V_ASN1_UNIVERSALSTRING:		r=M_i2d_ASN1_UNIVERSALSTRING(a->value.universalstring,pp);		break;	case V_ASN1_UTF8STRING:		r=M_i2d_ASN1_UTF8STRING(a->value.utf8string,pp);		break;	case V_ASN1_VISIBLESTRING:		r=M_i2d_ASN1_VISIBLESTRING(a->value.visiblestring,pp);		break;	case V_ASN1_BMPSTRING:		r=M_i2d_ASN1_BMPSTRING(a->value.bmpstring,pp);		break;	case V_ASN1_UTCTIME:		r=i2d_ASN1_UTCTIME(a->value.utctime,pp);		break;	case V_ASN1_GENERALIZEDTIME:		r=i2d_ASN1_GENERALIZEDTIME(a->value.generalizedtime,pp);		break;	case V_ASN1_SET:	case V_ASN1_SEQUENCE:		if (a->value.set == NULL)			r=0;		else			{			r=a->value.set->length;			if (pp != NULL)				{				memcpy(*pp,a->value.set->data,r);				*pp+=r;				}			}		break;		}	return(r);	}