From 9c1381f682461d8f41d1fdeac14ae5ca1d673a0a Mon Sep 17 00:00:00 2001 From: David Hall Date: Mon, 27 May 2019 19:38:00 -0600 Subject: [PATCH] Added CertEncodingType --- PInvoke/Cryptography/Crypt32/Wincrypt.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/PInvoke/Cryptography/Crypt32/Wincrypt.cs b/PInvoke/Cryptography/Crypt32/Wincrypt.cs index 6594288f..8956c170 100644 --- a/PInvoke/Cryptography/Crypt32/Wincrypt.cs +++ b/PInvoke/Cryptography/Crypt32/Wincrypt.cs @@ -200,6 +200,30 @@ namespace Vanara.PInvoke CALG_TLS1PRF = 0x0000800a, } + /// + /// A certificate encoding type. + /// + [PInvokeData("wincrypt.h")] + public enum CertEncodingType : uint + { + /// + /// The crypt asn encoding + /// + CRYPT_ASN_ENCODING = 0x00000001, + /// + /// The crypt NDR encoding + /// + CRYPT_NDR_ENCODING = 0x00000002, + /// + /// The X509 asn encoding + /// + X509_ASN_ENCODING = 0x00000001, + /// + /// The X509 NDR encoding + /// + X509_NDR_ENCODING = 0x00000002, + } + /// Private key pair type. [PInvokeData("wincrypt.h")] public enum PrivateKeyType