Repair this code
Report the first handshake message that arrives out of order.
today's brief
June 2014. Masashi Kikuchi finds a hole in OpenSSL's handshake that lets a stranger in the middle hand both ends a key he picked out himself. Every message looks fine on its own. The code had shipped since the very first release in 1998. Sixteen years.
See it in action
first_illegal({1,2,3}, 3)-1first_illegal({2,3}, 2)0first_illegal({1,3}, 2)1
Your checklist
Constraints
- Expected file
handshake.c- Allowed functions
- None. Write every helper yourself.
