cifsd: append ksmbd prefix into names for asn1 decoder
Because functions and variables generated from ASN1 compiler aren't static, append ksmbd prefix into thoses to avoid link errors. Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
3aefd54da5
commit
99f45259fe
|
@ -9,12 +9,12 @@ ksmbd-y := unicode.o auth.o vfs.o vfs_cache.o server.o buffer_pool.o \
|
|||
mgmt/ksmbd_ida.o mgmt/user_config.o mgmt/share_config.o \
|
||||
mgmt/tree_connect.o mgmt/user_session.o smb_common.o \
|
||||
transport_tcp.o transport_ipc.o smbacl.o smb2pdu.o \
|
||||
smb2ops.o smb2misc.o spnego_negtokeninit.asn1.o \
|
||||
spnego_negtokentarg.asn1.o asn1.o ndr.o
|
||||
smb2ops.o smb2misc.o ksmbd_spnego_negtokeninit.asn1.o \
|
||||
ksmbd_spnego_negtokentarg.asn1.o asn1.o ndr.o
|
||||
|
||||
$(obj)/asn1.o: $(obj)/spnego_negtokeninit.asn1.h $(obj)/spnego_negtokentarg.asn1.h
|
||||
$(obj)/asn1.o: $(obj)/ksmbd_spnego_negtokeninit.asn1.h $(obj)/ksmbd_spnego_negtokentarg.asn1.h
|
||||
|
||||
$(obj)/spnego_negtokeninit.asn1.o: $(obj)/spnego_negtokeninit.asn1.c $(obj)/spnego_negtokeninit.asn1.h
|
||||
$(obj)/spnego_negtokentarg.asn1.o: $(obj)/spnego_negtokentarg.asn1.c $(obj)/spnego_negtokentarg.asn1.h
|
||||
$(obj)/ksmbd_spnego_negtokeninit.asn1.o: $(obj)/ksmbd_spnego_negtokeninit.asn1.c $(obj)/ksmbd_spnego_negtokeninit.asn1.h
|
||||
$(obj)/ksmbd_spnego_negtokentarg.asn1.o: $(obj)/ksmbd_spnego_negtokentarg.asn1.c $(obj)/ksmbd_spnego_negtokentarg.asn1.h
|
||||
|
||||
ksmbd-$(CONFIG_SMB_SERVER_SMBDIRECT) += transport_rdma.o
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
#include "asn1.h"
|
||||
#include "connection.h"
|
||||
#include "auth.h"
|
||||
#include "spnego_negtokeninit.asn1.h"
|
||||
#include "spnego_negtokentarg.asn1.h"
|
||||
#include "ksmbd_spnego_negtokeninit.asn1.h"
|
||||
#include "ksmbd_spnego_negtokentarg.asn1.h"
|
||||
|
||||
#define SPNEGO_OID_LEN 7
|
||||
#define NTLMSSP_OID_LEN 10
|
||||
|
@ -119,7 +119,7 @@ int
|
|||
ksmbd_decode_negTokenInit(unsigned char *security_blob, int length,
|
||||
struct ksmbd_conn *conn)
|
||||
{
|
||||
return asn1_ber_decoder(&spnego_negtokeninit_decoder, conn,
|
||||
return asn1_ber_decoder(&ksmbd_spnego_negtokeninit_decoder, conn,
|
||||
security_blob, length);
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ int
|
|||
ksmbd_decode_negTokenTarg(unsigned char *security_blob, int length,
|
||||
struct ksmbd_conn *conn)
|
||||
{
|
||||
return asn1_ber_decoder(&spnego_negtokentarg_decoder, conn,
|
||||
return asn1_ber_decoder(&ksmbd_spnego_negtokentarg_decoder, conn,
|
||||
security_blob, length);
|
||||
}
|
||||
|
||||
|
@ -248,8 +248,8 @@ int build_spnego_ntlmssp_auth_blob(unsigned char **pbuffer, u16 *buflen,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int gssapi_this_mech(void *context, size_t hdrlen, unsigned char tag,
|
||||
const void *value, size_t vlen)
|
||||
int ksmbd_gssapi_this_mech(void *context, size_t hdrlen, unsigned char tag,
|
||||
const void *value, size_t vlen)
|
||||
{
|
||||
unsigned long *oid;
|
||||
size_t oidlen;
|
||||
|
@ -273,8 +273,9 @@ int gssapi_this_mech(void *context, size_t hdrlen, unsigned char tag,
|
|||
return err;
|
||||
}
|
||||
|
||||
int neg_token_init_mech_type(void *context, size_t hdrlen, unsigned char tag,
|
||||
const void *value, size_t vlen)
|
||||
int ksmbd_neg_token_init_mech_type(void *context, size_t hdrlen,
|
||||
unsigned char tag, const void *value,
|
||||
size_t vlen)
|
||||
{
|
||||
struct ksmbd_conn *conn = context;
|
||||
unsigned long *oid;
|
||||
|
@ -310,8 +311,9 @@ int neg_token_init_mech_type(void *context, size_t hdrlen, unsigned char tag,
|
|||
return -EBADMSG;
|
||||
}
|
||||
|
||||
int neg_token_init_mech_token(void *context, size_t hdrlen, unsigned char tag,
|
||||
const void *value, size_t vlen)
|
||||
int ksmbd_neg_token_init_mech_token(void *context, size_t hdrlen,
|
||||
unsigned char tag, const void *value,
|
||||
size_t vlen)
|
||||
{
|
||||
struct ksmbd_conn *conn = context;
|
||||
|
||||
|
@ -324,8 +326,9 @@ int neg_token_init_mech_token(void *context, size_t hdrlen, unsigned char tag,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int neg_token_targ_resp_token(void *context, size_t hdrlen, unsigned char tag,
|
||||
const void *value, size_t vlen)
|
||||
int ksmbd_neg_token_targ_resp_token(void *context, size_t hdrlen,
|
||||
unsigned char tag, const void *value,
|
||||
size_t vlen)
|
||||
{
|
||||
struct ksmbd_conn *conn = context;
|
||||
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
GSSAPI ::=
|
||||
[APPLICATION 0] IMPLICIT SEQUENCE {
|
||||
thisMech
|
||||
OBJECT IDENTIFIER ({ksmbd_gssapi_this_mech}),
|
||||
negotiationToken
|
||||
NegotiationToken
|
||||
}
|
||||
|
||||
MechType ::= OBJECT IDENTIFIER ({ksmbd_neg_token_init_mech_type})
|
||||
|
||||
MechTypeList ::= SEQUENCE OF MechType
|
||||
|
||||
NegTokenInit ::=
|
||||
SEQUENCE {
|
||||
mechTypes
|
||||
[0] MechTypeList,
|
||||
reqFlags
|
||||
[1] BIT STRING OPTIONAL,
|
||||
mechToken
|
||||
[2] OCTET STRING OPTIONAL ({ksmbd_neg_token_init_mech_token}),
|
||||
mechListMIC
|
||||
[3] OCTET STRING OPTIONAL
|
||||
}
|
||||
|
||||
NegotiationToken ::=
|
||||
CHOICE {
|
||||
negTokenInit
|
||||
[0] NegTokenInit,
|
||||
negTokenTarg
|
||||
[1] ANY
|
||||
}
|
|
@ -13,7 +13,7 @@ NegTokenTarg ::=
|
|||
supportedMech
|
||||
[1] OBJECT IDENTIFIER OPTIONAL,
|
||||
responseToken
|
||||
[2] OCTET STRING OPTIONAL ({neg_token_targ_resp_token}),
|
||||
[2] OCTET STRING OPTIONAL ({ksmbd_neg_token_targ_resp_token}),
|
||||
mechListMIC
|
||||
[3] OCTET STRING OPTIONAL
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
GSSAPI ::=
|
||||
[APPLICATION 0] IMPLICIT SEQUENCE {
|
||||
thisMech
|
||||
OBJECT IDENTIFIER ({gssapi_this_mech}),
|
||||
negotiationToken
|
||||
NegotiationToken
|
||||
}
|
||||
|
||||
MechType ::= OBJECT IDENTIFIER ({neg_token_init_mech_type})
|
||||
|
||||
MechTypeList ::= SEQUENCE OF MechType
|
||||
|
||||
NegTokenInit ::=
|
||||
SEQUENCE {
|
||||
mechTypes
|
||||
[0] MechTypeList,
|
||||
reqFlags
|
||||
[1] BIT STRING OPTIONAL,
|
||||
mechToken
|
||||
[2] OCTET STRING OPTIONAL ({neg_token_init_mech_token}),
|
||||
mechListMIC
|
||||
[3] OCTET STRING OPTIONAL
|
||||
}
|
||||
|
||||
NegTokenTarg ::=
|
||||
SEQUENCE {
|
||||
negResult
|
||||
[0] ENUMERATED OPTIONAL,
|
||||
supportedMech
|
||||
[1] OBJECT IDENTIFIER OPTIONAL,
|
||||
responseToken
|
||||
[2] OCTET STRING OPTIONAL ({neg_token_targ_resp_token}),
|
||||
mechListMIC
|
||||
[3] OCTET STRING OPTIONAL
|
||||
}
|
||||
|
||||
NegotiationToken ::=
|
||||
CHOICE {
|
||||
negTokenInit
|
||||
[0] NegTokenInit,
|
||||
negTokenTarg
|
||||
[1] ANY
|
||||
}
|
Loading…
Reference in New Issue