Skip to content

Commit

Permalink
Upstream merge 2024 03 18 (#1501)
Browse files Browse the repository at this point in the history
Merging from Upstream considering commits from
google/boringssl@3e28180
(Nov 17, 2023) to
google/boringssl@a4851dd
(Nov 20, 2023).
  • Loading branch information
nebeid authored Apr 2, 2024
2 parents a1f73bc + 1ae65ac commit c932cf4
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 488 deletions.
26 changes: 16 additions & 10 deletions crypto/x509/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ struct x509_revoked_st {
ASN1_INTEGER *serialNumber;
ASN1_TIME *revocationDate;
STACK_OF(X509_EXTENSION) /* optional */ *extensions;
// Set up if indirect CRL
STACK_OF(GENERAL_NAME) *issuer;
// Revocation reason
int reason;
} /* X509_REVOKED */;
Expand All @@ -206,6 +204,22 @@ typedef struct {
// an |X509_NAME|.
DECLARE_ASN1_FUNCTIONS(X509_CRL_INFO)

// Values in idp_flags field
// IDP present
#define IDP_PRESENT 0x1
// IDP values inconsistent
#define IDP_INVALID 0x2
// onlyuser true
#define IDP_ONLYUSER 0x4
// onlyCA true
#define IDP_ONLYCA 0x8
// onlyattr true
#define IDP_ONLYATTR 0x10
// indirectCRL true
#define IDP_INDIRECT 0x20
// onlysomereasons present
#define IDP_REASONS 0x40

struct X509_crl_st {
// actual signature
X509_CRL_INFO *crl;
Expand All @@ -218,12 +232,7 @@ struct X509_crl_st {
ISSUING_DIST_POINT *idp;
// Convenient breakdown of IDP
int idp_flags;
int idp_reasons;
// CRL and base CRL numbers for delta processing
ASN1_INTEGER *crl_number;
ASN1_INTEGER *base_crl_number;
unsigned char crl_hash[SHA256_DIGEST_LENGTH];
STACK_OF(GENERAL_NAMES) *issuers;
} /* X509_CRL */;

struct X509_VERIFY_PARAM_st {
Expand Down Expand Up @@ -353,9 +362,6 @@ struct x509_store_ctx_st {
X509_CRL *current_crl; // current CRL

int current_crl_score; // score of current CRL
unsigned int current_reasons; // Reason mask

X509_STORE_CTX *parent; // For CRL path validation: parent context

CRYPTO_EX_DATA ex_data;
} /* X509_STORE_CTX */;
Expand Down
Loading

0 comments on commit c932cf4

Please sign in to comment.