Pike v8.1 release 6

Method SSL.ServerConnection()->handle_handshake()


Method handle_handshake

int(-1..1) handle_handshake(int type, Buffer input, Stdio.Buffer 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.