if( JSS_PK11_getCertPtr(env, this, &cert) != PR_SUCCESS) {
if( JSS_PK11_getCertSlotPtr(env, this, &slot) != PR_SUCCESS) {
Java_org_mozilla_jss_pkcs11_PK11Cert_getOwningToken    (JNIEnv *env, jobject this){    PK11SlotInfo *slot = NULL;    CERTCertificate *cert;    jobject token = NULL;    PR_ASSERT(env!=NULL && this!=NULL);    /* get the C Certificate structure */    if( JSS_PK11_getCertPtr(env, this, &cert) != PR_SUCCESS) {        PR_ASSERT( (*env)->ExceptionOccurred(env) != NULL);        goto finish;    }    /* extract the slot from the certificate */    slot = cert->slot;    PR_ASSERT(slot != NULL);    /* wrap the slot in a Java PK11Token */    token = JSS_PK11_wrapPK11Token(env, &slot);    if(token == NULL) {        PR_ASSERT( (*env)->ExceptionOccurred(env) );        goto finish;    }finish:    return token;}