PKCS7_content_free(p7->d.sign->contents);
PKCS7_free(p7->d.sign->contents);
int PKCS7_set_content(PKCS7 *p7, PKCS7 *p7_data)	{	int i;	i=OBJ_obj2nid(p7->type);	switch (i)		{	case NID_pkcs7_signed:		if (p7->d.sign->contents != NULL)			PKCS7_content_free(p7->d.sign->contents);		p7->d.sign->contents=p7_data;		break;	case NID_pkcs7_digest:	case NID_pkcs7_data:	case NID_pkcs7_enveloped:	case NID_pkcs7_signedAndEnveloped:	case NID_pkcs7_encrypted:	default:		PKCS7err(PKCS7_F_PKCS7_SET_CONTENT,PKCS7_R_UNSUPPORTED_CONTENT_TYPE);		goto err;		}	return(1);err:	return(0);	}