diff options
Diffstat (limited to 'ssh-sk-client.c')
-rw-r--r-- | ssh-sk-client.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ssh-sk-client.c b/ssh-sk-client.c index 92ac0e7e..8a7ac97c 100644 --- a/ssh-sk-client.c +++ b/ssh-sk-client.c @@ -198,6 +198,10 @@ sshsk_sign(const char *provider, struct sshkey *key, *sigp = NULL; *lenp = 0; +#ifndef ENABLE_SK + return SSH_ERR_KEY_TYPE_UNKNOWN; +#endif + if ((kbuf = sshbuf_new()) == NULL || (req = sshbuf_new()) == NULL) { r = SSH_ERR_ALLOC_FAIL; @@ -266,6 +270,10 @@ sshsk_enroll(int type, const char *provider_path, const char *application, if (attest != NULL) sshbuf_reset(attest); +#ifndef ENABLE_SK + return SSH_ERR_KEY_TYPE_UNKNOWN; +#endif + if (type < 0) return SSH_ERR_INVALID_ARGUMENT; |