rv = (* handle->db->sync)(handle->db, 0); if ( rv ) {
ret = (* handle->db->sync)(handle->db, 0); if ( ret ) {
SECKEY_DeleteKey(SECKEYKeyDBHandle *handle, SECItem *pubkey){    DBT namekey;    int rv;    if (handle == NULL) {	PORT_SetError(SEC_ERROR_BAD_DATABASE);	return(SECFailure);    }    /* set up db key and data */    namekey.data = pubkey->data;    namekey.size = pubkey->len;    /* delete it from the database */    rv = (* handle->db->del)(handle->db, &namekey, 0);    if ( rv ) {	PORT_SetError(SEC_ERROR_BAD_DATABASE);	return(SECFailure);    }    /* sync the database */    rv = (* handle->db->sync)(handle->db, 0);    if ( rv ) {	PORT_SetError(SEC_ERROR_BAD_DATABASE);	return(SECFailure);    }    return(SECSuccess);}