Consider the test program (about symmetric encryption) in the attachment
(credits to mancha user on gnupg irc channel).
gpgme_set_armor(myctx, 0) is ignored if the 'armor' option is set in my
~/.gnupg/gpg.conf
However, gpgme_get_armor(myctx) returns 0 in such cases, which is not consistent
(how can I tell whether to append .gpg or .asc to my encrypted file?)
Steps to reproduce:
- gcc -D_FILE_OFFSET_BITS=64 -o mancha-enc mancha-enc.c -lgpgme
- make sure 'armor' is set in ~/.gnupg/gpg.conf
- ./mancha-enc
- type a passphrase
Actual result:
gpgme says armor is not set, yet the encryption output is ASCII
Expected result:
the encryption result should be binary
OR
gpgme_get_armor() should return 1 if the encryption output is going to be ASCII