summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-04-07 09:27:50 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-04-07 09:27:50 +0000
commit3ae9d1b8f10f160a24899c66c67e46ea85b6eaf0 (patch)
treee78d751fcecb8c220e28eaa6738bb2a80b83034c /source/lib
parent86ba853b57a3d0eecee8826188e6359492735e2d (diff)
downloadsamba-3ae9d1b8f10f160a24899c66c67e46ea85b6eaf0.tar.gz
samba-3ae9d1b8f10f160a24899c66c67e46ea85b6eaf0.tar.xz
samba-3ae9d1b8f10f160a24899c66c67e46ea85b6eaf0.zip
r104: Fix ntlm_auth by adding the new strhex_to_data_blob() call.
Andrew Bartlett
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util_str.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/lib/util_str.c b/source/lib/util_str.c
index 2be8b7eb64c..e4b07a4b731 100644
--- a/source/lib/util_str.c
+++ b/source/lib/util_str.c
@@ -794,6 +794,17 @@ size_t strhex_to_str(char *p, size_t len, const char *strhex)
return num_chars;
}
+DATA_BLOB strhex_to_data_blob(const char *strhex)
+{
+ DATA_BLOB ret_blob = data_blob(NULL, strlen(strhex)/2+1);
+
+ ret_blob.length = strhex_to_str(ret_blob.data,
+ strlen(strhex),
+ strhex);
+
+ return ret_blob;
+}
+
/**
* Routine to print a buffer as HEX digits, into an allocated string.
*/