summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-04-07 09:27:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:09 -0500
commit82285f2e0efe2b2c741268f8bbe80510e5b00f28 (patch)
treea22c5924c75ca799eb2be2370212fc86b04fbffc /source3/lib
parent1db9257c953c93c3f26596a535e4f26b609e7955 (diff)
downloadsamba-82285f2e0efe2b2c741268f8bbe80510e5b00f28.tar.gz
samba-82285f2e0efe2b2c741268f8bbe80510e5b00f28.tar.bz2
samba-82285f2e0efe2b2c741268f8bbe80510e5b00f28.zip
r104: Fix ntlm_auth by adding the new strhex_to_data_blob() call.
Andrew Bartlett (This used to be commit 0693b9e79fabd58491f8aaec11dbbc71fab34f80)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 2be8b7eb64..e4b07a4b73 100644
--- a/source3/lib/util_str.c
+++ b/source3/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.
*/