try and switch the order like curl's example threaded-ssl.c does