version 1.27, 2020/10/03 03:40:38 |
version 1.28, 2020/10/18 11:32:02 |
|
|
} |
} |
if ((ptr = fido_cred_x5c_ptr(cred)) != NULL) { |
if ((ptr = fido_cred_x5c_ptr(cred)) != NULL) { |
len = fido_cred_x5c_len(cred); |
len = fido_cred_x5c_len(cred); |
debug3("%s: attestation cert len=%zu", __func__, len); |
skdebug(__func__, "attestation cert len=%zu", len); |
if ((response->attestation_cert = calloc(1, len)) == NULL) { |
if ((response->attestation_cert = calloc(1, len)) == NULL) { |
skdebug(__func__, "calloc attestation cert failed"); |
skdebug(__func__, "calloc attestation cert failed"); |
goto out; |
goto out; |
|
|
} |
} |
if ((ptr = fido_cred_authdata_ptr(cred)) != NULL) { |
if ((ptr = fido_cred_authdata_ptr(cred)) != NULL) { |
len = fido_cred_authdata_len(cred); |
len = fido_cred_authdata_len(cred); |
debug3("%s: authdata len=%zu", __func__, len); |
skdebug(__func__, "authdata len=%zu", len); |
if ((response->authdata = calloc(1, len)) == NULL) { |
if ((response->authdata = calloc(1, len)) == NULL) { |
skdebug(__func__, "calloc authdata failed"); |
skdebug(__func__, "calloc authdata failed"); |
goto out; |
goto out; |