upstream: fix typos in sk_enroll

OpenBSD-Commit-ID: faa9bf779e008b3e64e2eb1344d9b7d83b3c4487
This commit is contained in:
markus@openbsd.org 2019-11-15 15:41:01 +00:00 committed by Damien Miller
parent af90aec044
commit d431778a56
1 changed files with 5 additions and 5 deletions

View File

@ -391,7 +391,7 @@ pack_public_key(int alg, fido_cred_t *cred, struct sk_enroll_response *response)
int
sk_enroll(int alg, const uint8_t *challenge, size_t challenge_len,
const char *application, uint8_t flags,
struct sk_enroll_response **enroll_reponse)
struct sk_enroll_response **enroll_response)
{
fido_cred_t *cred = NULL;
fido_dev_t *dev = NULL;
@ -408,11 +408,11 @@ sk_enroll(int alg, const uint8_t *challenge, size_t challenge_len,
#ifdef SK_DEBUG
fido_init(FIDO_DEBUG);
#endif
if (enroll_reponse == NULL) {
skdebug(__func__, "enroll_reponse == NULL");
if (enroll_response == NULL) {
skdebug(__func__, "enroll_response == NULL");
goto out;
}
*enroll_reponse = NULL;
*enroll_response = NULL;
switch(alg) {
case SK_ECDSA:
cose_alg = COSE_ES256;
@ -514,7 +514,7 @@ sk_enroll(int alg, const uint8_t *challenge, size_t challenge_len,
memcpy(response->attestation_cert, ptr, len);
response->attestation_cert_len = len;
}
*enroll_reponse = response;
*enroll_response = response;
response = NULL;
ret = 0;
out: