diff options
-rw-r--r-- | ssh-sk.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-sk.c,v 1.9 2019/11/12 19:34:40 markus Exp $ */ | 1 | /* $OpenBSD: ssh-sk.c,v 1.10 2019/11/12 22:38:19 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019 Google LLC | 3 | * Copyright (c) 2019 Google LLC |
4 | * | 4 | * |
@@ -300,7 +300,8 @@ sshsk_enroll(int type, const char *provider_path, const char *application, | |||
300 | } | 300 | } |
301 | /* Check response validity */ | 301 | /* Check response validity */ |
302 | if (resp->public_key == NULL || resp->key_handle == NULL || | 302 | if (resp->public_key == NULL || resp->key_handle == NULL || |
303 | resp->signature == NULL || resp->attestation_cert == NULL) { | 303 | resp->signature == NULL || |
304 | (resp->attestation_cert == NULL && resp->attestation_cert_len != 0)) { | ||
304 | error("%s: sk_enroll response invalid", __func__); | 305 | error("%s: sk_enroll response invalid", __func__); |
305 | r = SSH_ERR_INVALID_FORMAT; | 306 | r = SSH_ERR_INVALID_FORMAT; |
306 | goto out; | 307 | goto out; |