|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
dx::license's platform part in the WDK kernel: the machine store's candidates, the machine's identity More...
#include <dx_platform_license.h>
Public Member Functions | |
| ::CFStringRef | cn() const |
| ::CFIndex | count() const noexcept |
| const uint8_t* | data() const noexcept |
| the DER bytes | |
| ::CFArrayRef | emails() const |
| void | free() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| CFTypeID | id() noexcept |
| reference& | initialize(::SecCertificateRef cf_object, bool retain= true) |
| ::CFDataRef | issuers() const noexcept |
| The issuer is a sequence in the format used by SecItemCopyMatching. The content returned is a DER-encoded X.509 distinguished name. For a display version of the issuer, call SecCertificateCopyValues. The caller must CFRelease the value returned. | |
| std::string | name(::DWORD type= CERT_NAME_SIMPLE_DISPLAY_TYPE, ::DWORD flags= 0) const |
| a name of the certificate (CertGetNameString), the subject's simple display name by default | |
| virtual | operator bool() const |
| operator type<>() const noexcept | |
| bool | operator !=(::SecCertificateRef cf_object) const noexcept |
| operator ::CFDataRef() const noexcept | |
| operator ::CFDictionaryRef() const noexcept | |
| operator ::CFTypeID() const noexcept | |
| operator ::CFTypeRef() const noexcept | |
| operator ::PCCERT_CONTEXT() const noexcept | |
| operator ::SecCertificateRef() const noexcept | |
| operator ::SecKeyRef() const noexcept | |
| Retrieves the public key for a given certificate. | |
| bool | operator ==(::SecCertificateRef cf_object) const noexcept |
| ::CFTypeRef | operator [](::CFArrayRef array) const noexcept |
| ::CFTypeRef | operator [](::CFStringRef oid) const |
| reference& | release() noexcept |
| const reference& | retain() const noexcept |
| ::CFDataRef | serial() const noexcept |
| Return the content of a DER-encoded integer (without the tag and length fields) for this certificate's serial number. The caller must CFRelease the value returned. | |
| size_t | size() const noexcept |
| ::CFDataRef | subjects() const noexcept |
| The subject is a sequence in the format used by SecItemCopyMatching. The content returned is a DER-encoded X.509 distinguished name. For a display version of the subject, call SecCertificateCopyValues. The caller must CFRelease the value returned. | |
| ::CFStringRef | summary() const noexcept |
| ::CFDateRef | valid_after() const noexcept |
| Returns the absolute time at which the given certificate becomes valid, or NULL if this value could not be obtained. The caller must CFRelease the value returned. | |
| ::CFDateRef | valid_before() const noexcept |
| Returns the absolute time at which the given certificate becomes valid, or NULL if this value could not be obtained. The caller must CFRelease the value returned. | |
Protected Types | |
| typedef sec::certificate | candidate |
| typedef crypt::certificate | candidate |
| typedef const void* | candidate |
Protected Member Functions | |
| void | keep(candidate& certificate) |
| void | keep(candidate& certificate) noexcept |
Static Protected Member Functions | |
| template<typename visit_t> | |
| static bool | each(const char *, visit_t visit) |
| every certificate of the machine's Personal store (the subject is left to the check), until visit(candidate, DER bytes, size) returns false | |
| template<typename visit_t> | |
| static bool | each(const char* subject, visit_t visit) |
| every keychain certificate whose subject starts with the subject given, until visit(candidate, DER bytes, size) returns false | |
| template<typename visit_t> | |
| static bool | each(const char* subject, visit_t visit) |
| every certificate of the stores whose subject contains the subject given, until visit(candidate, DER bytes, size) returns false | |
| template<typename visit_t> | |
| static void | ethernet(visit_t visit) |
| every ethernet address of the machine, until visit(chars, length) returns false | |
| template<typename visit_t> | |
| static void | ethernet(visit_t visit) |
| every ethernet address of the machine, until visit(chars, length) returns false | |
| template<typename visit_t> | |
| static void | ethernet(visit_t visit) |
| every ethernet address of the machine (the NDIS adapters' permanent ones), until visit(chars, length) returns false | |
| static void | forged() |
| a candidate so named that the root did not sign | |
| static void | forged() noexcept |
| a candidate so named that the root did not sign | |
| static void | forged() noexcept |
| a candidate so named that the root did not sign | |
| static void | keep(candidate &) noexcept |
| static void | missing() noexcept |
| no candidate stood: the keychain holds no license | |
| static void | missing() noexcept |
| no candidate stood: the stores hold no license | |
| static void | missing() noexcept |
| no candidate stood: the store holds no license | |
| static int64_t | now() noexcept |
| static int64_t | now() noexcept |
| static int64_t | now() noexcept |
| seconds since 1970 off the system time (100 ns since 1601) | |
| template<typename visit_t> | |
| static void | serial(visit_t visit) |
| the machine's serial number: visit(chars, length) | |
| template<typename visit_t> | |
| static void | serial(visit_t visit) |
| the machine's serial number: visit(chars, length) | |
| template<typename visit_t> | |
| static void | serial(visit_t visit) |
| the machine's serial number: visit(chars, length) | |
Protected Attributes | |
| ::SecCertificateRef | cf_object |
| ::PCCERT_CONTEXT | context{} |
dx::license's platform part in the WDK kernel: the machine store's candidates, the machine's identity
dx::license's platform part in user mode: the candidates of the system certificate stores, the machine's identity
dx::license's platform part on the Security framework: the keychain's candidates, the machine's identity
The machine's Personal certificate store is the registry (SystemCertificates\My\Certificates\<hash>\Blob: the certificate's properties, the DER among them), the one the installer and certutil -addstore My fill and a service sees. The serial number is the SMBIOS System Information's, the ethernet addresses the NDIS adapters' permanent ones, both over WMI. All at PASSIVE_LEVEL.
A candidate is a keychain certificate whose subject starts with the subject given; one that the root did not sign is the enforcement's case (dx_pass_sec_fatal).
The license certificate sits in the Personal store of the current user (a double click on the .crt installs it there) or of the machine (the installer's place, the one a service and the kernel driver see); a candidate names the subject given in its common name.
|
protected |
|
protected |
|
protected |
nothing is kept: the type says it all
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
the DER bytes
|
inlinestaticprotected |
every certificate of the machine's Personal store (the subject is left to the check), until visit(candidate, DER bytes, size) returns false
|
inlinestaticprotected |
every keychain certificate whose subject starts with the subject given, until visit(candidate, DER bytes, size) returns false
|
inlinestaticprotected |
every certificate of the stores whose subject contains the subject given, until visit(candidate, DER bytes, size) returns false
|
inlineinherited |
|
inlinestaticprotected |
every ethernet address of the machine, until visit(chars, length) returns false
|
inlinestaticprotected |
every ethernet address of the machine, until visit(chars, length) returns false
|
inlinestaticprotected |
every ethernet address of the machine (the NDIS adapters' permanent ones), until visit(chars, length) returns false
|
inlinestaticprotected |
a candidate so named that the root did not sign
|
inlinestaticprotectednoexcept |
a candidate so named that the root did not sign
|
inlinestaticprotectednoexcept |
a candidate so named that the root did not sign
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
The issuer is a sequence in the format used by SecItemCopyMatching. The content returned is a DER-encoded X.509 distinguished name. For a display version of the issuer, call SecCertificateCopyValues. The caller must CFRelease the value returned.
|
inlinestaticprotectednoexcept |
|
inlineprotected |
|
inlineprotectednoexcept |
|
inlinestaticprotectednoexcept |
no candidate stood: the keychain holds no license
|
inlinestaticprotectednoexcept |
no candidate stood: the stores hold no license
|
inlinestaticprotectednoexcept |
no candidate stood: the store holds no license
|
inlineinherited |
a name of the certificate (CertGetNameString), the subject's simple display name by default
|
inlinestaticprotectednoexcept |
|
inlinestaticprotectednoexcept |
|
inlinestaticprotectednoexcept |
seconds since 1970 off the system time (100 ns since 1601)
|
inlinevirtualinherited |
Reimplemented in dx::license.
|
noexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineexplicitnoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
Retrieves the public key for a given certificate.
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinestaticprotected |
the machine's serial number: visit(chars, length)
|
inlinestaticprotected |
the machine's serial number: visit(chars, length)
|
inlinestaticprotected |
the machine's serial number: visit(chars, length)
|
inlinenoexceptinherited |
Return the content of a DER-encoded integer (without the tag and length fields) for this certificate's serial number. The caller must CFRelease the value returned.
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
The subject is a sequence in the format used by SecItemCopyMatching. The content returned is a DER-encoded X.509 distinguished name. For a display version of the subject, call SecCertificateCopyValues. The caller must CFRelease the value returned.
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
Returns the absolute time at which the given certificate becomes valid, or NULL if this value could not be obtained. The caller must CFRelease the value returned.
|
inlinenoexceptinherited |
Returns the absolute time at which the given certificate becomes valid, or NULL if this value could not be obtained. The caller must CFRelease the value returned.
|
protectedinherited |
|
protectedinherited |