]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: Use gnutls_cipher_decrypt() in get_trustdom_auth_blob()
authorAndreas Schneider <asn@samba.org>
Fri, 6 Nov 2020 13:30:26 +0000 (14:30 +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>
source3/rpc_server/lsa/srv_lsa_nt.c

index 198387424e671900d5ce26de52455fe7f136dd18..e749caf2551849b17294e6a2ef14df22c2c91e08 100644 (file)
@@ -1726,7 +1726,7 @@ static NTSTATUS get_trustdom_auth_blob(struct pipes_struct *p,
                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);