Updating code to OpenSSL 1.0.1g