Closed nalakagunathilaka closed 5 years ago
@nalakagunathilaka - Please how did you resolve this issue?
I think am getting the same error:
CWSecurity.c: In function ‘CWSecurityVerifyCB’:
CWSecurity.c:795:45: error: invalid use of incomplete typedef ‘X509_STORE_CTX’ {aka ‘struct x509_store_ctx_st’}
795 | X509_NAME_oneline(X509_get_issuer_name(ctx->current_cert), buf, 256);
| ^~
make: *** [<builtin>: CWSecurity.o] Error 1
@nalakagunathilaka Had solve this problem?
@nalakagunathilaka Had solve this problem?
I think I installed correct libnl-3-genl. Can’t remember exactly since now its been more than 2 years. But I could build and do modifications and build again. After installing correct lib.
This worked for me:
sudo apt install libnl-3-dev
sudo apt install libnl-genl-3-dev
sudo apt install libssl1.0-dev # instead of libssl-dev
LIB_PATH = /usr/lib
CFLAGS += -fgnu89-inline
Hi, After trying to make the openCAPWAP master I get the following errors,
Error number 1
CWSecurity.c: In function ‘CWSecurityInitSessionClient’: CWSecurity.c:235:43: error: macro "BIO_ctrl_set_connected" passed 3 arguments, but takes just 2 i = BIO_ctrl_set_connected(sbio, 1, &peer); ^ CWSecurity.c:235:6: error: ‘BIO_ctrl_set_connected’ undeclared (first use in this function); did you mean ‘BIO_new_ssl_connect’? i = BIO_ctrl_set_connected(sbio, 1, &peer); ^
~~~~~ BIO_new_ssl_connectError Number 2
CWSecurity.c: In function ‘CWSecurityVerifyCB’: CWSecurity.c:795:45: error: dereferencing pointer to incomplete type ‘X509_STORE_CTX {aka struct x509_store_ctx_st}’ X509_NAME_oneline(X509_get_issuer_name(ctx->current_cert), buf, 256);
my current openssl version is 1.1.0g-2ubuntu4.3 amd64 and I have successfully installed the said libraries except libnl-3-genl. Instead of libnl-3-genl I have the libnl-genl-3-dev. libnl-3-dev version is 3.2.29-0ubuntu3 amd64 libnl-genl-3-dev version is 3.2.29-0ubuntu3 amd64 I would really appreciate it if anyone can help me out in this matter since I am working on my final year project using the openCAPWAP.