1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

librpc/idl: update keycredlink comments

Replace // comments with /* */ and document the KeyId and KeyHash
elements.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Gary Lockyer
2025-06-24 10:45:58 +12:00
committed by Douglas Bagnall
parent acd0fccfdd
commit f9533d5c77

View File

@ -56,19 +56,23 @@ interface keycredlink
} CUSTOM_KEY_INFO_Flags; } CUSTOM_KEY_INFO_Flags;
typedef [enum8bit, public] enum { typedef [enum8bit, public] enum {
Unspecified = 0x00, // No volume specified Unspecified = 0x00, /*
// defined as None in the docs but this * No volume specified
// causes issues in the python bindings * defined as None in the docs but this
OSV = 0x01, // Operating system volume * causes issues in the python bindings
FDV = 0x02, // Fixed data volume */
RDV = 0x03 // Removable data volume OSV = 0x01, /* Operating system volume */
FDV = 0x02, /* Fixed data volume */
RDV = 0x03 /* Removable data volume */
} CUSTOM_KEY_INFO_VolType; } CUSTOM_KEY_INFO_VolType;
typedef [enum8bit, public] enum { typedef [enum8bit, public] enum {
Unsupported = 0x00, // Notification is not supported Unsupported = 0x00, /*
// defined as None in the docs but this * Notification is not supported
// causes issues in the python bindings * defined as None in the docs but this
Supported = 0x01 // Notification is supported * causes issues in the python bindings
*/
Supported = 0x01 /* Notification is supported */
} CUSTOM_KEY_INFO_SupportsNotification; } CUSTOM_KEY_INFO_SupportsNotification;
typedef [enum8bit, public] enum { typedef [enum8bit, public] enum {
@ -135,8 +139,14 @@ interface keycredlink
flag(NDR_NOALIGN)] flag(NDR_NOALIGN)]
union { union {
[case(KeyID)] [case(KeyID)]
/*
* SHA-256 hash of the KeyMaterial
*/
uint8 keyId[32]; uint8 keyId[32];
[case(KeyHash)] [case(KeyHash)]
/*
* SHA-256 hash of all entries following this entry
*/
uint8 keyHash[32]; uint8 keyHash[32];
[case(KeyUsage)] [case(KeyUsage)]
KEYCREDENTIALLINK_ENTRY_KeyUsage keyUsage; KEYCREDENTIALLINK_ENTRY_KeyUsage keyUsage;