0
系统 mac Darwin 17.7.0 x86_64 版本 tengine-2.2.3 配置 ./configure --prefix=/usr/local/tengine --with-openssl=/Users/leavest/Downloads/libressl-2.9.0 make 报错
错误信息
src/event/ngx_event_openssl.c:2849:43: error: incompatible pointer types passing 'SSL_SESSION *(SSL *, u_char *, int, int *)' (aka 'struct ssl_session_st *(struct ssl_st *, unsigned char *, int, int *)') to parameter of type
'SSL_SESSION *(*)(struct ssl_st *, const unsigned char *, int, int *)' (aka 'struct ssl_session_st *(*)(struct ssl_st *, const unsigned char *, int, int *)') [-Werror,-Wincompatible-pointer-types]
SSL_CTX_sess_set_get_cb(ssl->ctx, ngx_ssl_get_cached_session);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/leavest/Downloads/libressl-2.9.0/.openssl/include/openssl/ssl.h:738:20: note: passing argument to parameter 'get_session_cb' here
SSL_SESSION *(*get_session_cb)(struct ssl_st *ssl,
^
1 error generated.
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
make: *** [build] Error 2
tengine 是否支持 使用 libressl 替代 openssl