mirror of
https://github.com/libssh2/libssh2.git
synced 2025-04-26 16:48:48 +03:00
`key_dsa_wrong` is the same kind of (valid) key as `key_dsa`, both with an empty passphrase. Named "wrong" because it's intentionally not added to our `openssh_server/authorized_keys` file.
16 lines
450 B
C
16 lines
450 B
C
/* Copyright (C) The libssh2 project and its contributors.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include "runner.h"
|
|
|
|
int test(LIBSSH2_SESSION *session)
|
|
{
|
|
return test_auth_pubkey(session, TEST_AUTH_SHOULDFAIL,
|
|
"libssh2", /* set in Dockerfile */
|
|
NULL,
|
|
"key_dsa_wrong.pub", /* Not authorized on server */
|
|
"key_dsa_wrong");
|
|
}
|