Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ParseSessionState (0.39 sec)

  1. src/crypto/tls/ticket.go

    	s := make([][]byte, 0, len(certs))
    	for _, c := range certs {
    		s = append(s, c.Raw)
    	}
    	return s
    }
    
    // ParseSessionState parses a [SessionState] encoded by [SessionState.Bytes].
    func ParseSessionState(data []byte) (*SessionState, error) {
    	ss := &SessionState{}
    	s := cryptobyte.String(data)
    	var typ, extMasterSecret, earlyData uint8
    	var cert Certificate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_messages_test.go

    		}
    	}
    	return reflect.ValueOf(s)
    }
    
    func (s *SessionState) marshal() ([]byte, error) { return s.Bytes() }
    func (s *SessionState) unmarshal(b []byte) bool {
    	ss, err := ParseSessionState(b)
    	if err != nil {
    		return false
    	}
    	*s = *ss
    	return true
    }
    
    func (*endOfEarlyDataMsg) Generate(rand *rand.Rand, size int) reflect.Value {
    	m := &endOfEarlyDataMsg{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server.go

    			return nil
    		}
    		sessionState = ss
    	} else {
    		plaintext := c.config.decryptTicket(hs.clientHello.sessionTicket, c.ticketKeys)
    		if plaintext == nil {
    			return nil
    		}
    		ss, err := ParseSessionState(plaintext)
    		if err != nil {
    			return nil
    		}
    		sessionState = ss
    	}
    
    	// TLS 1.2 tickets don't natively have a lifetime, but we want to avoid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. api/go1.21.txt

    pkg crypto/tls, const QUICWriteData = 3 #44886
    pkg crypto/tls, const QUICWriteData QUICEventKind #44886
    pkg crypto/tls, func NewResumptionState([]uint8, *SessionState) (*ClientSessionState, error) #60105
    pkg crypto/tls, func ParseSessionState([]uint8) (*SessionState, error) #60105
    pkg crypto/tls, func QUICClient(*QUICConfig) *QUICConn #44886
    pkg crypto/tls, func QUICServer(*QUICConfig) *QUICConn #44886
    pkg crypto/tls, func VersionName(uint16) string #46308
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_server_tls13.go

    				continue
    			}
    		} else {
    			plaintext := c.config.decryptTicket(identity.label, c.ticketKeys)
    			if plaintext == nil {
    				continue
    			}
    			var err error
    			sessionState, err = ParseSessionState(plaintext)
    			if err != nil {
    				continue
    			}
    		}
    
    		if sessionState.version != VersionTLS13 {
    			continue
    		}
    
    		createdAt := time.Unix(int64(sessionState.createdAt), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top