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 error: openssl 1.1.1b with tengine 2.3.0(master) #1200

Closed
yunoasgit opened this issue Mar 6, 2019 · 1 comment
Closed

compilation error: openssl 1.1.1b with tengine 2.3.0(master) #1200

yunoasgit opened this issue Mar 6, 2019 · 1 comment

Comments

@yunoasgit
Copy link

Compile conf
./configure --prefix=/usr/local/tengine2.3.0 --user=www --group=www --with-openssl=../openssl-1.1.1b

Compile error
Openssl-1.1.1b openssl-1.1.1a openssl-1.1.1 are all wrong

	-o objs/src/core/ngx_regex.o \
	src/core/ngx_regex.c
	src/event/ngx_event_openssl.c: In function ‘ngx_ssl_free_buffer’:
	src/event/ngx_event_openssl.c:2986: error: invalid type argument of ‘->’ (have ‘int’)
	src/event/ngx_event_openssl.c:2987: error: invalid type argument of ‘->’ (have ‘int’)
	src/event/ngx_event_openssl.c:2988: error: invalid type argument of ‘->’ (have ‘int’)
	make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
	make[1]: *** Waiting for unfinished jobs....
	make[1]: Leaving directory `/usr/local/tengine-2.3.0'
	make: *** [build] Error 2

compilation error: openssl 1.1.1b with tengine 2.3.0(master)

@wangfakang
Copy link
Collaborator

Thanks for your report. you can try it #1202 .

fixed as follows:

diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index b03957af..e04b11bb 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -2982,13 +2982,6 @@ ngx_ssl_free_buffer(ngx_connection_t *c)
             c->ssl->buf->start = NULL;
         }
     }
-#if !defined(OPENSSL_IS_BORINGSSL) && (OPENSSL_VERSION_NUMBER >= 0x10101000L)
-    if (c->ssl->early_buf && c->ssl->early_buf->start) {
-        if (ngx_pfree(c->pool, c->ssl->early_buf->start) == NGX_OK) {
-            c->ssl->early_buf->start = NULL;
-        }
-    }
-#endif
 }

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

2 participants