github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/api/cloudcontroller/ccerror/ssl_validation_hostname_error.go (about)

     1  package ccerror
     2  
     3  import "fmt"
     4  
     5  // SSLValidationHostnameError replaces x509.HostnameError when the server has
     6  // SSL certificate that does not match the hostname.
     7  type SSLValidationHostnameError struct {
     8  	Message string
     9  }
    10  
    11  func (e SSLValidationHostnameError) Error() string {
    12  	return fmt.Sprintf("Hostname does not match SSL Certificate (%s)", e.Message)
    13  }