mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
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
17 lines
523 B
C
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");
|
|
}
|