cifs: decoding negTokenInit with generic ASN1 decoder
authorHyunchul Lee <hyc.lee@gmail.com>
Tue, 8 Jun 2021 14:53:14 +0000 (23:53 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:17 +0000 (21:28 -0500)
commit0475c3655e6ebd1d6d6f0e705eba97fce39a08e3
treea2740d544de7d8f7940c0fdf362f70dd0a7599f6
parent1023e90b733acd1da98ba7067aa0fa8b998eed19
cifs: decoding negTokenInit with generic ASN1 decoder

Decode negTokenInit with lib/asn1_decoder. For that,
add OIDs in linux/oid_registry.h and a negTokenInit
ASN1 file, "spnego_negtokeninit.asn1".
And define decoder's callback functions, which
are the gssapi_this_mech for checking SPENGO oid and
the neg_token_init_mech_type for getting authentication
mechanisms supported by a server.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/Kconfig
fs/cifs/Makefile
fs/cifs/asn1.c
fs/cifs/cifs_spnego_negtokeninit.asn1 [new file with mode: 0644]
include/linux/oid_registry.h