1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/tests/test_auth_pubkey_fail.c
Viktor Szakats b937ded9f0 tests: replace DSA with RSA key for fail test
To use a key type that is:
- supported by all backends.
- can be generated with the most recent `ssh-keygen` version.
- here to stay for the foreseeable future.
  (DSA is scheduled for removal from the libssh2 codebase.)

Cherry-picked from #2598

Closes #2604
2026-09-12 01:36:44 +02:00

17 lines
523 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,
"keys/id_rsa_pem_miss.pub", /* Not authorized
on server */
"keys/id_rsa_pem_miss");
}