|
9 | 9 |
|
10 | 10 |
|
11 | 11 | #if (NGX_STREAM_SSL) |
12 | | -#ifdef HAVE_PROXY_SSL_PATCH |
13 | 12 |
|
14 | 13 | #include "ngx_stream_lua_cache.h" |
15 | 14 | #include "ngx_stream_lua_initworkerby.h" |
16 | 15 | #include "ngx_stream_lua_util.h" |
17 | 16 | #include "ngx_stream_ssl_module.h" |
18 | 17 | #include "ngx_stream_lua_contentby.h" |
19 | | -#include "ngx_stream_lua_proxy_ssl_verifyby.h" |
20 | 18 | #include "ngx_stream_lua_directive.h" |
21 | 19 | #include "ngx_stream_lua_ssl.h" |
22 | 20 |
|
| 21 | +#ifdef HAVE_PROXY_SSL_PATCH |
| 22 | +#include "ngx_stream_lua_proxy_ssl_verifyby.h" |
| 23 | + |
23 | 24 |
|
24 | 25 | static void ngx_stream_lua_proxy_ssl_verify_done(void *data); |
25 | 26 | static void ngx_stream_lua_proxy_ssl_verify_aborted(void *data); |
@@ -771,5 +772,44 @@ ngx_stream_lua_ffi_ssl_get_verify_cert(ngx_stream_lua_request_t *r, char **err) |
771 | 772 | #endif |
772 | 773 | } |
773 | 774 |
|
| 775 | + |
| 776 | +#else /* HAVE_PROXY_SSL_PATCH */ |
| 777 | + |
| 778 | + |
| 779 | +int |
| 780 | +ngx_stream_lua_ffi_ssl_set_verify_result(ngx_stream_lua_request_t *r, |
| 781 | + int verify_result, char **err) |
| 782 | +{ |
| 783 | + *err = "Does not have HAVE_PROXY_SSL_PATCH to support this function"; |
| 784 | + |
| 785 | + return NGX_ERROR; |
| 786 | +} |
| 787 | + |
| 788 | + |
| 789 | +int |
| 790 | +ngx_stream_lua_ffi_ssl_get_verify_result(ngx_stream_lua_request_t *r, |
| 791 | + char **err) |
| 792 | +{ |
| 793 | + *err = "Does not have HAVE_PROXY_SSL_PATCH to support this function"; |
| 794 | + |
| 795 | + return NGX_ERROR; |
| 796 | +} |
| 797 | + |
| 798 | + |
| 799 | +void |
| 800 | +ngx_stream_lua_ffi_ssl_free_verify_cert(void *) |
| 801 | +{ |
| 802 | +} |
| 803 | + |
| 804 | + |
| 805 | +void * |
| 806 | +ngx_stream_lua_ffi_ssl_get_verify_cert(ngx_stream_lua_request_t *r, char **err) |
| 807 | +{ |
| 808 | + *err = "Does not have HAVE_PROXY_SSL_PATCH to support this function"; |
| 809 | + |
| 810 | + return NULL; |
| 811 | +} |
| 812 | + |
| 813 | + |
774 | 814 | #endif /* HAVE_PROXY_SSL_PATCH */ |
775 | 815 | #endif /* NGX_STREAM_SSL */ |
0 commit comments