aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/ssh-pkcs11.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-05-12 20:24:10 +0000
committerEd Maste <emaste@FreeBSD.org>2026-05-12 20:24:10 +0000
commit644b4646c7acab87dc20d4e5dd53d2d9da152989 (patch)
tree5c1df5530ccb0c91e7b49f87325931817ca0e19d /crypto/openssh/ssh-pkcs11.h
parentbeab4a237a45aea809e81802b9e1e9ff30f3d929 (diff)
parent6409980cbba7323bd1c86249ed16f8bea9fa5490 (diff)
OpenSSH: Update to 10.1p1
Full release notes are available at https://www.openssh.com/txt/release-10.1 Selected highlights from the release notes: Potentially-incompatible changes * ssh(1): add a warning when the connection negotiates a non-post quantum key agreement algorithm. * ssh(1), sshd(8): major changes to handling of DSCP marking/IPQoS * ssh(1), sshd(8): deprecate support for IPv4 type-of-service (ToS) keywords in the IPQoS configuration directive. * ssh-add(1): when adding certificates to an agent, set the expiry to the certificate expiry time plus a short (5 min) grace period. * ssh-agent(1), sshd(8): move agent listener sockets from /tmp to under ~/.ssh/agent for both ssh-agent(1) and forwarded sockets in sshd(8). Security * ssh(1): disallow control characters in usernames passed via the commandline or expanded using %-sequences from the configuration file, and disallow \0 characters in ssh:// URIs. New features * ssh(1), sshd(8): add SIGINFO handlers to log active channel and session information. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'crypto/openssh/ssh-pkcs11.h')
-rw-r--r--crypto/openssh/ssh-pkcs11.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/crypto/openssh/ssh-pkcs11.h b/crypto/openssh/ssh-pkcs11.h
index 526022319b4b..d86c506c1c57 100644
--- a/crypto/openssh/ssh-pkcs11.h
+++ b/crypto/openssh/ssh-pkcs11.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.h,v 1.7 2023/12/18 14:46:56 djm Exp $ */
+/* $OpenBSD: ssh-pkcs11.h,v 1.9 2025/07/30 04:27:42 djm Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
*
@@ -22,10 +22,17 @@
#define SSH_PKCS11_ERR_PIN_REQUIRED 4
#define SSH_PKCS11_ERR_PIN_LOCKED 5
+struct sshkey;
+
int pkcs11_init(int);
void pkcs11_terminate(void);
int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***);
int pkcs11_del_provider(char *);
+int pkcs11_sign(struct sshkey *, u_char **, size_t *,
+ const u_char *, size_t, const char *, const char *,
+ const char *, u_int);
+void pkcs11_key_free(struct sshkey *);
+
#ifdef WITH_PKCS11_KEYGEN
struct sshkey *
pkcs11_gakp(char *, char *, unsigned int, char *, unsigned int,
@@ -35,9 +42,6 @@ struct sshkey *
u_int32_t *);
#endif
-/* Only available in ssh-pkcs11-client.c so far */
+/* Only available in ssh-pkcs11-client.c */
int pkcs11_make_cert(const struct sshkey *,
const struct sshkey *, struct sshkey **);
-#if !defined(WITH_OPENSSL) && defined(ENABLE_PKCS11)
-#undef ENABLE_PKCS11
-#endif