Hey all,~/openssl$ gcc -std=c99 test.c -o test.exe -l:libcrypto.a -pthread -ldl
test.c: In function ‘main’:
test.c:12:17: warning: implicit declaration of function ‘EVP_KDF_CTX_new_id’; did you mean ‘EVP_KDF_CTX_new’? [-Wimplicit-function-declaration]
if ((kctx = EVP_KDF_CTX_new_id(EVP_KDF_HKDF)) == NULL) {
^~~~~~~~~~~~~~~~~~
EVP_KDF_CTX_new
test.c:12:36: error: ‘EVP_KDF_HKDF’ undeclared (first use in this function); did you mean ‘EVP_PKEY_HKDF’?
if ((kctx = EVP_KDF_CTX_new_id(EVP_KDF_HKDF)) == NULL) {
^~~~~~~~~~~~
EVP_PKEY_HKDF
test.c:12:36: note: each undeclared identifier is reported only once for each function it appears in
test.c:13:9: warning: implicit declaration of function ‘error’; did you mean ‘perror’? [-Wimplicit-function-declaration]
error("EVP_KDF_CTX_new_id");
^~~~~
perror
test.c:15:9: warning: implicit declaration of function ‘EVP_KDF_ctrl’; did you mean ‘EVP_KDF_size’? [-Wimplicit-function-declaration]
if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_MD, EVP_sha256()) <= 0) {
^~~~~~~~~~~~
EVP_KDF_size
Is there any problem with the installation or am I missing something else?
Your help is much appreciated.
Thanks & Regards,
Bhuvan Sharma