diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-08-10 04:28:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:48 -0500 |
commit | 06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba (patch) | |
tree | b5f72fb2c4f8fa7addbcad2912db34754aa47183 /source4/libcli | |
parent | bf85647095b8d9666c5c06d11da3676ce675f6f3 (diff) | |
download | samba-06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba.tar.gz samba-06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba.tar.bz2 samba-06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba.zip |
r1685: Add the ability to lookup RPC auth types for the RPC-MGMT torture test.
Andrew Bartlett
(This used to be commit 0e4e3647e848605416fe79c742ac84d84dc4357c)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/auth/gensec.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c index e91497bee4..d635378117 100644 --- a/source4/libcli/auth/gensec.c +++ b/source4/libcli/auth/gensec.c @@ -212,6 +212,17 @@ NTSTATUS gensec_start_mech_by_authtype(struct gensec_security *gensec_security, return gensec_start_mech(gensec_security); } +const char *gensec_get_name_by_authtype(uint8_t authtype) +{ + const struct gensec_security_ops *ops; + ops = gensec_security_by_authtype(authtype); + if (ops) { + return ops->name; + } + return NULL; +} + + /** * Start a GENSEC sub-mechanism by OID, used in SPNEGO * |