aboutsummaryrefslogtreecommitdiff
path: root/ssh-sk-helper.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2025-10-06 12:29:14 +0000
committerEd Maste <emaste@FreeBSD.org>2025-10-06 12:29:14 +0000
commit6409980cbba7323bd1c86249ed16f8bea9fa5490 (patch)
tree3710eb5988e5c6b0dd82c46413e96bba7cd18544 /ssh-sk-helper.c
parent9792a032f0a99557271d6b7f7b0a955386c1fdbe (diff)
Diffstat (limited to 'ssh-sk-helper.c')
-rw-r--r--ssh-sk-helper.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/ssh-sk-helper.c b/ssh-sk-helper.c
index 9857b632bfcb..806019c46a3d 100644
--- a/ssh-sk-helper.c
+++ b/ssh-sk-helper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk-helper.c,v 1.14 2022/12/04 11:03:11 dtucker Exp $ */
+/* $OpenBSD: ssh-sk-helper.c,v 1.15 2025/07/24 05:44:55 djm Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
@@ -45,6 +45,7 @@
#include "uidswap.h"
#include "ssherr.h"
#include "ssh-sk.h"
+#include "ssh-pkcs11.h"
#ifdef ENABLE_SK
extern char *__progname;
@@ -87,6 +88,22 @@ null_empty(char **s)
*s = NULL;
}
+/* stubs */
+int
+pkcs11_sign(struct sshkey *key,
+ u_char **sigp, size_t *lenp,
+ const u_char *data, size_t datalen,
+ const char *alg, const char *sk_provider,
+ const char *sk_pin, u_int compat)
+{
+ return SSH_ERR_INTERNAL_ERROR;
+}
+
+void
+pkcs11_key_free(struct sshkey *key)
+{
+}
+
static struct sshbuf *
process_sign(struct sshbuf *req)
{