I ve written code that under certain circumstances might load X509_STORE
into SSL_CTX
, and since I don t know if it happens I free the store at the end of the program.
我请X509_STORE_up_ref
在将该仓库装入环境中以避免出现参考数字错误,因为SSL_C.2/63/_free
如果该仓库被装入特定环境,该仓库也将予以释放。
然而,我注意到,<代码>X509_STORE_up_ref是新的指挥系统,我的方案未能编纂旧系统。 我在此案中喜欢用开放式特别安全法版本的<代码>#ifdef来总结对这一职能的呼吁。
- What is the right way to check OpenSSL s version with an
#ifdef
? - Am I right to even be in the position I m in, or am I using the store the wrong way?