]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:gse: Use smb_gss_mech_import_cred() in gse_init_server()
authorAndreas Schneider <asn@samba.org>
Fri, 26 Apr 2024 08:54:47 +0000 (10:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 May 2024 10:18:31 +0000 (10:18 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/librpc/crypto/gse.c

index 8fff05d552a323a360a420b535779223ea3fbead..2432143c2498f818646d17d64043154a07a0edb7 100644 (file)
@@ -666,8 +666,9 @@ static NTSTATUS gse_init_server(struct gensec_security *gensec_security,
        }
 
        /* This creates a GSSAPI cred_id_t with the keytab set */
-       gss_maj = smb_gss_krb5_import_cred(&gss_min, gse_ctx->k5ctx,
+       gss_maj = smb_gss_mech_import_cred(&gss_min, gse_ctx->k5ctx,
                                           NULL, NULL, gse_ctx->keytab,
+                                          &gse_ctx->gss_mech,
                                           &gse_ctx->creds);
 
        if (gss_maj != 0) {