The Samba-Bugzilla – Attachment 15485 Details for
Bug 14134
non-AES schannel broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch for master
patch (text/plain), 1.09 KB, created by
Guenther Deschner
on 2019-09-23 15:40:06 UTC
(
hide
)
Description:
proposed patch for master
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2019-09-23 15:40:06 UTC
Size:
1.09 KB
patch
obsolete
>From f773695c316f7e6a941b134f003a58b02c70afbe Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Fri, 20 Sep 2019 18:32:43 +0200 >Subject: [PATCH] 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> >--- > auth/gensec/schannel.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/auth/gensec/schannel.c b/auth/gensec/schannel.c >index 18ed92b703b..b5e6289ef3f 100644 >--- a/auth/gensec/schannel.c >+++ b/auth/gensec/schannel.c >@@ -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); >-- >2.21.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14134
: 15485 |
15520