mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
0475c3655e
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>
41 lines
698 B
Groff
41 lines
698 B
Groff
GSSAPI ::=
|
|
[APPLICATION 0] IMPLICIT SEQUENCE {
|
|
thisMech
|
|
OBJECT IDENTIFIER ({cifs_gssapi_this_mech}),
|
|
negotiationToken
|
|
NegotiationToken
|
|
}
|
|
|
|
MechType ::= OBJECT IDENTIFIER ({cifs_neg_token_init_mech_type})
|
|
|
|
MechTypeList ::= SEQUENCE OF MechType
|
|
|
|
NegHints ::= SEQUENCE {
|
|
hintName
|
|
[0] GeneralString OPTIONAL,
|
|
hintAddress
|
|
[1] OCTET STRING OPTIONAL
|
|
}
|
|
|
|
NegTokenInit2 ::=
|
|
SEQUENCE {
|
|
mechTypes
|
|
[0] MechTypeList OPTIONAL,
|
|
reqFlags
|
|
[1] BIT STRING OPTIONAL,
|
|
mechToken
|
|
[2] OCTET STRING OPTIONAL,
|
|
negHints
|
|
[3] NegHints OPTIONAL,
|
|
mechListMIC
|
|
[3] OCTET STRING OPTIONAL
|
|
}
|
|
|
|
NegotiationToken ::=
|
|
CHOICE {
|
|
negTokenInit
|
|
[0] NegTokenInit2,
|
|
negTokenTarg
|
|
[1] ANY
|
|
}
|