Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/130.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 在openssl版本1.0.2中使用(X509)的堆栈_时发生编译错误_C++_Openssl - Fatal编程技术网

C++ 在openssl版本1.0.2中使用(X509)的堆栈_时发生编译错误

C++ 在openssl版本1.0.2中使用(X509)的堆栈_时发生编译错误,c++,openssl,C++,Openssl,我在.h文件中将一个方法声明为 checktrustedCA(stack_st *) 在.cpp文件中,其定义为 checktrustedCA(STACK_OF(X509) *certificate) { ...he } 当我编译程序时,它在版本0.9.8中编译得很好,但在版本1.0.2中给出了错误-它说在相应的.h中没有出现带有签名checktrustedCAstack_st_x509*的重载函数 然而,在版本0.9.8中,它没有给出任何错误 在新的openssl函数中,是否有与此相关的任

我在.h文件中将一个方法声明为

checktrustedCA(stack_st *)
在.cpp文件中,其定义为

checktrustedCA(STACK_OF(X509) *certificate)
{
...he
}
当我编译程序时,它在版本0.9.8中编译得很好,但在版本1.0.2中给出了错误-它说在相应的.h中没有出现带有签名checktrustedCAstack_st_x509*的重载函数 然而,在版本0.9.8中,它没有给出任何错误


在新的openssl函数中,是否有与此相关的任何更改?

为什么要以不同的方式声明它们?我不知道。这是一个维护代码,我们必须更新它才能使用openssl 1.0.2