mirror of
https://github.com/emmansun/gmsm.git
synced 2025-07-02 01:57:40 +08:00
x509: rollback some change first #223
This commit is contained in:
parent
7c46d7b977
commit
6762238407
@ -2036,6 +2036,12 @@ func CreateRevocationList(rand io.Reader, template *x509.RevocationList, issuer
|
||||
}
|
||||
|
||||
var revokedCerts []pkix.RevokedCertificate
|
||||
revokedCerts = make([]pkix.RevokedCertificate, len(template.RevokedCertificates))
|
||||
for i, rc := range template.RevokedCertificates {
|
||||
rc.RevocationTime = rc.RevocationTime.UTC()
|
||||
revokedCerts[i] = rc
|
||||
}
|
||||
/*
|
||||
// Only process the deprecated RevokedCertificates field if it is populated
|
||||
// and the new RevokedCertificateEntries field is not populated.
|
||||
if len(template.RevokedCertificates) > 0 && len(template.RevokedCertificateEntries) == 0 {
|
||||
@ -2092,7 +2098,7 @@ func CreateRevocationList(rand io.Reader, template *x509.RevocationList, issuer
|
||||
revokedCerts[i] = rc
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
aki, err := asn1.Marshal(authKeyId{Id: issuer.SubjectKeyId})
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user