Remove X509_REVOKED.sequence. This is filled in by X509_CRL_sort but never used. Change-Id: Ifacd56fcc090386faa6c11b73b44191a31221ef8 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/50545 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/x509/x509cset.c b/crypto/x509/x509cset.c index 7816d73..316f084 100644 --- a/crypto/x509/x509cset.c +++ b/crypto/x509/x509cset.c
@@ -116,16 +116,8 @@ int X509_CRL_sort(X509_CRL *c) { - size_t i; - X509_REVOKED *r; - /* - * sort the data so it will be written in serial number order - */ + /* Sort the data so it will be written in serial number order. */ sk_X509_REVOKED_sort(c->crl->revoked); - for (i = 0; i < sk_X509_REVOKED_num(c->crl->revoked); i++) { - r = sk_X509_REVOKED_value(c->crl->revoked, i); - r->sequence = i; - } c->crl->enc.modified = 1; return 1; }
diff --git a/include/openssl/x509.h b/include/openssl/x509.h index 0f117e2..0964780 100644 --- a/include/openssl/x509.h +++ b/include/openssl/x509.h
@@ -257,7 +257,6 @@ STACK_OF(GENERAL_NAME) *issuer; // Revocation reason int reason; - int sequence; // load sequence }; DEFINE_STACK_OF(X509_REVOKED)