diff --git a/tokens/ssh/cryptsetup-ssh.c b/tokens/ssh/cryptsetup-ssh.c index 4df47b35..1843a8fd 100644 --- a/tokens/ssh/cryptsetup-ssh.c +++ b/tokens/ssh/cryptsetup-ssh.c @@ -211,7 +211,7 @@ parse_opt (int key, char *arg, struct argp_state *state) { static struct argp argp = { options, parse_opt, args_doc, doc }; -void _log(int level, const char *msg, void *usrptr) +static void _log(int level, const char *msg, void *usrptr) { struct arguments *arguments = (struct arguments *)usrptr; diff --git a/tokens/ssh/libcryptsetup-token-ssh.c b/tokens/ssh/libcryptsetup-token-ssh.c index 9d80e314..fddb00bf 100644 --- a/tokens/ssh/libcryptsetup-token-ssh.c +++ b/tokens/ssh/libcryptsetup-token-ssh.c @@ -44,6 +44,16 @@ #define l_dbg(cd, x...) crypt_logf(cd, CRYPT_LOG_DEBUG, x) + +const char *cryptsetup_token_version(void); +int cryptsetup_token_open_pin(struct crypt_device *cd, int token, const char *pin, + size_t pin_size, char **password, size_t *password_len, void *usrptr); +int cryptsetup_token_open(struct crypt_device *cd, int token, + char **password, size_t *password_len, void *usrptr); +void cryptsetup_token_dump(struct crypt_device *cd, const char *json); +int cryptsetup_token_validate(struct crypt_device *cd, const char *json); + + const char *cryptsetup_token_version(void) { return TOKEN_VERSION_MAJOR "." TOKEN_VERSION_MINOR; diff --git a/tokens/ssh/ssh-utils.c b/tokens/ssh/ssh-utils.c index ba4824b7..5738108e 100644 --- a/tokens/ssh/ssh-utils.c +++ b/tokens/ssh/ssh-utils.c @@ -26,6 +26,7 @@ #include #include #include +#include "ssh-utils.h" #define KEYFILE_LENGTH_MAX 8192