forked from TrueCloudLab/frostfs-api-go
Verif
This commit is contained in:
parent
285516a94e
commit
799def09a7
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ func signServiceRequest(key *ecdsa.PrivateKey, v serviceRequest) error {
|
||||||
if err := signMessageParts(key, body, meta, header, header != nil, result); err != nil {
|
if err := signMessageParts(key, body, meta, header, header != nil, result); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := verifyServiceMessagePart(body, result.GetBodySignature); err != nil {
|
||||||
|
return fmt.Errorf("DEBUG POINT: could not verify body: %w", err)
|
||||||
|
}
|
||||||
result.SetOrigin(header)
|
result.SetOrigin(header)
|
||||||
v.SetVerificationHeader(result)
|
v.SetVerificationHeader(result)
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue