From 4e36090846cc60f232e7fedf02ce0e423a5c2cec Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 28 Jul 2021 15:58:18 +0100 Subject: [PATCH] Expose the keys via CS API --- clientapi/routing/keys.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/keys.go b/clientapi/routing/keys.go index e2233642..8b8fcc27 100644 --- a/clientapi/routing/keys.go +++ b/clientapi/routing/keys.go @@ -115,8 +115,11 @@ func QueryKeys(req *http.Request, keyAPI api.KeyInternalAPI) util.JSONResponse { return util.JSONResponse{ Code: 200, JSON: map[string]interface{}{ - "device_keys": queryRes.DeviceKeys, - "failures": queryRes.Failures, + "device_keys": queryRes.DeviceKeys, + "master_keys": queryRes.MasterKeys, + "self_signing_keys": queryRes.SelfSigningKeys, + "user_signing_keys": queryRes.UserSigningKeys, + "failures": queryRes.Failures, }, } }