Skip to main content

UA_PubSubSecurityPolicy

Struct UA_PubSubSecurityPolicy 

Source
#[repr(C)]
pub struct UA_PubSubSecurityPolicy {
Show 18 fields pub policyContext: *mut c_void, pub logger: *const UA_Logger, pub policyUri: UA_String, pub newGroupContext: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, signingKey: *const UA_ByteString, encryptingKey: *const UA_ByteString, keyNonce: *const UA_ByteString, gContext: *mut *mut c_void) -> UA_StatusCode>, pub deleteGroupContext: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void)>, pub verify: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, message: *const UA_ByteString, signature: *const UA_ByteString) -> UA_StatusCode>, pub sign: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, message: *const UA_ByteString, signature: *mut UA_ByteString) -> UA_StatusCode>, pub getSignatureSize: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *const c_void) -> usize>, pub getSignatureKeyLength: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *const c_void) -> usize>, pub getEncryptionKeyLength: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *const c_void) -> usize>, pub encrypt: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, data: *mut UA_ByteString) -> UA_StatusCode>, pub decrypt: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, data: *mut UA_ByteString) -> UA_StatusCode>, pub setSecurityKeys: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, signingKey: *const UA_ByteString, encryptingKey: *const UA_ByteString, keyNonce: *const UA_ByteString) -> UA_StatusCode>, pub generateKey: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, secret: *const UA_ByteString, seed: *const UA_ByteString, out: *mut UA_ByteString) -> UA_StatusCode>, pub generateNonce: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, out: *mut UA_ByteString) -> UA_StatusCode>, pub nonceLength: usize, pub setMessageNonce: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, nonce: *const UA_ByteString) -> UA_StatusCode>, pub clear: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy)>,
}

Fields§

§policyContext: *mut c_void§logger: *const UA_Logger§policyUri: UA_String§newGroupContext: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, signingKey: *const UA_ByteString, encryptingKey: *const UA_ByteString, keyNonce: *const UA_ByteString, gContext: *mut *mut c_void) -> UA_StatusCode>§deleteGroupContext: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void)>§verify: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, message: *const UA_ByteString, signature: *const UA_ByteString) -> UA_StatusCode>§sign: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, message: *const UA_ByteString, signature: *mut UA_ByteString) -> UA_StatusCode>§getSignatureSize: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *const c_void) -> usize>§getSignatureKeyLength: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *const c_void) -> usize>§getEncryptionKeyLength: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *const c_void) -> usize>§encrypt: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, data: *mut UA_ByteString) -> UA_StatusCode>§decrypt: Option<unsafe extern "C" fn(policy: *const UA_PubSubSecurityPolicy, gContext: *mut c_void, data: *mut UA_ByteString) -> UA_StatusCode>§setSecurityKeys: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, signingKey: *const UA_ByteString, encryptingKey: *const UA_ByteString, keyNonce: *const UA_ByteString) -> UA_StatusCode>§generateKey: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, secret: *const UA_ByteString, seed: *const UA_ByteString, out: *mut UA_ByteString) -> UA_StatusCode>§generateNonce: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, out: *mut UA_ByteString) -> UA_StatusCode>§nonceLength: usize§setMessageNonce: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy, gContext: *mut c_void, nonce: *const UA_ByteString) -> UA_StatusCode>§clear: Option<unsafe extern "C" fn(policy: *mut UA_PubSubSecurityPolicy)>

Trait Implementations§

Source§

impl Debug for UA_PubSubSecurityPolicy

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UA_PubSubSecurityPolicy

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.