mirror of
https://github.com/mainnika/nginx-auth-ldap.git
synced 2026-05-22 15:53:39 +00:00
Fixed compilation without SSL (fixes #22)
This commit is contained in:
@@ -186,7 +186,9 @@ static ngx_int_t ngx_http_auth_ldap_check_user(ngx_http_request_t *r, ngx_http_a
|
||||
static ngx_int_t ngx_http_auth_ldap_check_group(ngx_http_request_t *r, ngx_http_auth_ldap_ctx_t *ctx);
|
||||
static ngx_int_t ngx_http_auth_ldap_check_bind(ngx_http_request_t *r, ngx_http_auth_ldap_ctx_t *ctx);
|
||||
static ngx_int_t ngx_http_auth_ldap_recover_bind(ngx_http_request_t *r, ngx_http_auth_ldap_ctx_t *ctx);
|
||||
#if (NGX_OPENSSL)
|
||||
static ngx_int_t ngx_http_auth_ldap_restore_handlers(ngx_connection_t *conn);
|
||||
#endif
|
||||
|
||||
ngx_http_auth_ldap_cache_t ngx_http_auth_ldap_cache;
|
||||
|
||||
@@ -1090,6 +1092,7 @@ ngx_http_auth_ldap_dummy_write_handler(ngx_event_t *wev)
|
||||
}
|
||||
|
||||
|
||||
#if (NGX_OPENSSL)
|
||||
/* Make sure the event hendlers are activated. */
|
||||
static ngx_int_t
|
||||
ngx_http_auth_ldap_restore_handlers(ngx_connection_t *conn)
|
||||
@@ -1115,6 +1118,7 @@ ngx_http_auth_ldap_restore_handlers(ngx_connection_t *conn)
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
ngx_http_auth_ldap_connection_established(ngx_http_auth_ldap_connection_t *c)
|
||||
@@ -1416,7 +1420,9 @@ ngx_http_auth_ldap_connect(ngx_http_auth_ldap_connection_t *c)
|
||||
|
||||
conn = pconn->connection;
|
||||
conn->data = c;
|
||||
#if (NGX_OPENSSL)
|
||||
conn->pool = c->pool;
|
||||
#endif
|
||||
conn->write->handler = ngx_http_auth_ldap_connect_handler;
|
||||
conn->read->handler = ngx_http_auth_ldap_read_handler;
|
||||
ngx_add_timer(conn->read, 10000); /* TODO: Connect timeout */
|
||||
|
||||
Reference in New Issue
Block a user