Skip to content

Commit 20147ba

Browse files
committed
Move bit-fields to the end
1 parent 388582a commit 20147ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

wolfssl/internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,6 @@ struct CRL_Entry {
25632563
* as the marker because clang-tidy doesn't like taking the sizeof a
25642564
* pointer. */
25652565
byte crlNumber[CRL_MAX_NUM_SZ]; /* CRL number extension */
2566-
byte crlNumberSet; /* CRL number set indicator */
25672566
byte issuerHash[CRL_DIGEST_SIZE]; /* issuer hash */
25682567
/* byte crlHash[CRL_DIGEST_SIZE]; raw crl data hash */
25692568
/* restore the hash here if needed for optimized comparisons */
@@ -2591,9 +2590,10 @@ struct CRL_Entry {
25912590
byte* sigParams; /* buffer with signature parameters */
25922591
#endif
25932592
#if !defined(NO_SKID) && !defined(NO_ASN)
2594-
byte extAuthKeyIdSet;
25952593
byte extAuthKeyId[KEYID_SIZE];
2594+
byte extAuthKeyIdSet:1; /* Auth key identifier set indicator */
25962595
#endif
2596+
byte crlNumberSet:1; /* CRL number set indicator */
25972597
};
25982598

25992599

wolfssl/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3749,7 +3749,6 @@ typedef int (*CbCrlIO)(WOLFSSL_CRL* crl, const char* url, int urlSz);
37493749
#ifdef HAVE_CRL_UPDATE_CB
37503750
typedef struct CrlInfo {
37513751
byte crlNumber[CRL_MAX_NUM_SZ];
3752-
byte crlNumberSet;
37533752
byte *issuerHash;
37543753
word32 issuerHashLen;
37553754
byte *lastDate;
@@ -3758,6 +3757,7 @@ typedef struct CrlInfo {
37583757
byte *nextDate;
37593758
word32 nextDateMaxLen;
37603759
byte nextDateFormat;
3760+
byte crlNumberSet:1;
37613761
} CrlInfo;
37623762

37633763
typedef void (*CbUpdateCRL)(CrlInfo* old, CrlInfo* cnew);

wolfssl/wolfcrypt/asn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2870,7 +2870,6 @@ struct DecodedCRL {
28702870
#endif
28712871
byte* signature; /* pointer into raw source, not owned */
28722872
byte crlNumber[CRL_MAX_NUM_SZ]; /* CRL number extension */
2873-
byte crlNumberSet; /* CRL number set indicator */
28742873
byte issuerHash[SIGNER_DIGEST_SIZE]; /* issuer name hash */
28752874
byte crlHash[SIGNER_DIGEST_SIZE]; /* raw crl data hash */
28762875
byte lastDate[MAX_DATE_SIZE]; /* last date updated */
@@ -2886,9 +2885,10 @@ struct DecodedCRL {
28862885
int version; /* version of cert */
28872886
void* heap;
28882887
#ifndef NO_SKID
2889-
byte extAuthKeyIdSet;
28902888
byte extAuthKeyId[SIGNER_DIGEST_SIZE]; /* Authority Key ID */
2889+
byte extAuthKeyIdSet:1; /* Auth key identifier set indicator */
28912890
#endif
2891+
byte crlNumberSet:1; /* CRL number set indicator */
28922892
};
28932893

28942894
WOLFSSL_LOCAL void InitDecodedCRL(DecodedCRL* dcrl, void* heap);

0 commit comments

Comments
 (0)