pub struct CMSEncoder { /* private fields */ }
CMSEncoder
only.Expand description
Implementations§
Source§impl CMSEncoder
impl CMSEncoder
Source§impl CMSEncoder
impl CMSEncoder
pub unsafe fn set_signer_algorithm(&self, digest_algorithm: &CFString) -> i32
Sourcepub unsafe fn add_signers(&self, signer_or_array: &CFType) -> i32
pub unsafe fn add_signers(&self, signer_or_array: &CFType) -> i32
§Safety
signer_or_array
should be of the correct type.
Sourcepub unsafe fn copy_signers(&self, signers_out: NonNull<*const CFArray>) -> i32
pub unsafe fn copy_signers(&self, signers_out: NonNull<*const CFArray>) -> i32
§Safety
signers_out
must be a valid pointer.
Sourcepub unsafe fn add_recipients(&self, recipient_or_array: &CFType) -> i32
pub unsafe fn add_recipients(&self, recipient_or_array: &CFType) -> i32
§Safety
recipient_or_array
should be of the correct type.
Sourcepub unsafe fn copy_recipients(
&self,
recipients_out: NonNull<*const CFArray>,
) -> i32
pub unsafe fn copy_recipients( &self, recipients_out: NonNull<*const CFArray>, ) -> i32
§Safety
recipients_out
must be a valid pointer.
pub unsafe fn set_has_detached_content(&self, detached_content: bool) -> i32
Sourcepub unsafe fn has_detached_content(
&self,
detached_content_out: NonNull<u8>,
) -> i32
pub unsafe fn has_detached_content( &self, detached_content_out: NonNull<u8>, ) -> i32
§Safety
detached_content_out
must be a valid pointer.
Sourcepub unsafe fn set_encapsulated_content_type(
&self,
e_content_type: NonNull<SecAsn1Oid>,
) -> i32
👎DeprecatedAvailable on crate feature SecAsn1Types
only.
pub unsafe fn set_encapsulated_content_type( &self, e_content_type: NonNull<SecAsn1Oid>, ) -> i32
SecAsn1Types
only.§Safety
e_content_type
must be a valid pointer.
Sourcepub unsafe fn set_encapsulated_content_type_oid(
&self,
e_content_type_oid: &CFType,
) -> i32
pub unsafe fn set_encapsulated_content_type_oid( &self, e_content_type_oid: &CFType, ) -> i32
§Safety
e_content_type_oid
should be of the correct type.
Sourcepub unsafe fn copy_encapsulated_content_type(
&self,
e_content_type_out: NonNull<*const CFData>,
) -> i32
pub unsafe fn copy_encapsulated_content_type( &self, e_content_type_out: NonNull<*const CFData>, ) -> i32
§Safety
e_content_type_out
must be a valid pointer.
Sourcepub unsafe fn add_supporting_certs(&self, cert_or_array: &CFType) -> i32
pub unsafe fn add_supporting_certs(&self, cert_or_array: &CFType) -> i32
§Safety
cert_or_array
should be of the correct type.
Source§impl CMSEncoder
impl CMSEncoder
pub unsafe fn add_signed_attributes( &self, signed_attributes: CMSSignedAttributes, ) -> i32
Source§impl CMSEncoder
impl CMSEncoder
pub unsafe fn set_certificate_chain_mode( &self, chain_mode: CMSCertificateChainMode, ) -> i32
Sourcepub unsafe fn certificate_chain_mode(
&self,
chain_mode_out: NonNull<CMSCertificateChainMode>,
) -> i32
pub unsafe fn certificate_chain_mode( &self, chain_mode_out: NonNull<CMSCertificateChainMode>, ) -> i32
§Safety
chain_mode_out
must be a valid pointer.
Source§impl CMSEncoder
impl CMSEncoder
Sourcepub unsafe fn copy_signer_timestamp(
&self,
signer_index: usize,
timestamp: NonNull<CFAbsoluteTime>,
) -> i32
pub unsafe fn copy_signer_timestamp( &self, signer_index: usize, timestamp: NonNull<CFAbsoluteTime>, ) -> i32
§Safety
timestamp
must be a valid pointer.
Sourcepub unsafe fn copy_signer_timestamp_with_policy(
&self,
time_stamp_policy: Option<&CFType>,
signer_index: usize,
timestamp: NonNull<CFAbsoluteTime>,
) -> i32
pub unsafe fn copy_signer_timestamp_with_policy( &self, time_stamp_policy: Option<&CFType>, signer_index: usize, timestamp: NonNull<CFAbsoluteTime>, ) -> i32
§Safety
time_stamp_policy
should be of the correct type.timestamp
must be a valid pointer.
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Available on crate feature SecCustomTransform
only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
SecCustomTransform
only.Attempt to downcast the type to that of type T
.
This is the reference-variant. Use CFRetained::downcast
if you
want to convert a retained type. See also ConcreteType
for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
Available on crate feature SecCustomTransform
only.
pub fn retain_count(&self) -> usize
SecCustomTransform
only.Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumber
s, small CFString
s etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX
in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CMSEncoder
impl AsRef<AnyObject> for CMSEncoder
Source§impl AsRef<CFType> for CMSEncoder
impl AsRef<CFType> for CMSEncoder
Source§impl AsRef<CMSEncoder> for CMSEncoder
impl AsRef<CMSEncoder> for CMSEncoder
Source§impl Borrow<AnyObject> for CMSEncoder
impl Borrow<AnyObject> for CMSEncoder
Source§impl Borrow<CFType> for CMSEncoder
impl Borrow<CFType> for CMSEncoder
Source§impl ConcreteType for CMSEncoder
impl ConcreteType for CMSEncoder
Source§impl Debug for CMSEncoder
impl Debug for CMSEncoder
Source§impl Deref for CMSEncoder
impl Deref for CMSEncoder
Source§impl Hash for CMSEncoder
impl Hash for CMSEncoder
Source§impl Message for CMSEncoder
impl Message for CMSEncoder
Source§impl PartialEq for CMSEncoder
impl PartialEq for CMSEncoder
Source§impl RefEncode for CMSEncoder
impl RefEncode for CMSEncoder
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for CMSEncoder
impl Type for CMSEncoder
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
core-foundation
crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
core-foundation
crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
core-foundation
crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
core-foundation
crate. Read more