1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-04-26 16:48:48 +03:00
libssh2/tests/test_auth_pubkey_fail.c
Viktor Szakats 1a99a86a29
tests: replace FIXME with comments
`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.
2023-08-03 01:12:21 +00:00

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");
}