Replaced a call to sprintf() with sm_snprintf().
Rename ssl_init() to ssl_create_context().
Sort include statements properly.
Implemeted thread-safness protocol for static OpenSSL.