Skip to content

Commit bd50c06

Browse files
committed
fixup! fixup! fixup! fixup! openssh-10.2p1-pkcs11-uri
1 parent 86bfbb1 commit bd50c06

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ssh-pkcs11-client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "includes.h"
2020

21+
#ifdef ENABLE_PKCS11
2122
#include <sys/types.h>
2223
#include <sys/time.h>
2324
#include <sys/socket.h>
@@ -508,3 +509,4 @@ pkcs11_key_free(struct sshkey *key)
508509
if (helper->nkeyblobs == 0)
509510
helper_terminate(helper);
510511
}
512+
#endif

sshkey.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,10 @@ sshkey_free_contents(struct sshkey *k)
759759

760760
if (k == NULL)
761761
return;
762+
#ifdef ENABLE_PKCS11
762763
if ((k->flags & SSHKEY_FLAG_EXT) != 0)
763764
pkcs11_key_free(k);
765+
#endif
764766
if ((impl = sshkey_impl_from_type(k->type)) != NULL &&
765767
impl->funcs->cleanup != NULL)
766768
impl->funcs->cleanup(k);
@@ -2188,9 +2190,11 @@ sshkey_sign(struct sshkey *key,
21882190
if (sshkey_is_sk(key)) {
21892191
r = sshsk_sign(sk_provider, key, sigp, lenp, data,
21902192
datalen, compat, sk_pin);
2193+
#ifdef ENABLE_PKCS11
21912194
} else if ((key->flags & SSHKEY_FLAG_EXT) != 0) {
21922195
r = pkcs11_sign(key, sigp, lenp, data, datalen,
21932196
alg, sk_provider, sk_pin, compat);
2197+
#endif
21942198
} else {
21952199
if (impl->funcs->sign == NULL)
21962200
r = SSH_ERR_SIGN_ALG_UNSUPPORTED;

0 commit comments

Comments
 (0)