summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samsync.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-11-17 12:27:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:55 -0500
commit91e94014beb145541c051b4df28dde7ad0899da5 (patch)
treef625c437a537e99697fa28cd30b118123090d35c /source4/torture/rpc/samsync.c
parent9aec081fd9f8fb46e7d97090f97a75ee5cbebde3 (diff)
downloadsamba-91e94014beb145541c051b4df28dde7ad0899da5.tar.gz
samba-91e94014beb145541c051b4df28dde7ad0899da5.tar.bz2
samba-91e94014beb145541c051b4df28dde7ad0899da5.zip
r3805: Fix the LSA portions of the RPC-SAMSYNC test - I was not using the LSA
secrets interface correctly. (New interface added). Andrew Bartlett (This used to be commit 994ac7f031e2b2d528595a4a0a446d92074d6ecf)
Diffstat (limited to 'source4/torture/rpc/samsync.c')
-rw-r--r--source4/torture/rpc/samsync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c
index 9b5df2b681..96c7846c59 100644
--- a/source4/torture/rpc/samsync.c
+++ b/source4/torture/rpc/samsync.c
@@ -583,9 +583,7 @@ static BOOL samsync_handle_secret(TALLOC_CTX *mem_ctx, struct samsync_state *sam
lsa_blob1.data = q.out.new_val->buf->data;
lsa_blob1.length = q.out.new_val->buf->length;
- lsa_blob_out = data_blob(NULL, lsa_blob1.length);
-
- sess_crypt_blob(&lsa_blob_out, &lsa_blob1, &session_key, 0);
+ lsa_blob_out = sess_decrypt_blob(mem_ctx, &lsa_blob1, &session_key);
if (new->secret.length != lsa_blob_out.length) {
printf("Returned secret %s doesn't match: %d != %d\n",