Update detect_handshake.c