1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r19664: fix compiler warnings...

should _krb5_find_type_in_ad() also take a const?

metze
(This used to be commit addc31bd93)
This commit is contained in:
Stefan Metzmacher 2006-11-11 15:11:21 +00:00 committed by Gerald (Jerry) Carter
parent d822b963f9
commit c779270116
4 changed files with 38 additions and 38 deletions

View File

@ -124,8 +124,8 @@ NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
struct PAC_DATA **pac_data_out, struct PAC_DATA **pac_data_out,
DATA_BLOB blob, DATA_BLOB blob,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
krb5_const_principal client_principal, krb5_const_principal client_principal,
time_t tgs_authtime, time_t tgs_authtime,
krb5_error_code *k5ret); krb5_error_code *k5ret);
@ -133,22 +133,22 @@ NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
struct PAC_LOGON_INFO **logon_info, struct PAC_LOGON_INFO **logon_info,
DATA_BLOB blob, DATA_BLOB blob,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
krb5_const_principal client_principal, krb5_const_principal client_principal,
time_t tgs_authtime, time_t tgs_authtime,
krb5_error_code *k5ret); krb5_error_code *k5ret);
krb5_error_code kerberos_encode_pac(TALLOC_CTX *mem_ctx, krb5_error_code kerberos_encode_pac(TALLOC_CTX *mem_ctx,
struct PAC_DATA *pac_data, struct PAC_DATA *pac_data,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
DATA_BLOB *pac) ; DATA_BLOB *pac);
krb5_error_code kerberos_create_pac(TALLOC_CTX *mem_ctx, krb5_error_code kerberos_create_pac(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info, struct auth_serversupplied_info *server_info,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
krb5_principal client_principal, krb5_principal client_principal,
time_t tgs_authtime, time_t tgs_authtime,
DATA_BLOB *pac); DATA_BLOB *pac);

View File

@ -35,7 +35,7 @@ static krb5_error_code check_pac_checksum(TALLOC_CTX *mem_ctx,
DATA_BLOB pac_data, DATA_BLOB pac_data,
struct PAC_SIGNATURE_DATA *sig, struct PAC_SIGNATURE_DATA *sig,
krb5_context context, krb5_context context,
krb5_keyblock *keyblock) const krb5_keyblock *keyblock)
{ {
krb5_error_code ret; krb5_error_code ret;
krb5_crypto crypto; krb5_crypto crypto;
@ -69,8 +69,8 @@ static krb5_error_code check_pac_checksum(TALLOC_CTX *mem_ctx,
struct PAC_DATA **pac_data_out, struct PAC_DATA **pac_data_out,
DATA_BLOB blob, DATA_BLOB blob,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
krb5_const_principal client_principal, krb5_const_principal client_principal,
time_t tgs_authtime, time_t tgs_authtime,
krb5_error_code *k5ret) krb5_error_code *k5ret)
@ -317,8 +317,8 @@ _PUBLIC_ NTSTATUS kerberos_pac_logon_info(TALLOC_CTX *mem_ctx,
struct PAC_LOGON_INFO **logon_info, struct PAC_LOGON_INFO **logon_info,
DATA_BLOB blob, DATA_BLOB blob,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
krb5_const_principal client_principal, krb5_const_principal client_principal,
time_t tgs_authtime, time_t tgs_authtime,
krb5_error_code *k5ret) krb5_error_code *k5ret)
@ -355,7 +355,7 @@ static krb5_error_code make_pac_checksum(TALLOC_CTX *mem_ctx,
DATA_BLOB *pac_data, DATA_BLOB *pac_data,
struct PAC_SIGNATURE_DATA *sig, struct PAC_SIGNATURE_DATA *sig,
krb5_context context, krb5_context context,
krb5_keyblock *keyblock) const krb5_keyblock *keyblock)
{ {
krb5_error_code ret; krb5_error_code ret;
krb5_crypto crypto; krb5_crypto crypto;
@ -399,8 +399,8 @@ static krb5_error_code make_pac_checksum(TALLOC_CTX *mem_ctx,
krb5_error_code kerberos_encode_pac(TALLOC_CTX *mem_ctx, krb5_error_code kerberos_encode_pac(TALLOC_CTX *mem_ctx,
struct PAC_DATA *pac_data, struct PAC_DATA *pac_data,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
DATA_BLOB *pac) DATA_BLOB *pac)
{ {
NTSTATUS nt_status; NTSTATUS nt_status;
@ -496,8 +496,8 @@ static krb5_error_code make_pac_checksum(TALLOC_CTX *mem_ctx,
krb5_error_code kerberos_create_pac(TALLOC_CTX *mem_ctx, krb5_error_code kerberos_create_pac(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info, struct auth_serversupplied_info *server_info,
krb5_context context, krb5_context context,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *service_keyblock, const krb5_keyblock *service_keyblock,
krb5_principal client_principal, krb5_principal client_principal,
time_t tgs_authtime, time_t tgs_authtime,
DATA_BLOB *pac) DATA_BLOB *pac)

View File

@ -38,8 +38,8 @@ struct _krb5_krb_auth_data;
static krb5_error_code samba_get_pac(krb5_context context, static krb5_error_code samba_get_pac(krb5_context context,
struct hdb_ldb_private *private, struct hdb_ldb_private *private,
krb5_principal client, krb5_principal client,
krb5_keyblock *krbtgt_keyblock, const krb5_keyblock *krbtgt_keyblock,
krb5_keyblock *server_keyblock, const krb5_keyblock *server_keyblock,
time_t tgs_authtime, time_t tgs_authtime,
krb5_data *pac) krb5_data *pac)
{ {
@ -150,11 +150,11 @@ static krb5_error_code wrap_pac(krb5_context context, krb5_data *pac, Authorizat
*/ */
krb5_error_code hdb_ldb_authz_data_as_req(krb5_context context, struct hdb_entry_ex *entry_ex, krb5_error_code hdb_ldb_authz_data_as_req(krb5_context context, struct hdb_entry_ex *entry_ex,
METHOD_DATA* pa_data_seq, METHOD_DATA* pa_data_seq,
time_t authtime, time_t authtime,
EncryptionKey *tgtkey, const EncryptionKey *tgtkey,
EncryptionKey *sessionkey, const EncryptionKey *sessionkey,
AuthorizationData **out) AuthorizationData **out)
{ {
krb5_error_code ret; krb5_error_code ret;
int i; int i;
@ -210,13 +210,13 @@ krb5_error_code hdb_ldb_authz_data_as_req(krb5_context context, struct hdb_entry
/* Resign (and reform, including possibly new groups) a PAC */ /* Resign (and reform, including possibly new groups) a PAC */
krb5_error_code hdb_ldb_authz_data_tgs_req(krb5_context context, struct hdb_entry_ex *entry_ex, krb5_error_code hdb_ldb_authz_data_tgs_req(krb5_context context, struct hdb_entry_ex *entry_ex,
krb5_principal client, krb5_principal client,
AuthorizationData *in, AuthorizationData *in,
time_t authtime, time_t authtime,
EncryptionKey *tgtkey, const EncryptionKey *tgtkey,
EncryptionKey *servicekey, const EncryptionKey *servicekey,
EncryptionKey *sessionkey, const EncryptionKey *sessionkey,
AuthorizationData **out) AuthorizationData **out)
{ {
NTSTATUS nt_status; NTSTATUS nt_status;
krb5_error_code ret; krb5_error_code ret;

View File

@ -31,17 +31,17 @@
krb5_error_code hdb_ldb_authz_data_as_req(krb5_context context, struct hdb_entry_ex *entry_ex, krb5_error_code hdb_ldb_authz_data_as_req(krb5_context context, struct hdb_entry_ex *entry_ex,
METHOD_DATA* pa_data_seq, METHOD_DATA* pa_data_seq,
time_t authtime, time_t authtime,
EncryptionKey *tgtkey, const EncryptionKey *tgtkey,
EncryptionKey *sessionkey, const EncryptionKey *sessionkey,
AuthorizationData **out); AuthorizationData **out);
krb5_error_code hdb_ldb_authz_data_tgs_req(krb5_context context, struct hdb_entry_ex *entry_ex, krb5_error_code hdb_ldb_authz_data_tgs_req(krb5_context context, struct hdb_entry_ex *entry_ex,
krb5_principal client, krb5_principal client,
AuthorizationData *in, AuthorizationData *in,
time_t authtime, time_t authtime,
EncryptionKey *tgtkey, const EncryptionKey *tgtkey,
EncryptionKey *servicekey, const EncryptionKey *servicekey,
EncryptionKey *sessionkey, const EncryptionKey *sessionkey,
AuthorizationData **out); AuthorizationData **out);
krb5_error_code hdb_ldb_check_client_access(krb5_context context, hdb_entry_ex *entry_ex, krb5_error_code hdb_ldb_check_client_access(krb5_context context, hdb_entry_ex *entry_ex,
HostAddresses *addresses); HostAddresses *addresses);