Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build and link with MIT Kerberos 1.9.2

  • Loading branch information...
commit c2035a7b1c900491fb3df2ea50f52fcb34f6be2f 1 parent 6c4193f
@mclap authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  config
  2. +1 −1  ngx_http_auth_spnego_module.c
View
2  config
@@ -1,4 +1,4 @@
ngx_addon_name=ngx_http_auth_spnego_module
HTTP_MODULES="$HTTP_MODULES ngx_http_auth_spnego_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_auth_spnego_module.c"
-CORE_LIBS="$CORE_LIBS -L$ngx_addon_dir/spnegohelp -Wl,-rpath $ngx_addon_dir/spnegohelp -lspnegohelp -lgssapi_krb5 -lkrb5"
+CORE_LIBS="$CORE_LIBS -L$ngx_addon_dir/spnegohelp -Wl,-rpath $ngx_addon_dir/spnegohelp -lspnegohelp -lgssapi_krb5 -lkrb5 -lcom_err"
View
2  ngx_http_auth_spnego_module.c
@@ -476,7 +476,7 @@ ngx_http_auth_spnego_basic(ngx_http_request_t *r,
krb5_get_init_creds_opt_init(&gic_options);
- code = krb5_get_init_creds_password(kcontext, &creds, client, (const char *)r->headers_in.passwd.data, NULL, NULL, 0, NULL, &gic_options);
+ code = krb5_get_init_creds_password(kcontext, &creds, client, (char *)r->headers_in.passwd.data, NULL, NULL, 0, NULL, &gic_options);
krb5_free_cred_contents(kcontext, &creds);
Please sign in to comment.
Something went wrong with that request. Please try again.