VirtualBox

Changeset 106998 in vbox for trunk/include


Ignore:
Timestamp:
Nov 14, 2024 1:14:23 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165934
Message:

SUPHardNt: Fixed two more bugs from r165898, first more mixing of TAFs and X.509 certs, second that SUPR3HARDNTPATCH should be a struct not a union. jiraref:VBP-1442

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r106968 r106998  
    27732773    const unsigned char    *pch;
    27742774    /** Number of bytes. */
    2775     unsigned                cb;
     2775    uint32_t                cb;
     2776    /** Value in RTCRCERTCTX_F_ENC_MASK: RTCRCERTCTX_F_ENC_TAF_DER,
     2777     *  RTCRCERTCTX_F_ENC_X509_DER. */
     2778    uint32_t                fEnc;
    27762779} SUPTAENTRY;
    27772780/** Pointer to a trust anchor table entry. */
    27782781typedef SUPTAENTRY const *PCSUPTAENTRY;
    27792782
    2780 /** Macro for simplifying generating the trust anchor tables. */
    2781 #define SUPTAENTRY_GEN(a_abTA)      { &a_abTA[0], sizeof(a_abTA) }
     2783/** Macro for a TAF entry. */
     2784#define SUPTAENTRY_TAF(a_abTA)      { &a_abTA[0], sizeof(a_abTA), RTCRCERTCTX_F_ENC_TAF_DER }
     2785
     2786/** Macro for a X.509 certificate entry. */
     2787#define SUPTAENTRY_CER(a_abCertTA)  { &a_abCertTA[0], sizeof(a_abCertTA), RTCRCERTCTX_F_ENC_X509_DER }
    27822788
    27832789/** All certificates we know. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette