Lines Matching refs:cbinfo

270 write_parsed_cb(const pgp_packet_t *pkt, pgp_cbdata_t *cbinfo)
276 pgp_print_packet(&cbinfo->printstate, pkt);
278 if (pkt->tag != PGP_PTAG_CT_UNARMOURED_TEXT && cbinfo->printstate.skipping) {
280 cbinfo->printstate.skipping = 0;
285 if (!cbinfo->printstate.skipping) {
287 cbinfo->printstate.skipping = 1;
292 cbinfo->printstate.skipping = 1;
297 return pgp_pk_sesskey_cb(pkt, cbinfo);
300 if (cbinfo->sshseckey) {
301 *content->get_seckey.seckey = cbinfo->sshseckey;
304 return pgp_get_seckey_cb(pkt, cbinfo);
307 return cbinfo->cryptinfo.getpassphrase(pkt, cbinfo);
310 return pgp_litdata_cb(pkt, cbinfo);
473 fd_out = pgp_setup_file_write(&parse->cbinfo.output, outfile,
497 fd_out = pgp_setup_file_write(&parse->cbinfo.output,
512 parse->cbinfo.cryptinfo.secring = secring;
513 parse->cbinfo.passfp = passfp;
514 parse->cbinfo.cryptinfo.getpassphrase = getpassfunc;
515 parse->cbinfo.cryptinfo.pubring = pubring;
516 parse->cbinfo.sshseckey = (sshkeys) ? &secring->keys[0].key.seckey : NULL;
517 parse->cbinfo.numtries = numtries;
533 if (!parse->cbinfo.gotpass) {
538 pgp_teardown_file_write(parse->cbinfo.output, fd_out);
581 pgp_setup_memory_write(&parse->cbinfo.output, &outmem, insize);
584 parse->cbinfo.cryptinfo.secring = secring;
585 parse->cbinfo.cryptinfo.pubring = pubring;
586 parse->cbinfo.passfp = passfp;
587 parse->cbinfo.cryptinfo.getpassphrase = getpassfunc;
588 parse->cbinfo.sshseckey = (sshkeys) ? &secring->keys[0].key.seckey : NULL;
589 parse->cbinfo.numtries = numtries;
607 pgp_writer_close(parse->cbinfo.output);
608 pgp_output_delete(parse->cbinfo.output);
611 return (parse->cbinfo.gotpass) ? outmem : NULL;