chore: add empty lines between functions

Signed-off-by: Gaukas Wang <i@gaukas.wang>
This commit is contained in:
Gaukas Wang 2024-07-15 21:45:33 -06:00
parent e39486f81c
commit 47ec1e9005
No known key found for this signature in database
GPG key ID: 9E2F8986D76F8B5D

View file

@ -676,54 +676,63 @@ func (css *ClientSessionState) VerifiedChains() [][]*x509.Certificate {
func (css *ClientSessionState) SetSessionTicket(SessionTicket []uint8) { func (css *ClientSessionState) SetSessionTicket(SessionTicket []uint8) {
css.ticket = SessionTicket css.ticket = SessionTicket
} }
func (css *ClientSessionState) SetVers(Vers uint16) { func (css *ClientSessionState) SetVers(Vers uint16) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.version = Vers css.session.version = Vers
} }
func (css *ClientSessionState) SetCipherSuite(CipherSuite uint16) { func (css *ClientSessionState) SetCipherSuite(CipherSuite uint16) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.cipherSuite = CipherSuite css.session.cipherSuite = CipherSuite
} }
func (css *ClientSessionState) SetCreatedAt(createdAt uint64) { func (css *ClientSessionState) SetCreatedAt(createdAt uint64) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.createdAt = createdAt css.session.createdAt = createdAt
} }
func (css *ClientSessionState) SetMasterSecret(MasterSecret []byte) { func (css *ClientSessionState) SetMasterSecret(MasterSecret []byte) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.secret = MasterSecret css.session.secret = MasterSecret
} }
func (css *ClientSessionState) SetEMS(ems bool) { func (css *ClientSessionState) SetEMS(ems bool) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.extMasterSecret = ems css.session.extMasterSecret = ems
} }
func (css *ClientSessionState) SetServerCertificates(ServerCertificates []*x509.Certificate) { func (css *ClientSessionState) SetServerCertificates(ServerCertificates []*x509.Certificate) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.peerCertificates = ServerCertificates css.session.peerCertificates = ServerCertificates
} }
func (css *ClientSessionState) SetVerifiedChains(VerifiedChains [][]*x509.Certificate) { func (css *ClientSessionState) SetVerifiedChains(VerifiedChains [][]*x509.Certificate) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.verifiedChains = VerifiedChains css.session.verifiedChains = VerifiedChains
} }
func (css *ClientSessionState) SetUseBy(useBy uint64) { func (css *ClientSessionState) SetUseBy(useBy uint64) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}
} }
css.session.useBy = useBy css.session.useBy = useBy
} }
func (css *ClientSessionState) SetAgeAdd(ageAdd uint32) { func (css *ClientSessionState) SetAgeAdd(ageAdd uint32) {
if css.session == nil { if css.session == nil {
css.session = &SessionState{} css.session = &SessionState{}