From db0aacb2daf782cc93804469945321a79ce73c45 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Thu, 22 Dec 2022 12:23:31 +0100 Subject: [PATCH] Add sign certificate response handling to clientsim --- cmd/clientsim/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/clientsim/main.go b/cmd/clientsim/main.go index 0ee818f..f64236f 100644 --- a/cmd/clientsim/main.go +++ b/cmd/clientsim/main.go @@ -322,6 +322,13 @@ func (c *ClientHandler) ResponseData(ctx context.Context, in <-chan []byte, resp return fmt.Errorf("could not unmarshal fetch CRL response data: %w", err) } + response.Response = &resp + case messages.RespSignCertificate: + var resp messages.SignCertificateResponse + if err := msgpack.Unmarshal(frame, &resp); err != nil { + return fmt.Errorf("could not unmarshal sign certificate response data: %w", err) + } + response.Response = &resp default: return fmt.Errorf("unhandled response code %s", response.Announce.Code)