Skip to content

Commit

Permalink
Merge pull request paultag#5 from jwilk/spelling
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
paultag authored Jul 10, 2016
2 parents f89dfd2 + eb22d5b commit e6febc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var TLSHeaderLength = 5
* go ahead and give us the SNI Name they want. */
func GetHostname(data []byte) (string, error) {
if len(data) == 0 || data[0] != 0x16 {
return "", fmt.Errorf("Doens't look like a TLS Client Hello")
return "", fmt.Errorf("Doesn't look like a TLS Client Hello")
}

extensions, err := GetExtensionBlock(data)
Expand Down Expand Up @@ -73,12 +73,12 @@ func GetSNIBlock(data []byte) ([]byte, error) {
)
}

/* Given an TLS Extensions data block, go ahead and find the SN block */
/* Given a TLS Extensions data block, go ahead and find the SN block */
func GetSNBlock(data []byte) ([]byte, error) {
index := 0

if len(data) < 2 {
return []byte{}, fmt.Errorf("Not enough bytes to be a SN block")
return []byte{}, fmt.Errorf("Not enough bytes to be an SN block")
}

extensionLength := int((data[index] << 8) + data[index+1])
Expand Down

0 comments on commit e6febc7

Please sign in to comment.