Automagically choose gpgme protocol based on file type.
* src/filetype.c, src/filetype.h: New. * src/parsetlv.c, src/parsetlv.h: New. Based on my code from GpgOL. * src/gpafiledecryptop.c (gpa_file_decrypt_operation_start): Set protocol depending on type of data. * src/gpafileverifyop.c (gpa_file_verify_operation_start): Ditto.
This should also enable proper decryption and verification for the
clipboard and file the file manager