summaryrefslogtreecommitdiff
path: root/regress/misc/fuzz-harness
diff options
context:
space:
mode:
Diffstat (limited to 'regress/misc/fuzz-harness')
-rw-r--r--regress/misc/fuzz-harness/ssh-sk-null.cc46
1 files changed, 46 insertions, 0 deletions
diff --git a/regress/misc/fuzz-harness/ssh-sk-null.cc b/regress/misc/fuzz-harness/ssh-sk-null.cc
new file mode 100644
index 000000000..a06089969
--- /dev/null
+++ b/regress/misc/fuzz-harness/ssh-sk-null.cc
@@ -0,0 +1,46 @@
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#include "includes.h"
19
20#include <sys/types.h>
21
22#include "ssherr.h"
23#include "ssh-sk.h"
24
25int
26sshsk_sign(const char *provider, struct sshkey *key,
27 u_char **sigp, size_t *lenp, const u_char *data, size_t datalen,
28 u_int compat, const char *pin)
29{
30 return SSH_ERR_FEATURE_UNSUPPORTED;
31}
32
33int
34sshsk_enroll(int type, const char *provider_path, const char *application,
35 uint8_t flags, const char *pin, struct sshbuf *challenge_buf,
36 struct sshkey **keyp, struct sshbuf *attest)
37{
38 return SSH_ERR_FEATURE_UNSUPPORTED;
39}
40
41int
42sshsk_load_resident(const char *provider_path, const char *pin,
43 struct sshkey ***keysp, size_t *nkeysp)
44{
45 return SSH_ERR_FEATURE_UNSUPPORTED;
46}