Example #1
0
 /// <exception cref="System.IO.IOException"></exception>
 private void VerifyHostname(SSLSocket sslsock, string hostname)
 {
     try
     {
         this.hostnameVerifier.Verify(hostname, sslsock);
     }
     catch (IOException iox)
     {
         // verifyHostName() didn't blowup - good!
         // close the socket before re-throwing the exception
         try
         {
             sslsock.Close();
         }
         catch (Exception)
         {
         }
         throw;
     }
 }