mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
auth/gensec: treat struct gensec_security_ops as const if possible.
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
@ -192,8 +192,8 @@ NTSTATUS ldapsrv_backend_Init(struct ldapsrv_connection *conn)
|
||||
|
||||
if (conn->server_credentials) {
|
||||
char **sasl_mechs = NULL;
|
||||
struct gensec_security_ops **backends = gensec_security_all();
|
||||
struct gensec_security_ops **ops
|
||||
const struct gensec_security_ops * const *backends = gensec_security_all();
|
||||
const struct gensec_security_ops **ops
|
||||
= gensec_use_kerberos_mechs(conn, backends, conn->server_credentials);
|
||||
unsigned int i, j = 0;
|
||||
for (i = 0; ops && ops[i]; i++) {
|
||||
|
Reference in New Issue
Block a user