Skip to content

Commit 6443ca0

Browse files
committed
Choose from secret keys only
1 parent 912c4f9 commit 6443ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/appimagetool_sign.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ bool add_signers(const char* key_id) {
189189
// we could use the list stuff below, but using gpgme_get_key is a lot easier...
190190
gpg_check_call(gpgme_get_key(gpgme_ctx, key_id, &gpgme_key, true));
191191
} else {
192-
// searching the "first available key" is a little complex in gpgme...
192+
// searching the "first available secret key" is a little complex in gpgme...
193193
// since we are just looking for the first one, we don't need a loop at least
194-
gpg_check_call(gpgme_op_keylist_start(gpgme_ctx, NULL, 0));
194+
gpg_check_call(gpgme_op_keylist_start(gpgme_ctx, NULL, true));
195195
gpg_check_call(gpgme_op_keylist_next(gpgme_ctx, &gpgme_key));
196196
}
197197

0 commit comments

Comments
 (0)