Skip to content

--libcurl generates an integer for --tls-max #13127

Description

@verhovsky

I did this

curl example.com --tls-max 1.3 --libcurl -

I expected the following

  curl_easy_setopt(hnd, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_3);

or possibly

  curl_easy_setopt(hnd, CURLOPT_SSLVERSION, CURL_SSLVERSION_DEFAULT | CURL_SSLVERSION_MAX_TLSv1_3);

What I actually got:

  curl_easy_setopt(hnd, CURLOPT_SSLVERSION, 458752L);

curl/libcurl version

curl 8.6.0 (aarch64-apple-darwin23.2.0) libcurl/8.6.0 (SecureTransport) OpenSSL/3.2.1 zlib/1.2.12 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libssh2/1.11.0 nghttp2/1.60.0 librtmp/2.3 OpenLDAP/2.6.7
Release-Date: 2024-01-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

operating system

Darwin [redacted] 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103 arm64 arm Darwin

Activity

  1. self-assigned this
    on Mar 14, 2024
  2. added a commit that references this issue on Mar 14, 2024
    4094818
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions