解决“storage size of 'ctx' isn't known”问题

 

 

  在编译IPMITool时,有时会碰到"storage size of ‘ctx’ isn’t known"问题,出现该问题的原因是,openssl版本不同,其函数接口发生了变化,老接口"EVP_CIPHER_CTX ctx;"在新opensll版本上不能识别,需要改成新的语法格式,步骤如下:
//老接口

EVP_CIPHER_CTX ctx;

    1

//新接口

EVP_CIPHER_CTX *ctx;
ctx=EVP_CIPHER_CTX_new();
...
EVP_CIPHER_CTX_free(ctx);
 
原文链接:https://blog.csdn.net/sanqima/article/details/98478975

posted on 2021-04-03 00:45  lydstory  阅读(1505)  评论(0)    收藏  举报

导航