Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
fa57417d
Commit
fa57417d
authored
Nov 05, 2009
by
Adam Langley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto/tls (part 6/5)
Results of running gofmt again. R=rsc CC=go-dev
http://go/go-review/1022006
parent
e4a6e422
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/pkg/crypto/tls/handshake_server.go
src/pkg/crypto/tls/handshake_server.go
+6
-3
src/pkg/crypto/tls/record_process.go
src/pkg/crypto/tls/record_process.go
+4
-1
No files found.
src/pkg/crypto/tls/handshake_server.go
View file @
fa57417d
...
...
@@ -22,8 +22,8 @@ import (
)
type
cipherSuite
struct
{
id
uint16
;
// The number of this suite on the wire.
hashLength
,
cipherKeyLength
int
;
id
uint16
;
// The number of this suite on the wire.
hashLength
,
cipherKeyLength
int
;
// TODO(agl): need a method to create the cipher and hash interfaces.
}
...
...
@@ -226,7 +226,10 @@ func (h *serverHandshake) error(e alertType) {
// to tell it about the error.
h
.
controlChan
<-
ConnectionState
{
false
,
""
,
e
};
close
(
h
.
controlChan
);
go
func
()
{
for
_
=
range
h
.
msgChan
{}
}();
go
func
()
{
for
_
=
range
h
.
msgChan
{
}
}();
h
.
writeChan
<-
alert
{
alertLevelError
,
e
};
}
}
src/pkg/crypto/tls/record_process.go
View file @
fa57417d
...
...
@@ -114,7 +114,10 @@ func (p *recordProcessor) loop(appDataChan chan<- []byte, requestChan <-chan int
p
.
wakeWaiters
();
go
drainRequestChannel
(
p
.
requestChan
,
p
.
connState
);
go
func
()
{
for
_
=
range
controlChan
{}
}();
go
func
()
{
for
_
=
range
controlChan
{
}
}();
close
(
handshakeChan
);
if
len
(
p
.
appData
)
>
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment