extern struct VariableAuthentication3 [src]

Fields

version: u8 = 1
type: Type
metadata_size: u32
flags: Flags

Members

Source

pub const VariableAuthentication3 = extern struct { version: u8 = 1, type: Type, metadata_size: u32, flags: Flags, pub fn payloadConst(self: *const VariableAuthentication3) []const u8 { return @constCast(self).payload(); } pub fn payload(self: *VariableAuthentication3) []u8 { var ptr: [*]u8 = @ptrCast(self); return ptr[@sizeOf(VariableAuthentication3)..self.metadata_size]; } pub const Flags = packed struct(u32) { update_cert: bool = false, _pad: u31 = 0, }; pub const Type = enum(u8) { timestamp = 1, nonce = 2, _, }; }