Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addressing HostNameInCertificate changes in native SNI #1680

Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ internal struct AuthProviderInfo
public bool certHash;
public object clientCertificateCallbackContext;
public SqlClientCertificateDelegate clientCertificateCallback;
[MarshalAs(UnmanagedType.LPWStr)]
public string serverCertFileName;
};

internal struct CTAIPProviderInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,7 @@ private void EnableSsl(uint info, SqlConnectionEncryptOption encrypt, bool integ
authInfo.certHash = false;
authInfo.clientCertificateCallbackContext = IntPtr.Zero;
authInfo.clientCertificateCallback = null;
authInfo.serverCertFileName = null;

if ((_encryptionOption & EncryptionOptions.CLIENT_CERT) != 0)
{
Expand Down