version 1.12, 2020/03/06 18:13:29 |
version 1.13, 2020/03/06 18:27:15 |
|
|
goto done; |
goto done; |
} |
} |
done: |
done: |
if (found) { |
if (found && principalsp != NULL) { |
*principalsp = principals; |
*principalsp = principals; |
principals = NULL; /* transferred */ |
principals = NULL; /* transferred */ |
} |
} |
|
|
struct sshkey *pk = NULL; |
struct sshkey *pk = NULL; |
int r = SSH_ERR_SIGNATURE_INVALID; |
int r = SSH_ERR_SIGNATURE_INVALID; |
|
|
if (pubkey != NULL) |
if (pubkey == NULL) |
*pubkey = NULL; |
return SSH_ERR_INTERNAL_ERROR; |
if ((r = sshsig_parse_preamble(signature)) != 0) |
if ((r = sshsig_parse_preamble(signature)) != 0) |
return r; |
return r; |
if ((r = sshkey_froms(signature, &pk)) != 0) |
if ((r = sshkey_froms(signature, &pk)) != 0) |