Page MenuHome GnuPG

gpgsm: Accept file names for input and output in server mode
Open, LowPublic


gpgme uses gpgsm in server mode. To allow gpgme to tell gpgsm to work directly on files instead of on FDs the server commands "ENCRYPT", etc., need to accept file names for input and output alternatively to the input/output FDs.

Alternatively, gpgme could use gpgsm in command mode (just as gpg) instead of in server mode.

Event Timeline

This either requires an updated libassuan which allows "INPUT FILE=foo" in addition to INPUT FD=n" or using custom handlers in for INPUT et al. in gpgsm. I'd prefer the former. Anoter option would be to open and close the file in ggpgme and pass the fd.

I do not think this is a very common usecase. For me regarding CMS file operations it would be more important to implement T2435: gpgsm combined sign and encrypt which I find the most annyoing issue regarding CMS file encryption.