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

* fix build Visual C++ #4974

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pavel-pimenov
Copy link
Contributor

wincrypt.h

#define X509_NAME ((LPCSTR) 7)

Error:

librdkafka\src\rdkafka_ssl.c(1044,30): error C2065: 'issuer_dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1044,30): error C2296: '': illegal, left operand has type 'LPCSTR'
librdkafka\src\rdkafka_ssl.c(1045,22): error C2065: 'dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1045,22): error C2296: '
': illegal, left operand has type 'LPCSTR'
librdkafka\src\rdkafka_ssl.c(1049,20): error C2065: 'dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1049,51): warning C4047: '=': 'int' differs in levels of indirection from 'X509_NAME *'
librdkafka\src\rdkafka_ssl.c(1050,42): error C2065: 'dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1050,42): warning C4047: 'function': 'const X509_NAME *' differs in levels of indirection from 'int'
librdkafka\src\rdkafka_ssl.c(1050,40): warning C4024: 'X509_NAME_cmp': different types for formal and actual parameter 1
librdkafka\src\rdkafka_ssl.c(1050,53): error C2065: 'issuer_dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1050,53): warning C4047: 'function': 'const X509_NAME *' differs in levels of indirection from 'int'
librdkafka\src\rdkafka_ssl.c(1050,44): warning C4024: 'X509_NAME_cmp': different types for formal and actual parameter 2

wincrypt.h

#define X509_NAME                           ((LPCSTR) 7)

Error:

librdkafka\src\rdkafka_ssl.c(1044,30): error C2065: 'issuer_dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1044,30): error C2296: '*': illegal, left operand has type 'LPCSTR'
librdkafka\src\rdkafka_ssl.c(1045,22): error C2065: 'dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1045,22): error C2296: '*': illegal, left operand has type 'LPCSTR'
librdkafka\src\rdkafka_ssl.c(1049,20): error C2065: 'dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1049,51): warning C4047: '=': 'int' differs in levels of indirection from 'X509_NAME *'
librdkafka\src\rdkafka_ssl.c(1050,42): error C2065: 'dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1050,42): warning C4047: 'function': 'const X509_NAME *' differs in levels of indirection from 'int'
librdkafka\src\rdkafka_ssl.c(1050,40): warning C4024: 'X509_NAME_cmp': different types for formal and actual parameter 1
librdkafka\src\rdkafka_ssl.c(1050,53): error C2065: 'issuer_dn': undeclared identifier
librdkafka\src\rdkafka_ssl.c(1050,53): warning C4047: 'function': 'const X509_NAME *' differs in levels of indirection from 'int'
librdkafka\src\rdkafka_ssl.c(1050,44): warning C4024: 'X509_NAME_cmp': different types for formal and actual parameter 2
@pavel-pimenov pavel-pimenov requested a review from a team as a code owner February 20, 2025 07:07
@confluent-cla-assistant
Copy link

❌ Error getting contributor login(s).
Please ensure the email address associated with this commit is added to your Github account.

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

Successfully merging this pull request may close these issues.

1 participant