version 1.7, 2020/06/22 05:58:35 |
version 1.8, 2020/06/22 23:44:27 |
|
|
r = SSH_ERR_INVALID_FORMAT; |
r = SSH_ERR_INVALID_FORMAT; |
goto out; |
goto out; |
} |
} |
|
|
|
/* |
|
* Prepare the preamble to clientData that we expect, poking the |
|
* challenge and origin into their canonical positions in the |
|
* structure. The crossOrigin flag and any additional extension |
|
* fields present are ignored. |
|
*/ |
#define WEBAUTHN_0 "{\"type\":\"webauthn.get\",\"challenge\":\"" |
#define WEBAUTHN_0 "{\"type\":\"webauthn.get\",\"challenge\":\"" |
#define WEBAUTHN_1 "\",\"origin\":\"" |
#define WEBAUTHN_1 "\",\"origin\":\"" |
#define WEBAUTHN_2 "\"" |
#define WEBAUTHN_2 "\"" |
|
|
fprintf(stderr, "%s: expected clientData premable:\n", __func__); |
fprintf(stderr, "%s: expected clientData premable:\n", __func__); |
sshbuf_dump(m, stderr); |
sshbuf_dump(m, stderr); |
#endif |
#endif |
/* Check that the supplied clientData matches what we expect */ |
/* Check that the supplied clientData has the preamble we expect */ |
if ((r = sshbuf_cmp(wrapper, 0, sshbuf_ptr(m), sshbuf_len(m))) != 0) |
if ((r = sshbuf_cmp(wrapper, 0, sshbuf_ptr(m), sshbuf_len(m))) != 0) |
goto out; |
goto out; |
|
|