예제 #1
0
파일: SNIProxy.cs 프로젝트: rajeevkb/corefx
 /// <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);
     }
 }
예제 #2
0
파일: SNIProxy.cs 프로젝트: hickford/corefx
 /// <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);
     }
 }
예제 #3
0
 /// <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));
     }
 }
예제 #4
0
파일: SNIProxy.cs 프로젝트: schellap/corefx
 /// <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);
     }
 }
예제 #5
0
파일: SNIProxy.cs 프로젝트: kronic/corefx
 /// <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;
     }
 }
예제 #6
0
 /// <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;
     }
 }
예제 #7
0
파일: SNIProxy.cs 프로젝트: talha020/corefx
 /// <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);
     }
 }
예제 #8
0
 /// <summary>
 /// Enable SSL
 /// </summary>
 public uint EnableSsl(uint options)
 {
     return(_lowerHandle.EnableSsl(options));
 }
예제 #9
0
 /// <summary>
 /// Enable SSL
 /// </summary>
 public SNIError EnableSsl(uint options)
 {
     return(_lowerHandle.EnableSsl(options));
 }