Coverage Report

Created: 2025-07-01 06:04

/src/hpn-ssh/regress/misc/fuzz-harness/ssh-sk-null.cc
Line
Count
Source (jump to first uncovered line)
1
/* $OpenBSD$ */
2
/*
3
 * Copyright (c) 2019 Google LLC
4
 *
5
 * Permission to use, copy, modify, and distribute this software for any
6
 * purpose with or without fee is hereby granted, provided that the above
7
 * copyright notice and this permission notice appear in all copies.
8
 *
9
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
 */
17
18
extern "C" {
19
20
#include "includes.h"
21
22
#include <sys/types.h>
23
24
#include "ssherr.h"
25
#include "ssh-sk.h"
26
27
int
28
sshsk_enroll(int type, const char *provider_path, const char *device,
29
    const char *application, const char *userid, uint8_t flags,
30
    const char *pin, struct sshbuf *challenge_buf,
31
    struct sshkey **keyp, struct sshbuf *attest)
32
0
{
33
0
  return SSH_ERR_FEATURE_UNSUPPORTED;
34
0
}
35
36
int
37
sshsk_sign(const char *provider_path, struct sshkey *key,
38
    u_char **sigp, size_t *lenp, const u_char *data, size_t datalen,
39
    u_int compat, const char *pin)
40
0
{
41
0
  return SSH_ERR_FEATURE_UNSUPPORTED;
42
0
}
43
44
int
45
sshsk_load_resident(const char *provider_path, const char *device,
46
    const char *pin, u_int flags, struct sshsk_resident_key ***srksp,
47
    size_t *nsrksp)
48
0
{
49
0
  return SSH_ERR_FEATURE_UNSUPPORTED;
50
0
}
51
52
};