Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
ecf13991
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ecf13991
编写于
3月 31, 2004
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New function X509_POLICY_NODE_print()
上级
ab23d5ff
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
3 deletion
+24
-3
crypto/x509v3/pcy_int.h
crypto/x509v3/pcy_int.h
+2
-1
crypto/x509v3/v3_cpols.c
crypto/x509v3/v3_cpols.c
+19
-1
crypto/x509v3/x509v3.h
crypto/x509v3/x509v3.h
+3
-1
未找到文件。
crypto/x509v3/pcy_int.h
浏览文件 @
ecf13991
...
...
@@ -188,7 +188,8 @@ struct X509_POLICY_TREE_st
/* Useful macros */
#define node_critical(node) ((node)->data->flags & POLICY_DATA_FLAG_CRITICAL)
#define node_data_critical(data) (data->flags & POLICY_DATA_FLAG_CRITICAL)
#define node_critical(node) node_data_critical(node->data)
/* Internal functions */
...
...
crypto/x509v3/v3_cpols.c
浏览文件 @
ecf13991
...
...
@@ -3,7 +3,7 @@
* project 1999.
*/
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2004
The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -63,6 +63,8 @@
#include <openssl/asn1t.h>
#include <openssl/x509v3.h>
#include "pcy_int.h"
/* Certificate policies extension support: this one is a bit complex... */
static
int
i2r_certpol
(
X509V3_EXT_METHOD
*
method
,
STACK_OF
(
POLICYINFO
)
*
pol
,
BIO
*
out
,
int
indent
);
...
...
@@ -420,3 +422,19 @@ static void print_notice(BIO *out, USERNOTICE *notice, int indent)
notice
->
exptext
->
data
);
}
void
X509_POLICY_NODE_print
(
BIO
*
out
,
X509_POLICY_NODE
*
node
,
int
indent
)
{
const
X509_POLICY_DATA
*
dat
=
node
->
data
;
BIO_printf
(
out
,
"%*sPolicy: "
,
indent
,
""
);
i2a_ASN1_OBJECT
(
out
,
dat
->
valid_policy
);
BIO_puts
(
out
,
"
\n
"
);
BIO_printf
(
out
,
"%*s%s
\n
"
,
indent
+
2
,
""
,
node_data_critical
(
dat
)
?
"Critical"
:
"Non Critical"
);
if
(
dat
->
qualifier_set
)
print_qualifiers
(
out
,
dat
->
qualifier_set
,
indent
+
2
);
else
BIO_printf
(
out
,
"%*sNo Qualifiers
\n
"
,
indent
+
2
,
""
);
}
crypto/x509v3/x509v3.h
浏览文件 @
ecf13991
...
...
@@ -3,7 +3,7 @@
* project 1999.
*/
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2004
The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -604,6 +604,8 @@ ASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc);
int
X509V3_NAME_from_section
(
X509_NAME
*
nm
,
STACK_OF
(
CONF_VALUE
)
*
dn_sk
,
unsigned
long
chtype
);
void
X509_POLICY_NODE_print
(
BIO
*
out
,
X509_POLICY_NODE
*
node
,
int
indent
);
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录