summaryrefslogtreecommitdiffabout
path: root/src/gpg.c
Unidiff
Diffstat (limited to 'src/gpg.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gpg.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpg.c b/src/gpg.c
index 71be53c..1389845 100644
--- a/src/gpg.c
+++ b/src/gpg.c
@@ -128,8 +128,8 @@ remove_homedir ()
128} 128}
129 129
130/* Create a temporary GPG home directory */ 130/* Create a temporary GPG home directory */
131int 131static int
132wydawca_gpg_homedir () 132create_gpg_homedir ()
133{ 133{
134 if (homedir) 134 if (homedir)
135 return 0; 135 return 0;
@@ -222,12 +222,11 @@ verify_directive_signature (struct file_triplet *trp,
222{ 222{
223 gpgme_ctx_t ctx; 223 gpgme_ctx_t ctx;
224 gpgme_data_t key_data, directive_data, plain; 224 gpgme_data_t key_data, directive_data, plain;
225 off_t size;
226 gpgme_error_t ec; 225 gpgme_error_t ec;
227 int rc; 226 int rc;
228 struct uploader_info *uptr; 227 struct uploader_info *uptr;
229 228
230 wydawca_gpg_homedir (); 229 create_gpg_homedir ();
231 fail_if_err (gpgme_new (&ctx)); 230 fail_if_err (gpgme_new (&ctx));
232 231
233 for (uptr = trp->uploader_list; uptr; uptr = uptr->next) 232 for (uptr = trp->uploader_list; uptr; uptr = uptr->next)
@@ -301,7 +300,7 @@ verify_detached_signature (struct file_triplet *trp,
301 return 1; 300 return 1;
302 } 301 }
303 302
304 wydawca_gpg_homedir (); 303 create_gpg_homedir ();
305 argv[0] = info->file_name; 304 argv[0] = info->file_name;
306 argv[1] = "--verify"; 305 argv[1] = "--verify";
307 argv[2] = trp->file[file_signature].name; 306 argv[2] = trp->file[file_signature].name;

Return to:

Send suggestions and report system problems to the System administrator.