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

Compilation warning "implicit declaration of function ‘mbedtls_x509_get_name’; did you mean ‘mbedtls_pk_get_name’" #3169

Open
CoinFuMasterShifu opened this issue Jun 16, 2024 · 0 comments

Comments

@CoinFuMasterShifu
Copy link

This line triggers a compilation warning

libwebsockets-4.3.3/lib/tls/mbedtls/mbedtls-extensions.c:253:23: warning: implicit declaration of function ‘mbedtls_x509_get_name’; did you mean ‘mbedtls_pk_get_name’? [-Wimplicit-function-declaration]
  253 |                 ret = mbedtls_x509_get_name( p, end, &rfc822Name );
      |                       ^~~~~~~~~~~~~~~~~~~~~
      |                       mbedtls_pk_get_name

because the declaration

int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end,
                          mbedtls_x509_name *cur);

is in an internal file x509_internal.h not exposed to mbedtls library headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant