VirtualBox

Changeset 90995 in vbox


Ignore:
Timestamp:
Aug 30, 2021 12:56:43 PM (3 years ago)
Author:
vboxsync
Message:

Runtime/RTTpm: Add API to query the maximum supported locality of a given TPM handle, bugref:10075

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r90915 r90995  
    26532653# define RTTpmOpen                                      RT_MANGLER(RTTpmOpen)
    26542654# define RTTpmClose                                     RT_MANGLER(RTTpmClose)
     2655# define RTTpmGetLocalityMax                            RT_MANGLER(RTTpmGetLocalityMax)
    26552656# define RTTpmGetVersion                                RT_MANGLER(RTTpmGetVersion)
    26562657# define RTTpmReqCancel                                 RT_MANGLER(RTTpmReqCancel)
  • trunk/include/iprt/tpm.h

    r90915 r90995  
    106106
    107107/**
     108 * Returns the maximum locality supported by the given TPM.
     109 *
     110 * @returns Maximum locality supported (0-4).
     111 * @param   hTpm                Handle of the TPM.
     112 */
     113RTDECL(uint32_t) RTTpmGetLocalityMax(RTTPM hTpm);
     114
     115
     116/**
    108117 * Cancels a currently executed request for the given TPM handle.
    109118 *
  • trunk/src/VBox/Runtime/r3/linux/tpm-linux.cpp

    r90915 r90995  
    156156
    157157
     158RTDECL(uint32_t) RTTpmGetLocalityMax(RTTPM hTpm)
     159{
     160    RT_NOREF(hTpm);
     161    return 0; /* On Linux only TPM locality 0 is supported. */
     162}
     163
     164
    158165RTDECL(int) RTTpmReqCancel(RTTPM hTpm)
    159166{
Note: See TracChangeset for help on using the changeset viewer.

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