Porting/Migrating code from OpenSSL 0.x/OpenSSL 1.0 to OpenSSL 1.1

Most of the code build atop OpenSSL 0.9.x or OpenSSL 1.0.x needs significant modification to be compiled against OpenSSL 1.1 due to API changes and structures being opaque. This document is an attempt to aid such transition.

Note: The examples below omits error checks. For production code, check return of the function and bail accordingly.


Direct struct member access to accessor functions

API semantical changes