]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:rpc_server: Use gnutls_cipher_decrypt() in get_trustdom_auth_blob()
authorAndreas Schneider <asn@samba.org>
Fri, 6 Nov 2020 13:33:38 +0000 (14:33 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 9 Nov 2020 08:58:35 +0000 (08:58 +0000)
It doesn't matter for RC4, but just to be correct.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/rpc_server/lsa/dcesrv_lsa.c

index ebe259ff81e673222ecfc21cf1781ec56f111a3a..009e1189548025a1b96a8de3bd04348301cf7cba 100644 (file)
@@ -892,7 +892,7 @@ static NTSTATUS get_trustdom_auth_blob(struct dcesrv_call_state *dce_call,
                goto out;
        }
 
-       rc = gnutls_cipher_encrypt(cipher_hnd,
+       rc = gnutls_cipher_decrypt(cipher_hnd,
                                   auth_blob->data,
                                   auth_blob->length);
        gnutls_cipher_deinit(cipher_hnd);