From 47ec1e900565e4432672ae5bd04630a782903d40 Mon Sep 17 00:00:00 2001 From: Gaukas Wang Date: Mon, 15 Jul 2024 21:45:33 -0600 Subject: [PATCH] chore: add empty lines between functions Signed-off-by: Gaukas Wang --- u_public.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/u_public.go b/u_public.go index fbb912fb..51265300 100644 --- a/u_public.go +++ b/u_public.go @@ -676,54 +676,63 @@ func (css *ClientSessionState) VerifiedChains() [][]*x509.Certificate { func (css *ClientSessionState) SetSessionTicket(SessionTicket []uint8) { css.ticket = SessionTicket } + func (css *ClientSessionState) SetVers(Vers uint16) { if css.session == nil { css.session = &SessionState{} } css.session.version = Vers } + func (css *ClientSessionState) SetCipherSuite(CipherSuite uint16) { if css.session == nil { css.session = &SessionState{} } css.session.cipherSuite = CipherSuite } + func (css *ClientSessionState) SetCreatedAt(createdAt uint64) { if css.session == nil { css.session = &SessionState{} } css.session.createdAt = createdAt } + func (css *ClientSessionState) SetMasterSecret(MasterSecret []byte) { if css.session == nil { css.session = &SessionState{} } css.session.secret = MasterSecret } + func (css *ClientSessionState) SetEMS(ems bool) { if css.session == nil { css.session = &SessionState{} } css.session.extMasterSecret = ems } + func (css *ClientSessionState) SetServerCertificates(ServerCertificates []*x509.Certificate) { if css.session == nil { css.session = &SessionState{} } css.session.peerCertificates = ServerCertificates } + func (css *ClientSessionState) SetVerifiedChains(VerifiedChains [][]*x509.Certificate) { if css.session == nil { css.session = &SessionState{} } css.session.verifiedChains = VerifiedChains } + func (css *ClientSessionState) SetUseBy(useBy uint64) { if css.session == nil { css.session = &SessionState{} } css.session.useBy = useBy } + func (css *ClientSessionState) SetAgeAdd(ageAdd uint32) { if css.session == nil { css.session = &SessionState{}