1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

auth/kerberos: Remove unused TALLOC_CTX argument to check_pac_checksum

This commit is contained in:
Andrew Bartlett 2012-01-11 18:07:41 +11:00
parent 49f8113fab
commit b69c40ffce
3 changed files with 5 additions and 9 deletions

View File

@ -28,8 +28,7 @@
#include "librpc/gen_ndr/ndr_krb5pac.h" #include "librpc/gen_ndr/ndr_krb5pac.h"
#include "libcli/auth/krb5_wrap.h" #include "libcli/auth/krb5_wrap.h"
krb5_error_code check_pac_checksum(TALLOC_CTX *mem_ctx, krb5_error_code check_pac_checksum(DATA_BLOB pac_data,
DATA_BLOB pac_data,
struct PAC_SIGNATURE_DATA *sig, struct PAC_SIGNATURE_DATA *sig,
krb5_context context, krb5_context context,
const krb5_keyblock *keyblock) const krb5_keyblock *keyblock)
@ -304,8 +303,7 @@ NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
if (service_keyblock) { if (service_keyblock) {
/* verify by service_key */ /* verify by service_key */
ret = check_pac_checksum(tmp_ctx, ret = check_pac_checksum(modified_pac_blob, srv_sig_ptr,
modified_pac_blob, srv_sig_ptr,
context, context,
service_keyblock); service_keyblock);
if (ret) { if (ret) {
@ -316,8 +314,7 @@ NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
if (krbtgt_keyblock) { if (krbtgt_keyblock) {
/* verify the service key checksum by krbtgt_key */ /* verify the service key checksum by krbtgt_key */
ret = check_pac_checksum(tmp_ctx, ret = check_pac_checksum(srv_sig_ptr->signature, kdc_sig_ptr,
srv_sig_ptr->signature, kdc_sig_ptr,
context, krbtgt_keyblock); context, krbtgt_keyblock);
if (ret) { if (ret) {
DEBUG(1, ("PAC Decode: Failed to verify the KDC signature: %s\n", DEBUG(1, ("PAC Decode: Failed to verify the KDC signature: %s\n",

View File

@ -58,8 +58,7 @@ char *gssapi_error_string(TALLOC_CTX *mem_ctx,
const gss_OID mech); const gss_OID mech);
char *smb_get_krb5_error_message(krb5_context context, krb5_error_code code, TALLOC_CTX *mem_ctx); char *smb_get_krb5_error_message(krb5_context context, krb5_error_code code, TALLOC_CTX *mem_ctx);
krb5_error_code check_pac_checksum(TALLOC_CTX *mem_ctx, krb5_error_code check_pac_checksum(DATA_BLOB pac_data,
DATA_BLOB pac_data,
struct PAC_SIGNATURE_DATA *sig, struct PAC_SIGNATURE_DATA *sig,
krb5_context context, krb5_context context,
const krb5_keyblock *keyblock); const krb5_keyblock *keyblock);

View File

@ -489,7 +489,7 @@ int kdc_check_pac(krb5_context context,
keyblock = key->key; keyblock = key->key;
return check_pac_checksum(NULL, srv_sig, kdc_sig, return check_pac_checksum(srv_sig, kdc_sig,
context, &keyblock); context, &keyblock);
} }