FreeBSD Bugzilla – Attachment 231941 Details for
Bug 261810
www/nginx: Fails to run with GSSAPI_HEIMDAL=ON: ngx_http_auth_spnego_module.so: Undefined symbol "__gss_krb5_mechanism_oid_desc")
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix Heimdal build
spnego-http-auth-nginx-module.c.patch (text/plain), 2.57 KB, created by
Igor Malyshev
on 2022-02-19 12:33:04 UTC
(
hide
)
Description:
Fix Heimdal build
Filename:
MIME Type:
Creator:
Igor Malyshev
Created:
2022-02-19 12:33:04 UTC
Size:
2.57 KB
patch
obsolete
>diff --git a/ngx_http_auth_spnego_module.c b/ngx_http_auth_spnego_module.c >index 24847f3..b25c7c1 100644 >--- a/ngx_http_auth_spnego_module.c >+++ b/ngx_http_auth_spnego_module.c >@@ -63,6 +63,11 @@ > #define spnego_log_error(fmt, args...) \ > ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, fmt, ##args) > >+#ifndef krb5_realm_length >+#define krb5_realm_length(r) ((r).length) >+#define krb5_realm_data(r) ((r).data) >+#endif >+ > /* Module handler */ > static ngx_int_t ngx_http_auth_spnego_handler(ngx_http_request_t *); > >@@ -1195,12 +1200,12 @@ static krb5_error_code ngx_http_auth_spnego_verify_server_credentials( > } > > size_t tgs_principal_name_size = >- (ngx_strlen(KRB5_TGS_NAME) + (principal->realm.length * 2) + 2) + 1; >+ (ngx_strlen(KRB5_TGS_NAME) + (krb5_realm_length(principal->realm) * 2) + 2) + 1; > tgs_principal_name = (char *)ngx_pcalloc(r->pool, tgs_principal_name_size); > ngx_snprintf((u_char *)tgs_principal_name, tgs_principal_name_size, >- "%s/%*s@%*s", KRB5_TGS_NAME, principal->realm.length, >- principal->realm.data, principal->realm.length, >- principal->realm.data); >+ "%s/%*s@%*s", KRB5_TGS_NAME, krb5_realm_length(principal->realm), >+ krb5_realm_data(principal->realm), krb5_realm_length(principal->realm), >+ krb5_realm_data(principal->realm)); > > if ((kerr = krb5_parse_name(kcontext, tgs_principal_name, > &match_creds.server))) { >@@ -1341,13 +1346,13 @@ static ngx_int_t ngx_http_auth_spnego_obtain_server_credentials( > krb5_get_init_creds_opt_set_forwardable(&gicopts, 1); > > size_t tgs_principal_name_size = >- (ngx_strlen(KRB5_TGS_NAME) + (principal->realm.length * 2) + 2) + 1; >+ (ngx_strlen(KRB5_TGS_NAME) + (krb5_realm_length(principal->realm) * 2) + 2) + 1; > tgs_principal_name = (char *)ngx_pcalloc(r->pool, tgs_principal_name_size); > > ngx_snprintf((u_char *)tgs_principal_name, tgs_principal_name_size, >- "%s/%*s@%*s", KRB5_TGS_NAME, principal->realm.length, >- principal->realm.data, principal->realm.length, >- principal->realm.data); >+ "%s/%*s@%*s", KRB5_TGS_NAME, krb5_realm_length(principal->realm), >+ krb5_realm_data(principal->realm), krb5_realm_length(principal->realm), >+ krb5_realm_data(principal->realm)); > > kerr = krb5_get_init_creds_keytab(kcontext, &creds, principal, keytab, 0, > tgs_principal_name, &gicopts);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 261810
:
231695
| 231941