aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/cross_signing.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-24 15:10:33 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-24 15:10:33 +0200
commit6ae41d68dcdb91e5ec4a3ea48a151daaa0765765 (patch)
treef715eba9e690e8faa7de729b82ee82d9e0b30962 /lib/csapi/cross_signing.h
parent9f7a65b04c246de4c27b205ece778ede1ad7df7e (diff)
downloadlibquotient-6ae41d68dcdb91e5ec4a3ea48a151daaa0765765.tar.gz
libquotient-6ae41d68dcdb91e5ec4a3ea48a151daaa0765765.zip
Rework SignedOneTimeKey as a QJsonObject wrapper
Since this object has to be verified against a signature it also carries there's a rather specific procedure described in The Spec for that. That procedure basically assumes handling the signed one-time key object as a JSON object, not as a C++ object. And originally Quotient E2EE code was exactly like that (obtaining the right QJsonObject from the job result and handling it as specced) but then one enthusiastic developer (me) decided it's better to use a proper C++ structure - breaking the verification logic along the way. After a couple attempts to fix it, here we are again: SignedOneTimeKey is a proper QJsonObject, and even provides a method returning its JSON in the form prepared for verification (according to the spec).
Diffstat (limited to 'lib/csapi/cross_signing.h')
0 files changed, 0 insertions, 0 deletions
34 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174