/// <summary> /// Enable SSL on a connection /// </summary> /// <param name="handle">Connection handle</param> /// <returns>SNI error code</returns> public uint EnableSsl(SNIHandle handle, uint options) { try { return handle.EnableSsl(options); } catch (Exception e) { return SNICommon.ReportSNIError(SNIProviders.SSL_PROV, SNICommon.HandshakeFailureError, e); } }
/// <summary> /// Enable SSL on a connection /// </summary> /// <param name="handle">Connection handle</param> /// <returns>SNI error code</returns> public uint EnableSsl(SNIHandle handle, uint options) { try { return handle.EnableSsl(options); } catch { return SNICommon.ReportSNIError(SNIProviders.SSL_PROV, 0, 31, SR.SNI_ERROR_31); } }
/// <summary> /// Enable SSL on a connection /// </summary> /// <param name="handle">Connection handle</param> /// <returns>SNI error code</returns> public uint EnableSsl(SNIHandle handle, uint options) { try { return(handle.EnableSsl(options)); } catch (Exception e) { return(SNICommon.ReportSNIError(SNIProviders.SSL_PROV, SNICommon.HandshakeFailureError, e)); } }
/// <summary> /// Enable SSL on a connection /// </summary> /// <param name="handle">Connection handle</param> /// <returns>SNI error code</returns> public uint EnableSsl(SNIHandle handle, uint options) { try { return(handle.EnableSsl(options)); } catch { SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.SSL_PROV, 0, 31, SR.SNI_ERROR_31); return(TdsEnums.SNI_ERROR); } }
/// <summary> /// Enable SSL on a connection /// </summary> /// <param name="handle">Connection handle</param> /// <returns>SNI error code</returns> public uint EnableSsl(SNIHandle handle, uint options) { try { return handle.EnableSsl(options); } catch { SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.SSL_PROV, 0, 31, SR.SNI_ERROR_31); return TdsEnums.SNI_ERROR; } }
/// <summary> /// Enable SSL on a connection /// </summary> /// <param name="handle">Connection handle</param> /// <returns>SNI error code</returns> public uint EnableSsl(SNIHandle handle, uint options) { try { return handle.EnableSsl(options); } catch (Exception e) { SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.TCP_PROV, 0, 0, string.Format("Encryption(ssl/tls) handshake failed: {0}", e.ToString())); return TdsEnums.SNI_ERROR; } }
/// <summary> /// Enable SSL on a connection /// </summary> /// <param name="handle">Connection handle</param> /// <returns>SNI error code</returns> public uint EnableSsl(SNIHandle handle, uint options) { try { return(handle.EnableSsl(options)); } catch (Exception e) { SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.TCP_PROV, 0, 0, string.Format("Encryption(ssl/tls) handshake failed: {0}", e.ToString())); return(TdsEnums.SNI_ERROR); } }
/// <summary> /// Enable SSL /// </summary> public uint EnableSsl(uint options) { return(_lowerHandle.EnableSsl(options)); }
/// <summary> /// Enable SSL /// </summary> public SNIError EnableSsl(uint options) { return(_lowerHandle.EnableSsl(options)); }