X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gpg2ssh.c;h=a1e94df7998a55a56c88a97e9342abfe14153def;hb=03f7058885d83592f3fe4faefc2d3fb148615ec4;hp=615554990161f4bff2aefeac390a693ec7011d2f;hpb=ea04bfffe93df1f3467a5c33c0dda335ff0a11f6;p=monkeysphere.git diff --git a/gpg2ssh.c b/gpg2ssh.c index 6155549..a1e94df 100644 --- a/gpg2ssh.c +++ b/gpg2ssh.c @@ -146,7 +146,7 @@ int main(int argc, char* argv[]) { } else { err("primary key is only good for: 0x%08x. Trying subkeys...\n", usage); - if (ret = gnutls_openpgp_crt_get_auth_subkey(openpgp_crt, keyid), ret) { + if (ret = gnutls_openpgp_crt_get_auth_subkey(openpgp_crt, keyid, 0), ret) { err("failed to find a subkey capable of authentication (error: %d)\n", ret); return ret; }