mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
s4:torture: auth/pac.c: use Kerberos wrapper for krb5_keyblock_init
Signed-off-by: Simo Sorce <idra@samba.org>
This commit is contained in:
parent
4875a12ab8
commit
21d383d04f
@ -68,7 +68,7 @@ static bool torture_pac_self_check(struct torture_context *tctx)
|
||||
generate_random_buffer(server_bytes, 16);
|
||||
generate_random_buffer(krbtgt_bytes, 16);
|
||||
|
||||
ret = krb5_keyblock_init(smb_krb5_context->krb5_context,
|
||||
ret = smb_krb5_keyblock_init_contents(smb_krb5_context->krb5_context,
|
||||
ENCTYPE_ARCFOUR_HMAC,
|
||||
server_bytes, sizeof(server_bytes),
|
||||
&server_keyblock);
|
||||
@ -77,7 +77,7 @@ static bool torture_pac_self_check(struct torture_context *tctx)
|
||||
smb_get_krb5_error_message(smb_krb5_context->krb5_context,
|
||||
ret, mem_ctx)));
|
||||
|
||||
ret = krb5_keyblock_init(smb_krb5_context->krb5_context,
|
||||
ret = smb_krb5_keyblock_init_contents(smb_krb5_context->krb5_context,
|
||||
ENCTYPE_ARCFOUR_HMAC,
|
||||
krbtgt_bytes, sizeof(krbtgt_bytes),
|
||||
&krbtgt_keyblock);
|
||||
@ -348,7 +348,7 @@ static bool torture_pac_saved_check(struct torture_context *tctx)
|
||||
torture_fail(tctx, "(saved test) Could not interpret krbsrv key");
|
||||
}
|
||||
|
||||
ret = krb5_keyblock_init(smb_krb5_context->krb5_context,
|
||||
ret = smb_krb5_keyblock_init_contents(smb_krb5_context->krb5_context,
|
||||
ENCTYPE_ARCFOUR_HMAC,
|
||||
krbsrv_bytes->hash, sizeof(krbsrv_bytes->hash),
|
||||
&server_keyblock);
|
||||
@ -359,7 +359,7 @@ static bool torture_pac_saved_check(struct torture_context *tctx)
|
||||
ret, mem_ctx)));
|
||||
|
||||
if (krbtgt_bytes) {
|
||||
ret = krb5_keyblock_init(smb_krb5_context->krb5_context,
|
||||
ret = smb_krb5_keyblock_init_contents(smb_krb5_context->krb5_context,
|
||||
ENCTYPE_ARCFOUR_HMAC,
|
||||
krbtgt_bytes->hash, sizeof(krbtgt_bytes->hash),
|
||||
&krbtgt_keyblock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user