Skip to content

Commit

Permalink
Added SslVerifyhost property to CurlEasy
Browse files Browse the repository at this point in the history
  • Loading branch information
masroore committed Jan 24, 2017
1 parent 054fc00 commit bdf6903
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CurlSharp/CurlEasy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public class CurlEasy : IDisposable
private string _sslKey;
private string _sslKeyPasswd;
private bool _sslVerifyPeer;
private bool _sslVerifyHost;
private bool _tcpNoDelay;
private int _timeValue;
private int _timeout;
Expand Down Expand Up @@ -624,6 +625,12 @@ public bool SslVerifyPeer
set { setBoolOption(CurlOption.SslVerifyPeer, ref _sslVerifyPeer, value); }
}

public bool SslVerifyhost
{
get { return _sslVerifyHost; }
set { setBoolOption(CurlOption.SslVerifyhost, ref _sslVerifyHost, value); }
}

public bool FreshConnect
{
get { return _freshConnect; }
Expand Down Expand Up @@ -2145,7 +2152,7 @@ private int _curlDebugCallback(IntPtr pCurl, CurlInfoType infoType, string messa
if (_pfCurlDebug != null)
{
var userdata = getObject(pUserData);
_pfCurlDebug(infoType, message, userdata);
_pfCurlDebug(infoType, message, size, userdata);
}
return 0;
}
Expand Down

0 comments on commit bdf6903

Please sign in to comment.