Method SSL.Connection()->handle_handshake()
- Method handle_handshake
int(-1..1)
handle_handshake(int
type
,string(8bit)
data
,string(8bit)
raw
)- Description
Do handshake processing. Type is one of HANDSHAKE_*, data is the contents of the packet, and raw is the raw packet received (needed for supporting SSLv2 hello messages).
This function returns 0 if handshake is in progress, 1 if handshake is finished, and -1 if a fatal error occurred. It uses the send_packet() function to transmit packets.