diff options
| author | Sam Varshavchik | 2016-11-27 11:58:51 -0500 | 
|---|---|---|
| committer | Sam Varshavchik | 2016-11-27 11:58:51 -0500 | 
| commit | e21842e21535133d86f4c304e445e6d69f029ab5 (patch) | |
| tree | 14d6af1c94c0417817c77e3cf6c08ddf8f58e06a /gpglib/gpglib.h | |
| parent | 22aa61750562f69db443f93518080cd1b5d923ea (diff) | |
| download | courier-libs-e21842e21535133d86f4c304e445e6d69f029ab5.tar.bz2 | |
gpglib: fixes for gpg2.
Add --with-gpg2 compiler option, to prefer gpg2 instead of gpg.
When compiled against gpg2, --pinentry-mode local must be given, for
certain operations.
Implement libmail_gpg_makepassphrasepipe(), to help apps pass passphrases
via pipes.
Removes obsolete 'trust level' parameter from libmail_gpg_signkey().
Diffstat (limited to 'gpglib/gpglib.h')
| -rw-r--r-- | gpglib/gpglib.h | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/gpglib/gpglib.h b/gpglib/gpglib.h index 784f9b8..58ffafd 100644 --- a/gpglib/gpglib.h +++ b/gpglib/gpglib.h @@ -1,7 +1,7 @@  #ifndef	gpglib_h  #define	gpglib_h  /* -** Copyright 2001-2008 Double Precision, Inc.  See COPYING for +** Copyright 2001-2016 Double Precision, Inc.  See COPYING for  ** distribution information.  */ @@ -150,9 +150,17 @@ int libmail_gpg_deletekey(const char *gpgdir, int secret, const char *fingerprin  int libmail_gpg_signkey(const char *gpgdir, const char *signthis, const char *signwith,  		int passphrase_fd,  		int (*dump_func)(const char *, size_t, void *), -		int trustlevel,  		void *voidarg); +int libmail_gpg_makepassphrasepipe(const char *passphrase, +				   size_t passphrase_size); +	/* +	** Create a pipe and fork, the child process writes the passphrase +	** to the pipe and exits. +	** +	** Returns the read end of the pipe. +	*/ +  int libmail_gpg_checksign(const char *gpgdir,  		  const char *content,	/* Filename, for now */  		  const char *signature, /* Filename, for now */ | 
