mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 11:50:10 +01:00
This patch switches code to SPDX one-line license identifiers according to https://spdx.dev/learn/handling-license-info/ and replacing long license text headers. I used C++ format on the first line in style // SPDX-License-Identifier: <id> except exported libcryptsetup.h, when only C comments are used. The only additional changes are: - switch backend utf8.c from LGPL2+ to LGPL2.1+ (as in systemd) - add some additional formatting lines.
22 lines
631 B
C
22 lines
631 B
C
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
/*
|
|
* ssh plugin utilities
|
|
*
|
|
* Copyright (C) 2016-2024 Milan Broz
|
|
* Copyright (C) 2020-2024 Vojtech Trefny
|
|
*/
|
|
|
|
#ifndef SSH_UTILS_H
|
|
#define SSH_UTILS_H
|
|
|
|
#include <libssh/libssh.h>
|
|
#include <libssh/sftp.h>
|
|
#include <libcryptsetup.h>
|
|
|
|
int sshplugin_download_password(struct crypt_device *cd, ssh_session ssh,
|
|
const char *path, char **password, size_t *password_len);
|
|
ssh_session sshplugin_session_init(struct crypt_device *cd, const char *host, const char *user);
|
|
int sshplugin_public_key_auth(struct crypt_device *cd, ssh_session ssh, const ssh_key pkey);
|
|
|
|
#endif /* SSH_UTILS_H */
|