mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
auth/gensec: fix non-AES schannel seal
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14134 Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
7eae4280d2
commit
709d54d68a
@ -419,6 +419,15 @@ static NTSTATUS netsec_do_seal(struct schannel_state *state,
|
||||
ZERO_ARRAY(_sealing_key);
|
||||
return gnutls_error_to_ntstatus(rc, NT_STATUS_CRYPTO_SYSTEM_INVALID);
|
||||
}
|
||||
gnutls_cipher_deinit(cipher_hnd);
|
||||
rc = gnutls_cipher_init(&cipher_hnd,
|
||||
GNUTLS_CIPHER_ARCFOUR_128,
|
||||
&sealing_key,
|
||||
NULL);
|
||||
if (rc < 0) {
|
||||
ZERO_ARRAY(_sealing_key);
|
||||
return gnutls_error_to_ntstatus(rc, NT_STATUS_CRYPTO_SYSTEM_INVALID);
|
||||
}
|
||||
rc = gnutls_cipher_encrypt(cipher_hnd,
|
||||
data,
|
||||
length);
|
||||
|
@ -375,5 +375,4 @@
|
||||
^samba.tests.ntlmdisabled.python\(ktest\).python2.ntlmdisabled.NtlmDisabledTests.test_samr_change_password\(ktest\)
|
||||
^samba.tests.ntlmdisabled.python\(ad_dc_no_ntlm\).python3.ntlmdisabled.NtlmDisabledTests.test_ntlm_connection\(ad_dc_no_ntlm\)
|
||||
^samba.tests.ntlmdisabled.python\(ad_dc_no_ntlm\).python2.ntlmdisabled.NtlmDisabledTests.test_ntlm_connection\(ad_dc_no_ntlm\)
|
||||
^samba.unittests.schannel.torture_schannel_seal_rc4
|
||||
^samba.unittests.schannel.torture_schannel_seal_aes
|
||||
|
Loading…
Reference in New Issue
Block a user