Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add OPT_HTTPAUTH flags and new OPT_SSLVERSION flags #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions const.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,24 @@ const (
SSLVERSION_TLSv1 = C.CURL_SSLVERSION_TLSv1
SSLVERSION_SSLv2 = C.CURL_SSLVERSION_SSLv2
SSLVERSION_SSLv3 = C.CURL_SSLVERSION_SSLv3
SSLVERSION_TLSv1_0 = C.CURL_SSLVERSION_TLSv1_0 /* TLSv1.0 (Added in 7.34.0) */
SSLVERSION_TLSv1_1 = C.CURL_SSLVERSION_TLSv1_1 /* TLSv1.1 (Added in 7.34.0) */
SSLVERSION_TLSv1_2 = C.CURL_SSLVERSION_TLSv1_2 /* TLSv1.2 (Added in 7.34.0) */
//SSLVERSION_TLSv1_3 = C.CURL_SSLVERSION_TLSv1_3 /* TLSv1.3 (Added in 7.52.0) */
)

// for easy.Setopt(OPT_HTTPAUTH, flag)
const (
AUTH_NONE = C.CURLAUTH_NONE
AUTH_BASIC = C.CURLAUTH_BASIC
AUTH_DIGEST = C.CURLAUTH_DIGEST
AUTH_NEGOTIATE = C.CURLAUTH_NEGOTIATE
AUTH_NTLM = C.CURLAUTH_NTLM
AUTH_DIGEST_IE = C.CURLAUTH_DIGEST_IE
AUTH_NTLM_WB = C.CURLAUTH_NTLM_WB
AUTH_ONLY = C.CURLAUTH_ONLY
AUTH_ANY = C.CURLAUTH_ANY
AUTH_ANYSAFE = C.CURLAUTH_ANYSAFE
)

// for easy.Setopt(OPT_TIMECONDITION, flag)
Expand Down