OpenSSL deprecated functions
Created by: gonium
Compilation fails using Mac OS 10.9, gcc 4.8.2, openssl 0.9.8y:
/Users/md/Projects/libklio/libklio/msg/msg-store.cpp: In member function 'std::string klio::MSGStore::digest_message(const string&, const string&)': /Users/md/Projects/libklio/libklio/msg/msg-store.cpp:567:5: warning: 'void HMAC_Init(HMAC_CTX*, const void*, int, const EVP_MD*)' is deprecated (declared at /usr/include/openssl/hmac.h:95) [-Wdeprecated-declarations]
The OpenSSL documentation states:
"HMAC_Init() initializes a HMAC_CTX structure to use the hash function evp_md and the key key which is key_len bytes long. It is deprecated and only included for backward compatibility with OpenSSL 0.9.6b."
There are other warnings with the same root cause. It can be circumvented by disregarding these warnings:
set(CMAKE_CXX_FLAGS "-Wall -Wno-deprecated-declarations")
in line 77
of CMakeFile.txt