srs-librtmp: implements handshake.