mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
chore: add empty lines between functions
Signed-off-by: Gaukas Wang <i@gaukas.wang>
This commit is contained in:
parent
e39486f81c
commit
47ec1e9005
1 changed files with 9 additions and 0 deletions
|
@ -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{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue