Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL deprecated functions #21

Open
gonium opened this issue Mar 21, 2014 · 0 comments
Open

OpenSSL deprecated functions #21

gonium opened this issue Mar 21, 2014 · 0 comments

Comments

@gonium
Copy link
Member

gonium commented Mar 21, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant