OpenSSL manual
This book is a short and detailed manual on OpenSSL with the focus on the API and programming interfaces with many examples in C / C++.
Author: Devendra Naga ([email protected])
Introduction
This is a short and detailed manual that describe on how to use openssl API programmatically in C / C++.
initialization
OpenSSL library needs to be initialised first before any APIs can be used.
To initialise the OpenSSL library, for cryptographic functions, do the following.
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
OPENSSL_config(NULL);
RAND_poll();
To include the openssl libraries, compile with -lssl and -lcrypto.
for example,
g++ aes.c -lcrypto -lssl