X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gpg2ssh.c;h=a1e94df7998a55a56c88a97e9342abfe14153def;hb=b6ffd187f988196f6295b23da82dc13c3aff239b;hp=615554990161f4bff2aefeac390a693ec7011d2f;hpb=a4c93ce43a942be7f92248cb1ef3a1d3313bce5e;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; }