diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c index 29f6f5a5..d02fd6e2 100644 --- a/tests/client/torture_auth.c +++ b/tests/client/torture_auth.c @@ -642,6 +642,7 @@ static void torture_auth_cert(void **state) { static void torture_auth_agent_cert(void **state) { +#if OPENSSH_VERSION_MAJOR < 8 struct torture_state *s = *state; ssh_session session = s->ssh.session; int rc; @@ -661,6 +662,7 @@ static void torture_auth_agent_cert(void **state) "ssh-rsa-cert-v01@openssh.com"); assert_int_equal(rc, SSH_OK); } +#endif /* OPENSSH_VERSION_MAJOR < 8 */ /* Setup loads a different key, tests are exactly the same. */ torture_auth_agent(state); @@ -668,6 +670,7 @@ static void torture_auth_agent_cert(void **state) static void torture_auth_agent_cert_nonblocking(void **state) { +#if OPENSSH_VERSION_MAJOR < 8 struct torture_state *s = *state; ssh_session session = s->ssh.session; int rc; @@ -687,6 +690,7 @@ static void torture_auth_agent_cert_nonblocking(void **state) "ssh-rsa-cert-v01@openssh.com"); assert_int_equal(rc, SSH_OK); } +#endif /* OPENSSH_VERSION_MAJOR < 8 */ torture_auth_agent_nonblocking(state); }