libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CERT_CONTEXT.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
20
21#include <cstdint>
22
23namespace introvirt {
24namespace windows {
25namespace crypt32 {
26
33 public:
34 virtual uint32_t dwCertEncodingType() const = 0;
35 virtual void dwCertEncodingType(uint32_t dwCertEncodingType) = 0;
36
38 virtual void pbCertEncoded(const guest_ptr<uint8_t[]>& ptr) = 0;
39
40 virtual uint32_t cbCertEncoded() const = 0;
41 virtual void cbCertEncoded(uint32_t cbCertEncoded) = 0;
42
43 virtual guest_ptr<void> pCertInfo() const = 0;
44 virtual void pCertInfo(const guest_ptr<void>& ptr) = 0;
45
46 virtual HCERTSTORE hCertStore() const = 0;
47 virtual void hCertStore(HCERTSTORE hCertStore) = 0;
48
52 static std::shared_ptr<CERT_CONTEXT> make_shared(const guest_ptr<void>& ptr, bool x64);
53
58 static size_t size(bool x64);
59
67 static size_t size(const Vcpu& vcpu);
68
69 virtual ~CERT_CONTEXT() = default;
70};
71
72} // namespace crypt32
73} // namespace windows
74} // namespace introvirt
A class representing a single virtual processor.
Definition Vcpu.hh:33
Definition guest_ptr.hh:88
Definition CERT_CONTEXT.hh:32
virtual void pbCertEncoded(const guest_ptr< uint8_t[]> &ptr)=0
static std::shared_ptr< CERT_CONTEXT > make_shared(const guest_ptr< void > &ptr, bool x64)
Create a CERT_CONTEXT.
virtual guest_ptr< void > pCertInfo() const =0
static size_t size(bool x64)
Get the size of the structure.
virtual HCERTSTORE hCertStore() const =0
virtual void hCertStore(HCERTSTORE hCertStore)=0
virtual void pCertInfo(const guest_ptr< void > &ptr)=0
virtual guest_ptr< uint8_t[]> pbCertEncoded() const =0
virtual void cbCertEncoded(uint32_t cbCertEncoded)=0
virtual uint32_t dwCertEncodingType() const =0
static size_t size(const Vcpu &vcpu)
Get the size of the structure.
virtual uint32_t cbCertEncoded() const =0
virtual void dwCertEncodingType(uint32_t dwCertEncodingType)=0
Type-safe guest virtual address pointer and guest_ptr template.
uint64_t HCERTSTORE
Definition fwd.hh:33
Core IntroVirt classes.
Definition Cr0.hh:20