소스 검색

crypto/tls: clarify concurrent use of Config

LGTM=r, agl
R=agl, r
CC=golang-codereviews
https://golang.org/cl/77530044
tls13
Brad Fitzpatrick 10 년 전
부모
커밋
ab3538d779
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -2
      common.go

+ 5
- 2
common.go 파일 보기

@@ -201,12 +201,15 @@ type ClientSessionCache interface {
Put(sessionKey string, cs *ClientSessionState)
}

// A Config structure is used to configure a TLS client or server. After one
// has been passed to a TLS function it must not be modified.
// A Config structure is used to configure a TLS client or server.
// After one has been passed to a TLS function it must not be
// modified. A Config may be reused; the tls package will also not
// modify it.
type Config struct {
// Rand provides the source of entropy for nonces and RSA blinding.
// If Rand is nil, TLS uses the cryptographic random reader in package
// crypto/rand.
// The Reader must be safe for use by multiple goroutines.
Rand io.Reader

// Time returns the current time as the number of seconds since the epoch.


불러오는 중...
취소
저장