Socialist Millionaire Protocol implementation in C