libssh 0.12.1 The SSH library

Loading...
Searching...
No Matches
pki_sk.h
1/*
2 * This file is part of the SSH Library
3 *
4 * Copyright (c) 2025 Praneeth Sarode <praneethsarode@gmail.com>
5 *
6 * The SSH Library is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, version 2.1 of the License.
9 *
10 * The SSH Library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13 * License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with the SSH Library; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 * MA 02111-1307, USA.
19 */
20
21#ifndef PKI_SK_H
22#define PKI_SK_H
23
24#include "libssh/libssh.h"
25#include "libssh/pki.h"
26
27#include <stdint.h>
28
29#define SSH_SK_MAX_USER_ID_LEN 64
30
56 int pki_sk_enroll_key(ssh_pki_ctx context,
57 enum ssh_keytypes_e key_type,
58 ssh_key *enrolled_key_result);
59
85ssh_signature pki_sk_do_sign(ssh_pki_ctx context,
86 const ssh_key key,
87 const uint8_t *data,
88 size_t data_len);
89
90#endif /* PKI_SK_H */
pki_sk_enroll_key
int pki_sk_enroll_key(ssh_pki_ctx context, enum ssh_keytypes_e key_type, ssh_key *enrolled_key_result)
Enroll a new security key using a U2F/FIDO2 authenticator.
Definition pki_sk.c:239