From a0e44c30e21013f0136ddefc1bbbdc020413e749 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 3 Feb 2012 03:27:19 +0100 Subject: lib/util: Add hex_encode_buf Autobuild-User: Volker Lendecke Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104 --- source3/selftest/tests.py | 1 + source3/torture/torture.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) (limited to 'source3') diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 6a3ccb9877..ce6d964703 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -107,6 +107,7 @@ local_tests=[ "LOCAL-TEVENT-SELECT", "LOCAL-CONVERT-STRING", "LOCAL-CONV-AUTH-INFO", + "LOCAL-hex_encode_buf", "LOCAL-sprintf_append"] for t in local_tests: diff --git a/source3/torture/torture.c b/source3/torture/torture.c index e4ce91338f..b14f9ed873 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -8693,6 +8693,26 @@ fail: return result; } +static bool run_local_hex_encode_buf(int dummy) +{ + char buf[17]; + uint8_t src[8]; + int i; + + for (i=0; i