forked from TrueCloudLab/frostfs-node
4661f65975
There is a need to check if public key in the RPC response matches the public key of the related storage node declared in network map. Define `ErrWrongPublicKey` error. Implement RPC response handler's constructor `AssertKeyResponseCallback` which checks public key. Construct handler and pass it to client's option `WithResponseInfoHandler`. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru> |
||
---|---|---|
.. | ||
cache | ||
transport | ||
address.go | ||
address_test.go | ||
group.go | ||
tls.go | ||
tls_test.go | ||
validation.go | ||
validation_test.go |