diff options
author | Michael Weiser <michael.weiser@atos.net> | 2021-10-26 11:11:48 +0200 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2022-04-29 15:07:49 -0700 |
commit | 29816863ca906339e65389bffebe9c3517240335 (patch) | |
tree | c43edd7390319cb25343ff92229c8c24c1e54e9a /cifs.upcall.c | |
parent | 8a288d65f2a637b8569246593baecbe6488e2589 (diff) | |
download | cifs-utils-29816863ca906339e65389bffebe9c3517240335.tar.gz cifs-utils-29816863ca906339e65389bffebe9c3517240335.tar.bz2 cifs-utils-29816863ca906339e65389bffebe9c3517240335.zip |
cifs.upcall: Switch to RFC principal type naming
Switch from old-style MIT krb5 gss_nt_service_name principal type
constant name to the now preferred GSS_C_NT_HOSTBASED_SERVICE.
Signed-off-by: Michael Weiser <michael.weiser@atos.net>
Diffstat (limited to 'cifs.upcall.c')
-rw-r--r-- | cifs.upcall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c index 5e7c0a1..7341c2f 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -798,7 +798,7 @@ cifs_gss_get_req(const char *host, DATA_BLOB *mechtoken, DATA_BLOB *sess_key) target_name_buf.length = service_name_len; maj_stat = gss_import_name(&min_stat, &target_name_buf, - (gss_OID)gss_nt_service_name, &target_name); + GSS_C_NT_HOSTBASED_SERVICE, &target_name); free(service_name); if (GSS_ERROR(maj_stat)) { cifs_gss_display_status("gss_import_name", maj_stat, min_stat); |