mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
[raop] Drop handling of old auth_keys, not necessary with db schema update
This commit is contained in:
parent
8368ca7686
commit
fac97eed9c
@ -4207,21 +4207,13 @@ static int
|
|||||||
raop_pair_verify(struct raop_session *rs)
|
raop_pair_verify(struct raop_session *rs)
|
||||||
{
|
{
|
||||||
struct output_device *device;
|
struct output_device *device;
|
||||||
const char *auth_key;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
device = outputs_device_get(rs->device_id);
|
device = outputs_device_get(rs->device_id);
|
||||||
if (!device)
|
if (!device)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
// Backwards compat - older versions saved the key as concat of public key and
|
CHECK_NULL(L_RAOP, rs->pair_verify_ctx = pair_verify_new(PAIR_FRUIT, device->auth_key, NULL));
|
||||||
// private key, but the pair_verify_new only wants the private key
|
|
||||||
if (strlen(device->auth_key) == (32 + 64) * 2)
|
|
||||||
auth_key = device->auth_key + 32;
|
|
||||||
else
|
|
||||||
auth_key = device->auth_key;
|
|
||||||
|
|
||||||
CHECK_NULL(L_RAOP, rs->pair_verify_ctx = pair_verify_new(PAIR_FRUIT, auth_key, NULL));
|
|
||||||
|
|
||||||
ret = raop_pair_request_send(4, rs, raop_cb_pair_verify_step1);
|
ret = raop_pair_request_send(4, rs, raop_cb_pair_verify_step1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user