windows::Win32::Security::Cryptography::Certificates

Struct IEnroll2

pub struct IEnroll2(/* private fields */);

Implementations§

§

impl IEnroll2

pub unsafe fn InstallPKCS7Blob( &self, pblobpkcs7: *mut CRYPT_INTEGER_BLOB, ) -> Result<()>

pub unsafe fn Reset(&self) -> Result<()>

pub unsafe fn GetSupportedKeySpec(&self, pdwkeyspec: *mut i32) -> Result<()>

pub unsafe fn GetKeyLen( &self, fmin: bool, fexchange: bool, pdwkeysize: *mut i32, ) -> Result<()>

pub unsafe fn EnumAlgs( &self, dwindex: i32, algclass: i32, pdwalgid: *mut i32, ) -> Result<()>

pub unsafe fn GetAlgNameWStr(&self, algid: i32, ppwsz: *mut PWSTR) -> Result<()>

pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew( &self, freusehardwarekeyifunabletogennew: bool, ) -> Result<()>

pub unsafe fn ReuseHardwareKeyIfUnableToGenNew( &self, freusehardwarekeyifunabletogennew: *mut BOOL, ) -> Result<()>

pub unsafe fn SetHashAlgID(&self, hashalgid: i32) -> Result<()>

pub unsafe fn HashAlgID(&self, hashalgid: *mut i32) -> Result<()>

pub unsafe fn SetHStoreMy(&self, hstore: HCERTSTORE) -> Result<()>

pub unsafe fn SetHStoreCA(&self, hstore: HCERTSTORE) -> Result<()>

pub unsafe fn SetHStoreROOT(&self, hstore: HCERTSTORE) -> Result<()>

pub unsafe fn SetHStoreRequest(&self, hstore: HCERTSTORE) -> Result<()>

pub unsafe fn SetLimitExchangeKeyToEncipherment( &self, flimitexchangekeytoencipherment: bool, ) -> Result<()>

pub unsafe fn LimitExchangeKeyToEncipherment( &self, flimitexchangekeytoencipherment: *mut BOOL, ) -> Result<()>

pub unsafe fn SetEnableSMIMECapabilities( &self, fenablesmimecapabilities: bool, ) -> Result<()>

pub unsafe fn EnableSMIMECapabilities( &self, fenablesmimecapabilities: *mut BOOL, ) -> Result<()>

Methods from Deref<Target = IEnroll>§

pub unsafe fn createFilePKCS10WStr<P0, P1, P2>( &self, dnname: P0, usage: P1, wszpkcs10filename: P2, ) -> Result<()>
where P0: Param<PCWSTR>, P1: Param<PCWSTR>, P2: Param<PCWSTR>,

pub unsafe fn acceptFilePKCS7WStr<P0>(&self, wszpkcs7filename: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn createPKCS10WStr<P0, P1>( &self, dnname: P0, usage: P1, ppkcs10blob: *mut CRYPT_INTEGER_BLOB, ) -> Result<()>
where P0: Param<PCWSTR>, P1: Param<PCWSTR>,

pub unsafe fn acceptPKCS7Blob( &self, pblobpkcs7: *mut CRYPT_INTEGER_BLOB, ) -> Result<()>

pub unsafe fn getCertContextFromPKCS7( &self, pblobpkcs7: *mut CRYPT_INTEGER_BLOB, ) -> *mut CERT_CONTEXT

pub unsafe fn getMyStore(&self) -> HCERTSTORE

pub unsafe fn getCAStore(&self) -> HCERTSTORE

pub unsafe fn getROOTHStore(&self) -> HCERTSTORE

pub unsafe fn enumProvidersWStr( &self, dwindex: i32, dwflags: i32, pbstrprovname: *mut PWSTR, ) -> Result<()>

pub unsafe fn enumContainersWStr( &self, dwindex: i32, pbstr: *mut PWSTR, ) -> Result<()>

pub unsafe fn freeRequestInfoBlob( &self, pkcs7orpkcs10: CRYPT_INTEGER_BLOB, ) -> Result<()>

pub unsafe fn MyStoreNameWStr(&self, szwname: *mut PWSTR) -> Result<()>

pub unsafe fn SetMyStoreNameWStr<P0>(&self, szwname: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn MyStoreTypeWStr(&self, szwtype: *mut PWSTR) -> Result<()>

pub unsafe fn SetMyStoreTypeWStr<P0>(&self, szwtype: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn MyStoreFlags(&self, pdwflags: *mut i32) -> Result<()>

pub unsafe fn SetMyStoreFlags(&self, dwflags: i32) -> Result<()>

pub unsafe fn CAStoreNameWStr(&self, szwname: *mut PWSTR) -> Result<()>

pub unsafe fn SetCAStoreNameWStr<P0>(&self, szwname: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn CAStoreTypeWStr(&self, szwtype: *mut PWSTR) -> Result<()>

pub unsafe fn SetCAStoreTypeWStr<P0>(&self, szwtype: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn CAStoreFlags(&self, pdwflags: *mut i32) -> Result<()>

pub unsafe fn SetCAStoreFlags(&self, dwflags: i32) -> Result<()>

pub unsafe fn RootStoreNameWStr(&self, szwname: *mut PWSTR) -> Result<()>

pub unsafe fn SetRootStoreNameWStr<P0>(&self, szwname: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn RootStoreTypeWStr(&self, szwtype: *mut PWSTR) -> Result<()>

pub unsafe fn SetRootStoreTypeWStr<P0>(&self, szwtype: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn RootStoreFlags(&self, pdwflags: *mut i32) -> Result<()>

pub unsafe fn SetRootStoreFlags(&self, dwflags: i32) -> Result<()>

pub unsafe fn RequestStoreNameWStr(&self, szwname: *mut PWSTR) -> Result<()>

pub unsafe fn SetRequestStoreNameWStr<P0>(&self, szwname: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn RequestStoreTypeWStr(&self, szwtype: *mut PWSTR) -> Result<()>

pub unsafe fn SetRequestStoreTypeWStr<P0>(&self, szwtype: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn RequestStoreFlags(&self, pdwflags: *mut i32) -> Result<()>

pub unsafe fn SetRequestStoreFlags(&self, dwflags: i32) -> Result<()>

pub unsafe fn ContainerNameWStr(&self, szwcontainer: *mut PWSTR) -> Result<()>

pub unsafe fn SetContainerNameWStr<P0>(&self, szwcontainer: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn ProviderNameWStr(&self, szwprovider: *mut PWSTR) -> Result<()>

pub unsafe fn SetProviderNameWStr<P0>(&self, szwprovider: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn ProviderType(&self, pdwtype: *mut i32) -> Result<()>

pub unsafe fn SetProviderType(&self, dwtype: i32) -> Result<()>

pub unsafe fn KeySpec(&self, pdw: *mut i32) -> Result<()>

pub unsafe fn SetKeySpec(&self, dw: i32) -> Result<()>

pub unsafe fn ProviderFlags(&self, pdwflags: *mut i32) -> Result<()>

pub unsafe fn SetProviderFlags(&self, dwflags: i32) -> Result<()>

pub unsafe fn UseExistingKeySet( &self, fuseexistingkeys: *mut BOOL, ) -> Result<()>

pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: bool) -> Result<()>

pub unsafe fn GenKeyFlags(&self, pdwflags: *mut i32) -> Result<()>

pub unsafe fn SetGenKeyFlags(&self, dwflags: i32) -> Result<()>

pub unsafe fn DeleteRequestCert(&self, fdelete: *mut BOOL) -> Result<()>

pub unsafe fn SetDeleteRequestCert(&self, fdelete: bool) -> Result<()>

pub unsafe fn WriteCertToUserDS(&self, fbool: *mut BOOL) -> Result<()>

pub unsafe fn SetWriteCertToUserDS(&self, fbool: bool) -> Result<()>

pub unsafe fn EnableT61DNEncoding(&self, fbool: *mut BOOL) -> Result<()>

pub unsafe fn SetEnableT61DNEncoding(&self, fbool: bool) -> Result<()>

pub unsafe fn WriteCertToCSP(&self, fbool: *mut BOOL) -> Result<()>

pub unsafe fn SetWriteCertToCSP(&self, fbool: bool) -> Result<()>

pub unsafe fn SPCFileNameWStr(&self, szw: *mut PWSTR) -> Result<()>

pub unsafe fn SetSPCFileNameWStr<P0>(&self, szw: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn PVKFileNameWStr(&self, szw: *mut PWSTR) -> Result<()>

pub unsafe fn SetPVKFileNameWStr<P0>(&self, szw: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn HashAlgorithmWStr(&self, szw: *mut PWSTR) -> Result<()>

pub unsafe fn SetHashAlgorithmWStr<P0>(&self, szw: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn RenewalCertificate( &self, ppcertcontext: *mut *mut CERT_CONTEXT, ) -> Result<()>

pub unsafe fn SetRenewalCertificate( &self, pcertcontext: *const CERT_CONTEXT, ) -> Result<()>

pub unsafe fn AddCertTypeToRequestWStr<P0>(&self, szw: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn AddNameValuePairToSignatureWStr<P0, P1>( &self, name: P0, value: P1, ) -> Result<()>
where P0: Param<PCWSTR>, P1: Param<PCWSTR>,

pub unsafe fn AddExtensionsToRequest( &self, pcertextensions: *mut CERT_EXTENSIONS, ) -> Result<()>

pub unsafe fn AddAuthenticatedAttributesToPKCS7Request( &self, pattributes: *mut CRYPT_ATTRIBUTES, ) -> Result<()>

pub unsafe fn CreatePKCS7RequestFromRequest( &self, prequest: *mut CRYPT_INTEGER_BLOB, psigningcertcontext: *const CERT_CONTEXT, ppkcs7blob: *mut CRYPT_INTEGER_BLOB, ) -> Result<()>

Trait Implementations§

§

impl CanInto<IEnroll> for IEnroll2

§

const QUERY: bool = false

§

impl CanInto<IEnroll2> for IEnroll4

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for IEnroll2

§

const QUERY: bool = false

§

impl Clone for IEnroll2

§

fn clone(&self) -> IEnroll2

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for IEnroll2

§

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

Formats the value using the given formatter. Read more
§

impl Deref for IEnroll2

§

type Target = IEnroll

The resulting type after dereferencing.
§

fn deref(&self) -> &Self::Target

Dereferences the value.
§

impl From<&IEnroll2> for &IEnroll

§

fn from(value: &IEnroll2) -> Self

Converts to this type from the input type.
§

impl From<&IEnroll2> for &IUnknown

§

fn from(value: &IEnroll2) -> Self

Converts to this type from the input type.
§

impl From<&IEnroll4> for &IEnroll2

§

fn from(value: &IEnroll4) -> Self

Converts to this type from the input type.
§

impl From<IEnroll2> for IEnroll

§

fn from(value: IEnroll2) -> Self

Converts to this type from the input type.
§

impl From<IEnroll2> for IUnknown

§

fn from(value: IEnroll2) -> Self

Converts to this type from the input type.
§

impl From<IEnroll4> for IEnroll2

§

fn from(value: IEnroll4) -> Self

Converts to this type from the input type.
§

impl Interface for IEnroll2

§

const IID: GUID = _

The GUID associated with the interface.
§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. Read more
§

fn is_object<T>(&self) -> bool
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

Returns true if the given COM interface refers to an implementation of T. Read more
§

fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. &MyApp_Impl, not the inner &MyApp object. Read more
§

fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. MyApp_Impl, not the inner MyApp object. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

fn to_ref(&self) -> InterfaceRef<'_, Self>

Creates an InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically, and eliminates the need for dynamic reference count adjustments (AddRef/Release).
§

impl PartialEq for IEnroll2

§

fn eq(&self, other: &IEnroll2) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for IEnroll2

§

impl StructuralPartialEq for IEnroll2

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.