diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-03-27 07:53:47 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-03-27 07:53:47 +0000 |
commit | 1e91cd0cf87b29899641585f46b0dcecaefd848e (patch) | |
tree | b6443aefe4f3f447a760d2962e208343dbf695b1 /source/lib | |
parent | 414d3fdc753b44262e9a281170d1058608d01bdf (diff) | |
download | samba-1e91cd0cf87b29899641585f46b0dcecaefd848e.tar.gz samba-1e91cd0cf87b29899641585f46b0dcecaefd848e.tar.xz samba-1e91cd0cf87b29899641585f46b0dcecaefd848e.zip |
Based on the detective work of Jianliang Lu <j.lu@tiesse.com>, allow yet
another NTLMv2 combination.
We should allow the NTLMv2 response to be calculated with either the domain
as supplied, or the domain in UPPER case (as we always did in the past).
As a client, we always UPPER case it (as per the spec), but we also
make sure to UPPER case the domain, when we send it. This should give
us maximum compatability.
Andrew Bartlett
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/talloc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/lib/talloc.c b/source/lib/talloc.c index 485dc28f31d..093a221fd3d 100644 --- a/source/lib/talloc.c +++ b/source/lib/talloc.c @@ -276,6 +276,24 @@ char *talloc_strdup(TALLOC_CTX *t, const char *p) return NULL; } +/** strdup_upper with a talloc */ +char *talloc_strdup_upper(TALLOC_CTX *t, const char *p) +{ + char *r; + if (p) { + char *q = strdup_upper(p); + if (q) { + r = talloc_strdup(t, q); + SAFE_FREE(q); + return r; + } else { + return NULL; + } + } else { + return NULL; + } +} + /** strdup_w with a talloc */ smb_ucs2_t *talloc_strdup_w(TALLOC_CTX *t, const smb_ucs2_t *p) { |