diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-04-07 09:27:50 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-04-07 09:27:50 +0000 |
commit | 3ae9d1b8f10f160a24899c66c67e46ea85b6eaf0 (patch) | |
tree | e78d751fcecb8c220e28eaa6738bb2a80b83034c /source/lib | |
parent | 86ba853b57a3d0eecee8826188e6359492735e2d (diff) | |
download | samba-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.c | 11 |
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. */ |