Home | History | Annotate | Download | only in tls

Lines Matching defs:tls

5 // Package tls partially implements TLS 1.2, as specified in RFC 5246.
6 package tls
8 // BUG(agl): The crypto/tls package only implements some countermeasures
10 // variants. See http://www.isg.rhul.ac.uk/tls/TLStiming.pdf and
27 // Server returns a new TLS server side connection
35 // Client returns a new TLS client side connection
43 // A listener implements a network listener (net.Listener) for TLS connections.
49 // Accept waits for and returns the next incoming TLS connection.
70 // Listen creates a TLS listener accepting connections on the
76 return nil, errors.New("tls: neither Certificates nor GetCertificate set in Config")
87 func (timeoutError) Error() string { return "tls: DialWithDialer timed out" }
92 // then initiates a TLS handshake, returning the resulting TLS connection. Any
93 // timeout or deadline given in the dialer apply to connection and TLS
100 // whole process: TCP connection and TLS handshake. This means that we
164 // and then initiates a TLS handshake, returning the resulting
165 // TLS connection.
213 return fail(errors.New("tls: failed to find any PEM data in certificate input"))
216 return fail(errors.New("tls: failed to find certificate PEM data in certificate input, but did find a private key; PEM inputs may have been switched"))
218 return fail(fmt.Errorf("tls: failed to find \"CERTIFICATE\" PEM block in certificate input after skipping PEM blocks of the following types: %v", skippedBlockTypes))
227 return fail(errors.New("tls: failed to find any PEM data in key input"))
230 return fail(errors.New("tls: found a certificate rather than a key in the PEM for the private key"))
232 return fail(fmt.Errorf("tls: failed to find PEM block with type ending in \"PRIVATE KEY\" in key input after skipping PEM blocks of the following types: %v", skippedBlockTypes))
246 // We don't need to parse the public key for TLS, but we so do anyway
257 return fail(errors.New("tls: private key type does not match public key type"))
260 return fail(errors.New("tls: private key does not match public key"))
265 return fail(errors.New("tls: private key type does not match public key type"))
268 return fail(errors.New("tls: private key does not match public key"))
271 return fail(errors.New("tls: unknown public key algorithm"))
289 return nil, errors.New("tls: found unknown private key type in PKCS#8 wrapping")
296 return nil, errors.New("tls: failed to parse private key")