Pike v8.1 release 6

Method SSL.ClientConnection()->handle_handshake()


Method handle_handshake

int(-1..1) handle_handshake(int type, Buffer input, Stdio.Buffer raw)

Description

Do handshake processing.

Parameter type

One of HANDSHAKE_*.

Parameter input

The contents of the packet.

Parameter raw

The raw packet received (needed for supporting SSLv2 hello messages).

Returns

This function returns:

0

If handshaking is in progress.

1

If handshaking has completed.

-1

If a fatal error occurred.

It uses the send_packet() function to transmit packets.