src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (28)
245Crypto.ErrClearError();
447Crypto.ErrClearError();
679throw Crypto.CreateOpenSslCryptographicException();
695Crypto.ErrClearError();
709int sendCount = Crypto.BioCtrlPending(context.OutputBio!);
726Crypto.ErrClearError();
778int capacityNeeded = Crypto.BioCtrlPending(context.OutputBio!);
785Crypto.ErrClearError();
893Ssl.X509StoreCtxSetError(storeCtx, (int)Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_OK);
899Interop.Crypto.X509VerifyStatusCodeUniversal verifyError;
902verifyError = Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_APPLICATION_VERIFICATION;
925TlsAlertMessage.BadCertificate => Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_CERT_REJECTED,
926TlsAlertMessage.UnknownCA => Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT,
927TlsAlertMessage.CertificateRevoked => Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_CERT_REVOKED,
928TlsAlertMessage.CertificateExpired => Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_CERT_HAS_EXPIRED,
929TlsAlertMessage.UnsupportedCert => Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_INVALID_PURPOSE,
930_ => Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_CERT_REJECTED,
967Ssl.X509StoreCtxSetError(storeCtx, (int)Interop.Crypto.X509VerifyStatusCodeUniversal.X509_V_ERR_UNSPECIFIED);
982using (SafeSharedX509StackHandle chainStack = Interop.Crypto.X509StoreCtxGetSharedUntrusted(storeHandle))
986int count = Interop.Crypto.GetX509StackFieldCount(chainStack);
990IntPtr certPtr = Interop.Crypto.GetX509StackField(chainStack, i);
1162int bytes = Crypto.BioRead(bio, buffer);
1188Crypto.ErrPeekError() != 0 ? Crypto.CreateOpenSslCryptographicException() : // crypto error queue not empty
1196innerError = Interop.Crypto.CreateOpenSslCryptographicException();
1236ulong errorVal = Crypto.ErrPeekLastError();
1237Crypto.ErrClearError();
1238string msg = SR.Format(message, Utf8StringMarshaller.ConvertToManaged(Crypto.ErrReasonErrorString(errorVal)));