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

◆ Add()

void System.Security.Cryptography.X509Certificates.X509Store.Add ( X509Certificate2 certificate)
inline

Definition at line 118 of file X509Store.cs.

119 {
120 if (certificate == null)
121 {
122 throw new ArgumentNullException("certificate");
123 }
124 if (_storePal == null)
125 {
126 throw new CryptographicException(System.SR.Cryptography_X509_StoreNotOpen);
127 }
128 if (certificate.Pal == null)
129 {
130 throw new CryptographicException(System.SR.Cryptography_InvalidHandle, "pCertContext");
131 }
132 _storePal.Add(certificate.Pal);
133 }
static string Cryptography_InvalidHandle
Definition SR.cs:72
static string Cryptography_X509_StoreNotOpen
Definition SR.cs:102
Definition SR.cs:7
void Add(ICertificatePal cert)

References System.Security.Cryptography.X509Certificates.X509Store._storePal, Internal.Cryptography.Pal.IStorePal.Add(), System.SR.Cryptography_InvalidHandle, System.SR.Cryptography_X509_StoreNotOpen, and System.Security.Cryptography.X509Certificates.X509Certificate2.Pal.

Referenced by System.Net.Security.SslStreamCertificateContext.SslStreamCertificateContext().