diff options
author | Simo Sorce <idra@samba.org> | 2012-03-31 21:37:56 -0400 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2012-04-12 12:06:42 +0200 |
commit | 88d5d5c4b458761fd77acdb72f09253413ac03e5 (patch) | |
tree | aaa10140705a3f5883aab6c0e5e1f64fae40c925 /auth/kerberos | |
parent | f116262a733cdf24c13e7c44a54736a2755f8335 (diff) | |
download | samba-88d5d5c4b458761fd77acdb72f09253413ac03e5.tar.gz samba-88d5d5c4b458761fd77acdb72f09253413ac03e5.tar.bz2 samba-88d5d5c4b458761fd77acdb72f09253413ac03e5.zip |
auth-krb: Nove oid packet check to gensec_util.
This is clearly a utiliy function generic to gensec. Also the 3 callers
had identical implementations. Provide a generic implementation for all
of them and avoid duplicating the code everywhere.
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'auth/kerberos')
-rw-r--r-- | auth/kerberos/gssapi_parse.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/auth/kerberos/gssapi_parse.c b/auth/kerberos/gssapi_parse.c index dadc58b4f8..f58bf3b070 100644 --- a/auth/kerberos/gssapi_parse.c +++ b/auth/kerberos/gssapi_parse.c @@ -95,23 +95,3 @@ bool gensec_gssapi_parse_krb5_wrap(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, D } -/* - check a GSS-API wrapper packet givin an expected OID -*/ -bool gensec_gssapi_check_oid(const DATA_BLOB *blob, const char *oid) -{ - bool ret; - struct asn1_data *data = asn1_init(NULL); - - if (!data) return false; - - asn1_load(data, *blob); - asn1_start_tag(data, ASN1_APPLICATION(0)); - asn1_check_OID(data, oid); - - ret = !data->has_error; - - asn1_free(data); - - return ret; -} |