Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1911)

Delta Between Two Patch Sets: src/pkg/crypto/tls/conn.go

Issue 91840044: code review 91840044: all: spelling tweaks, A-G (Closed)
Left Patch Set: Created 10 years, 11 months ago
Right Patch Set: diff -r 46ac9e6796a3 https://code.google.com/p/go Created 10 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/crypto/rsa/pss.go ('k') | src/pkg/database/sql/sql.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // TLS low level connection and record layer 5 // TLS low level connection and record layer
6 6
7 package tls 7 package tls
8 8
9 import ( 9 import (
10 "bytes" 10 "bytes"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 func (c *Conn) SetDeadline(t time.Time) error { 75 func (c *Conn) SetDeadline(t time.Time) error {
76 return c.conn.SetDeadline(t) 76 return c.conn.SetDeadline(t)
77 } 77 }
78 78
79 // SetReadDeadline sets the read deadline on the underlying connection. 79 // SetReadDeadline sets the read deadline on the underlying connection.
80 // A zero value for t means Read will not time out. 80 // A zero value for t means Read will not time out.
81 func (c *Conn) SetReadDeadline(t time.Time) error { 81 func (c *Conn) SetReadDeadline(t time.Time) error {
82 return c.conn.SetReadDeadline(t) 82 return c.conn.SetReadDeadline(t)
83 } 83 }
84 84
85 // SetWriteDeadline sets the write deadline on the underlying conneciton. 85 // SetWriteDeadline sets the write deadline on the underlying connection.
86 // A zero value for t means Write will not time out. 86 // A zero value for t means Write will not time out.
87 // After a Write has timed out, the TLS state is corrupt and all future writes w ill return the same error. 87 // After a Write has timed out, the TLS state is corrupt and all future writes w ill return the same error.
88 func (c *Conn) SetWriteDeadline(t time.Time) error { 88 func (c *Conn) SetWriteDeadline(t time.Time) error {
89 return c.conn.SetWriteDeadline(t) 89 return c.conn.SetWriteDeadline(t)
90 } 90 }
91 91
92 // A halfConn represents one direction of the record layer 92 // A halfConn represents one direction of the record layer
93 // connection, either sending or receiving. 93 // connection, either sending or receiving.
94 type halfConn struct { 94 type halfConn struct {
95 sync.Mutex 95 sync.Mutex
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 c.handshakeMutex.Lock() 1015 c.handshakeMutex.Lock()
1016 defer c.handshakeMutex.Unlock() 1016 defer c.handshakeMutex.Unlock()
1017 if !c.isClient { 1017 if !c.isClient {
1018 return errors.New("tls: VerifyHostname called on TLS server conn ection") 1018 return errors.New("tls: VerifyHostname called on TLS server conn ection")
1019 } 1019 }
1020 if !c.handshakeComplete { 1020 if !c.handshakeComplete {
1021 return errors.New("tls: handshake has not yet been performed") 1021 return errors.New("tls: handshake has not yet been performed")
1022 } 1022 }
1023 return c.peerCertificates[0].VerifyHostname(host) 1023 return c.peerCertificates[0].VerifyHostname(host)
1024 } 1024 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b