mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
x509: Reallow duplicate attributes in CSRs.
This commit is contained in:
parent
94087a6660
commit
17b873a345
@ -158,8 +158,8 @@ func TestCreateSM2CertificateRequest(t *testing.T) {
|
|||||||
|
|
||||||
func TestParseAliCertificateRequest(t *testing.T) {
|
func TestParseAliCertificateRequest(t *testing.T) {
|
||||||
err := parseAndCheckCsr([]byte(csrFromAli))
|
err := parseAndCheckCsr([]byte(csrFromAli))
|
||||||
if err == nil {
|
if err != nil {
|
||||||
t.Fatal("ParseCertificate should fail when parsing certificate with duplicate extensions")
|
t.Fatal("ParseCertificateRequest should succeed when parsing CSR with duplicate attributes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user