Skip to content

openssl: avoid OpenSSL API namespace for local fallback symbol - #23520

Closed
vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:notboring
Closed

vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:notboring

Conversation

@vszakats

@vszakats vszakats commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

To avoid name clash when building against OpenSSL forks implementing
this API.

Fixing, when building against BoringSSL 0.20261020.0:

lib/vtls/openssl.c:173:15: error: static declaration of ‘ASN1_STRING_get_length’ follows non-static declaration
  173 | static size_t ASN1_STRING_get_length(const ASN1_STRING *str)
      |               ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/runner/pkg/boringssl/include/openssl/x509.h:23,
                 from /home/runner/pkg/boringssl/include/openssl/pem.h:25,
                 from /home/runner/pkg/boringssl/include/openssl/ssl.h:24,
                 from /home/runner/work/curl/curl/lib/vtls/openssl.h:69,
                 from /home/runner/work/curl/curl/lib/vtls/openssl.c:37:
/home/runner/pkg/boringssl/include/openssl/asn1.h:525:23: note: previous declaration of ‘ASN1_STRING_get_length’ with type ‘size_t(const ASN1_STRING *)’ {aka ‘long unsigned int(const struct asn1_string_st *)’}
  525 | OPENSSL_EXPORT size_t ASN1_STRING_get_length(const ASN1_STRING *str);
      |                       ^~~~~~~~~~~~~~~~~~~~~~

Ref: https://github.com/curl/curl/actions/runs/39485527308/job/118844815062?pr=23519#step:38:42

Ref: #23519
Follow-up to 978cce1 #23215


@vszakats

This comment was marked as outdated.

@github-actions github-actions Bot added the CI Continuous Integration label Oct 20, 2026
@vszakats vszakats changed the title openssl: avoid OpenSSL API namespace for local fallback openssl: avoid OpenSSL API namespace for local fallback symbol Oct 20, 2026
@vszakats vszakats closed this in dfab21a Oct 20, 2026
@vszakats
vszakats deleted the notboring branch October 20, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tests TLS

Development

Successfully merging this pull request may close these issues.

1 participant