s3:auth: Tidy up some of the API confusion in create_token_from_XXX() calls.
authorJeremy Allison <jra@samba.org>
Mon, 10 Dec 2012 21:22:10 +0000 (13:22 -0800)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 11 Dec 2012 19:04:25 +0000 (20:04 +0100)
commit0f75d9274cff7095dfab251307231a5a911f0c8d
treeb4243074f3edf1f2f5197c37322a3890150bd59c
parenta20c47410fb74716c0c8b2583fd4d0ae0145fd7d
s3:auth: Tidy up some of the API confusion in create_token_from_XXX() calls.

Based on Michaels example, split out the return of NT_STATUS_NO_MEMORY
on talloc fail from other possible errors. Allow the NTSTATUS return
to be the only valid indication of success in these calls.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Dec 11 20:04:25 CET 2012 on sn-devel-104
source3/auth/token_util.c