mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
tests: Update to unbreak agent_cert test for CentOS 8
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 2ba5a5e976
)
This commit is contained in:
@ -736,7 +736,7 @@ static void torture_auth_cert(void **state) {
|
|||||||
|
|
||||||
static void torture_auth_agent_cert(void **state)
|
static void torture_auth_agent_cert(void **state)
|
||||||
{
|
{
|
||||||
#if OPENSSH_VERSION_MAJOR < 8
|
#if OPENSSH_VERSION_MAJOR < 8 || (OPENSSH_VERSION_MAJOR == 8 && OPENSSH_VERSION_MINOR == 0)
|
||||||
struct torture_state *s = *state;
|
struct torture_state *s = *state;
|
||||||
ssh_session session = s->ssh.session;
|
ssh_session session = s->ssh.session;
|
||||||
int rc;
|
int rc;
|
||||||
@ -756,7 +756,7 @@ static void torture_auth_agent_cert(void **state)
|
|||||||
"ssh-rsa-cert-v01@openssh.com");
|
"ssh-rsa-cert-v01@openssh.com");
|
||||||
assert_int_equal(rc, SSH_OK);
|
assert_int_equal(rc, SSH_OK);
|
||||||
}
|
}
|
||||||
#endif /* OPENSSH_VERSION_MAJOR < 8 */
|
#endif /* OPENSSH_VERSION_MAJOR < 8.1 */
|
||||||
|
|
||||||
/* Setup loads a different key, tests are exactly the same. */
|
/* Setup loads a different key, tests are exactly the same. */
|
||||||
torture_auth_agent(state);
|
torture_auth_agent(state);
|
||||||
@ -764,7 +764,7 @@ static void torture_auth_agent_cert(void **state)
|
|||||||
|
|
||||||
static void torture_auth_agent_cert_nonblocking(void **state)
|
static void torture_auth_agent_cert_nonblocking(void **state)
|
||||||
{
|
{
|
||||||
#if OPENSSH_VERSION_MAJOR < 8
|
#if OPENSSH_VERSION_MAJOR < 8 || (OPENSSH_VERSION_MAJOR == 8 && OPENSSH_VERSION_MINOR == 0)
|
||||||
struct torture_state *s = *state;
|
struct torture_state *s = *state;
|
||||||
ssh_session session = s->ssh.session;
|
ssh_session session = s->ssh.session;
|
||||||
int rc;
|
int rc;
|
||||||
@ -784,7 +784,7 @@ static void torture_auth_agent_cert_nonblocking(void **state)
|
|||||||
"ssh-rsa-cert-v01@openssh.com");
|
"ssh-rsa-cert-v01@openssh.com");
|
||||||
assert_int_equal(rc, SSH_OK);
|
assert_int_equal(rc, SSH_OK);
|
||||||
}
|
}
|
||||||
#endif /* OPENSSH_VERSION_MAJOR < 8 */
|
#endif /* OPENSSH_VERSION_MAJOR < 8.1 */
|
||||||
|
|
||||||
torture_auth_agent_nonblocking(state);
|
torture_auth_agent_nonblocking(state);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user