DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
X509Certificate2.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "Common.h"
7#include "System/Object.h"
8#include "System/String.h"
9
10namespace DotNetDupe {
11 namespace System {
12 namespace Security {
13 namespace Cryptography {
14 namespace X509Certificates {
15
21 class X509Certificate2 : public Object {
22 public:
26 DOTNETDUPE_API X509Certificate2(const String& certPath, const String& keyPath);
27
30
33 DOTNETDUPE_API void* GetInternalCert() const;
34
37 DOTNETDUPE_API void* GetInternalKey() const;
38
39 private:
40 void* m_pCert; // X509*
41 void* m_pKey; // EVP_PKEY*
42 };
43
44 }
45 }
46 }
47 }
48}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
void * GetInternalCert() const
Gets the internal OpenSSL X509* pointer.
void * GetInternalKey() const
Gets the internal OpenSSL EVP_PKEY* pointer.
X509Certificate2(const String &certPath, const String &keyPath)
Initializes a new instance of X509Certificate2 from PEM certificate and private key files.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74