Lines Matching refs:parse
456 pgp_stream_t *parse = NULL; in pgp_decrypt_file() local
463 fd_in = pgp_setup_file_read(io, &parse, infile, in pgp_decrypt_file()
473 fd_out = pgp_setup_file_write(&parse->cbinfo.output, outfile, in pgp_decrypt_file()
477 pgp_teardown_file_read(parse, fd_in); in pgp_decrypt_file()
497 fd_out = pgp_setup_file_write(&parse->cbinfo.output, in pgp_decrypt_file()
502 pgp_teardown_file_read(parse, fd_in); in pgp_decrypt_file()
512 parse->cbinfo.cryptinfo.secring = secring; in pgp_decrypt_file()
513 parse->cbinfo.passfp = passfp; in pgp_decrypt_file()
514 parse->cbinfo.cryptinfo.getpassphrase = getpassfunc; in pgp_decrypt_file()
515 parse->cbinfo.cryptinfo.pubring = pubring; in pgp_decrypt_file()
516 parse->cbinfo.sshseckey = (sshkeys) ? &secring->keys[0].key.seckey : NULL; in pgp_decrypt_file()
517 parse->cbinfo.numtries = numtries; in pgp_decrypt_file()
521 pgp_reader_push_dearmour(parse); in pgp_decrypt_file()
525 pgp_parse(parse, printerrors); in pgp_decrypt_file()
529 pgp_reader_pop_dearmour(parse); in pgp_decrypt_file()
533 if (!parse->cbinfo.gotpass) { in pgp_decrypt_file()
538 pgp_teardown_file_write(parse->cbinfo.output, fd_out); in pgp_decrypt_file()
541 pgp_teardown_file_read(parse, fd_in); in pgp_decrypt_file()
560 pgp_stream_t *parse = NULL; in pgp_decrypt_buf() local
575 pgp_setup_memory_read(io, &parse, inmem, in pgp_decrypt_buf()
581 pgp_setup_memory_write(&parse->cbinfo.output, &outmem, insize); in pgp_decrypt_buf()
584 parse->cbinfo.cryptinfo.secring = secring; in pgp_decrypt_buf()
585 parse->cbinfo.cryptinfo.pubring = pubring; in pgp_decrypt_buf()
586 parse->cbinfo.passfp = passfp; in pgp_decrypt_buf()
587 parse->cbinfo.cryptinfo.getpassphrase = getpassfunc; in pgp_decrypt_buf()
588 parse->cbinfo.sshseckey = (sshkeys) ? &secring->keys[0].key.seckey : NULL; in pgp_decrypt_buf()
589 parse->cbinfo.numtries = numtries; in pgp_decrypt_buf()
593 pgp_reader_push_dearmour(parse); in pgp_decrypt_buf()
597 pgp_parse(parse, printerrors); in pgp_decrypt_buf()
601 pgp_reader_pop_dearmour(parse); in pgp_decrypt_buf()
605 pgp_teardown_memory_read(parse, inmem); in pgp_decrypt_buf()
607 pgp_writer_close(parse->cbinfo.output); in pgp_decrypt_buf()
608 pgp_output_delete(parse->cbinfo.output); in pgp_decrypt_buf()
611 return (parse->cbinfo.gotpass) ? outmem : NULL; in pgp_decrypt_buf()