Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MapContentType()

static X509ContentType Internal.Cryptography.Pal.X509Pal.MapContentType ( ContentType contentType)
inlinestaticprivate

Definition at line 183 of file X509Pal.cs.

184 {
185 switch (contentType)
186 {
187 case ContentType.CERT_QUERY_CONTENT_CERT:
188 return X509ContentType.Cert;
189 case ContentType.CERT_QUERY_CONTENT_SERIALIZED_STORE:
190 return X509ContentType.SerializedStore;
191 case ContentType.CERT_QUERY_CONTENT_SERIALIZED_CERT:
192 return X509ContentType.SerializedCert;
193 case ContentType.CERT_QUERY_CONTENT_PKCS7_SIGNED:
194 case ContentType.CERT_QUERY_CONTENT_PKCS7_UNSIGNED:
195 return X509ContentType.Pkcs7;
196 case ContentType.CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED:
197 return X509ContentType.Authenticode;
198 case ContentType.CERT_QUERY_CONTENT_PFX:
199 return X509ContentType.Pfx;
200 default:
201 return X509ContentType.Unknown;
202 }
203 }

Referenced by Internal.Cryptography.Pal.X509Pal.GetCertContentType(), and Internal.Cryptography.Pal.X509Pal.GetCertContentType().