提交 8f284faa 编写于 作者: D Dr. Stephen Henson

V1 certificates that aren't self signed can't be accepted as CAs.

上级 f774accd
...@@ -441,8 +441,6 @@ static int check_ca(const X509 *x) ...@@ -441,8 +441,6 @@ static int check_ca(const X509 *x)
/* Older certificates could have Netscape-specific CA types */ /* Older certificates could have Netscape-specific CA types */
else if (x->ex_flags & EXFLAG_NSCERT else if (x->ex_flags & EXFLAG_NSCERT
&& x->ex_nscert & NS_ANY_CA) return 5; && x->ex_nscert & NS_ANY_CA) return 5;
/* 2 means "I don't know...", which is legal for V1 and V2 */
else if (x->ex_flags & EXFLAG_V1) return 2;
/* can this still be regarded a CA certificate? I doubt it */ /* can this still be regarded a CA certificate? I doubt it */
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册