rv = PK11_ReadAttribute(slot, privKey->pkcs11ID, CKA_SUBJECT, NULL,
rv = PK11_ReadAttribute(slot, handle, CKA_SUBJECT, NULL,
PK11_GetCertFromPrivateKey(SECKEYPrivateKey *privKey){    PK11SlotInfo *slot = privKey->pkcs11Slot;    CK_OBJECT_HANDLE certID = 		PK11_MatchItem(slot,privKey->pkcs11ID,CKO_CERTIFICATE);    SECStatus rv;    CERTCertificate *cert;    if (certID == CK_INVALID_HANDLE) {	/* couldn't find it on the card, look in our data base */	SECItem derSubject;	rv = PK11_ReadAttribute(slot, privKey->pkcs11ID, CKA_SUBJECT, NULL,					&derSubject);	if (rv != SECSuccess) {	    PORT_SetError(SSL_ERROR_NO_CERTIFICATE);	    return NULL;	}	cert = CERT_FindCertByName(CERT_GetDefaultCertDB(),&derSubject);	PORT_Free(derSubject.data);	return cert;    }    cert = PK11_MakeCertFromHandle(slot,certID,NULL);    return (cert);}