openssl-什么是stack_of?
static STACK_OF(CMS_RevocationInfoChoice)
**cms_get0_revocation_choices(CMS_ContentInfo *cms)
{
switch (OBJ_obj2nid(cms->contentType)) {
case NID_pkcs7_signed:
return &cms->d.signedData->crls;
”
问题说是,
#define STACK_OF(type) struct stack_st_##type
但是当我搜索Regex ###时,我搜索OpenSSL代码时定义\ s*stack_of
我找不到任何条目。
什么是 stack_of
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“堆栈”是OpenSSL处理对象的集合/数组的方式。它们是宏观访问的结构,可提供在这些对象上操作的能力。
macro is defined as:
For the
X509
type,per openssl wiki :
"Stacks" are the way OpenSSL handles a set/array of objects. They are macro-accessed structures that provide the ability to operate on those objects.
The
STACK_OF()
macro is defined as:For the
X509
type, the structure is defined as:Per the OpenSSL Wiki: