if ((object->obj.objclass == CKO_CERTIFICATE) || (object->obj.objclass == CKO_PRIVATE_KEY)) {
if (  (object->obj.objclass == CKO_CERTIFICATE) || (object->obj.objclass == CKO_PRIVATE_KEY) || (object->obj.objclass == CKO_PUBLIC_KEY) || (object->obj.objclass == CKO_SECRET_KEY)) {
pk11_FindTokenAttribute(PK11TokenObject *object,CK_ATTRIBUTE_TYPE type){    /* handle the common ones */    switch (type) {    case CKA_CLASS:	return pk11_NewTokenAttribute(type,&object->obj.objclass,					sizeof(object->obj.objclass),PR_FALSE);    case CKA_TOKEN:	return (PK11Attribute *) &pk11_StaticTrueAttr;    case CKA_LABEL:	if ((object->obj.objclass == CKO_CERTIFICATE) 				|| (object->obj.objclass == CKO_PRIVATE_KEY)) {	    break;	}	return (PK11Attribute *) &pk11_StaticNullAttr;    default:	break;    }    switch (object->obj.objclass) {    case CKO_CERTIFICATE:	return pk11_FindCertAttribute(object,type);    case CKO_NETSCAPE_CRL:	return pk11_FindCrlAttribute(object,type);    case CKO_NETSCAPE_TRUST:	return pk11_FindTrustAttribute(object,type);    case CKO_NETSCAPE_SMIME:	return pk11_FindSMIMEAttribute(object,type);    case CKO_PUBLIC_KEY:	return pk11_FindPublicKeyAttribute(object,type);    case CKO_PRIVATE_KEY:	return pk11_FindPrivateKeyAttribute(object,type);    case CKO_SECRET_KEY:	return pk11_FindSecretKeyAttribute(object,type);    default:	break;    }    PORT_Assert(0);    return NULL;} 