|
|
@ -499,15 +499,12 @@ select_loop:
|
|
|
|
if (cr.client && s == SSL3_MT_CLIENT_HELLO) || (!cr.client && s == SSL3_MT_SERVER_HELLO) {
|
|
|
|
if (cr.client && s == SSL3_MT_CLIENT_HELLO) || (!cr.client && s == SSL3_MT_SERVER_HELLO) {
|
|
|
|
// rewrite := false
|
|
|
|
// rewrite := false
|
|
|
|
// rewrite_buf := []byte{}
|
|
|
|
// rewrite_buf := []byte{}
|
|
|
|
/* SRC := ""
|
|
|
|
//SRC := ""
|
|
|
|
|
|
|
|
|
|
|
|
if s == SSL3_MT_CLIENT_HELLO {
|
|
|
|
if s != SSL3_MT_CLIENT_HELLO {
|
|
|
|
SRC = "CLIENT"
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
server_expected = []uint{SSL3_MT_CERTIFICATE, SSL3_MT_HELLO_REQUEST}
|
|
|
|
server_expected = []uint{SSL3_MT_CERTIFICATE, SSL3_MT_HELLO_REQUEST}
|
|
|
|
SRC = "SERVER"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
hello_offset := 4
|
|
|
|
hello_offset := 4
|
|
|
|
// 2 byte protocol version
|
|
|
|
// 2 byte protocol version
|
|
|
|
//fmt.Println(SRC, "HELLO VERSION = ", handshakeMsg[hello_offset:hello_offset+2])
|
|
|
|
//fmt.Println(SRC, "HELLO VERSION = ", handshakeMsg[hello_offset:hello_offset+2])
|
|
|
@ -731,4 +728,3 @@ select_loop:
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|