Skip to content

Commit

Permalink
Fix build and link with MIT Kerberos 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mclap committed Feb 15, 2012
1 parent 6c4193f commit c2035a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion ngx_http_auth_spnego_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c2035a7

Please sign in to comment.