Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d4e0c4b2
Commit
d4e0c4b2
authored
May 20, 2004
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPCSEC_GSS: Move EXPORT_SYMBOL's to place where functions
are defined. Patch by Bruce Fields
parent
47737de1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
1 deletion
+34
-1
net/sunrpc/auth_gss/Makefile
net/sunrpc/auth_gss/Makefile
+1
-1
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/auth_gss/auth_gss.c
+2
-0
net/sunrpc/auth_gss/gss_generic_token.c
net/sunrpc/auth_gss/gss_generic_token.c
+7
-0
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_krb5_crypto.c
+6
-0
net/sunrpc/auth_gss/gss_mech_switch.c
net/sunrpc/auth_gss/gss_mech_switch.c
+16
-0
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/auth_gss/svcauth_gss.c
+2
-0
No files found.
net/sunrpc/auth_gss/Makefile
View file @
d4e0c4b2
...
...
@@ -5,7 +5,7 @@
obj-$(CONFIG_SUNRPC_GSS)
+=
auth_rpcgss.o
auth_rpcgss-objs
:=
auth_gss.o gss_generic_token.o
\
sunrpcgss_syms.o
gss_mech_switch.o svcauth_gss.o gss_krb5_crypto.o
gss_mech_switch.o svcauth_gss.o gss_krb5_crypto.o
obj-$(CONFIG_RPCSEC_GSS_KRB5)
+=
rpcsec_gss_krb5.o
...
...
net/sunrpc/auth_gss/auth_gss.c
View file @
d4e0c4b2
...
...
@@ -132,6 +132,8 @@ print_hexl(u32 *p, u_int length, u_int offset)
}
}
EXPORT_SYMBOL
(
print_hexl
);
static
inline
struct
gss_cl_ctx
*
gss_get_ctx
(
struct
gss_cl_ctx
*
ctx
)
{
...
...
net/sunrpc/auth_gss/gss_generic_token.c
View file @
d4e0c4b2
...
...
@@ -32,6 +32,7 @@
*/
#include <linux/types.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/sunrpc/sched.h>
...
...
@@ -151,6 +152,8 @@ g_token_size(struct xdr_netobj *mech, unsigned int body_size)
return
(
1
+
der_length_size
(
body_size
)
+
body_size
);
}
EXPORT_SYMBOL
(
g_token_size
);
/* fills in a buffer with the token header. The buffer is assumed to
be the right size. buf is advanced past the token header */
...
...
@@ -164,6 +167,8 @@ g_make_token_header(struct xdr_netobj *mech, int body_size, unsigned char **buf)
TWRITE_STR
(
*
buf
,
mech
->
data
,
((
int
)
mech
->
len
));
}
EXPORT_SYMBOL
(
g_make_token_header
);
/*
* Given a buffer containing a token, reads and verifies the token,
* leaving buf advanced past the token header, and setting body_size
...
...
@@ -226,6 +231,8 @@ g_verify_token_header(struct xdr_netobj *mech, int *body_size,
return
(
ret
);
}
EXPORT_SYMBOL
(
g_verify_token_header
);
/* Given a buffer containing a token, returns a copy of the mech oid in
* the parameter mech. */
u32
...
...
net/sunrpc/auth_gss/gss_krb5_crypto.c
View file @
d4e0c4b2
...
...
@@ -88,6 +88,8 @@ krb5_encrypt(
return
(
ret
);
}
EXPORT_SYMBOL
(
krb5_encrypt
);
u32
krb5_decrypt
(
struct
crypto_tfm
*
tfm
,
...
...
@@ -128,6 +130,8 @@ krb5_decrypt(
return
(
ret
);
}
EXPORT_SYMBOL
(
krb5_decrypt
);
void
buf_to_sg
(
struct
scatterlist
*
sg
,
char
*
ptr
,
int
len
)
{
sg
->
page
=
virt_to_page
(
ptr
);
...
...
@@ -201,3 +205,5 @@ make_checksum(s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body,
crypto_free_tfm
(
tfm
);
return
code
;
}
EXPORT_SYMBOL
(
make_checksum
);
net/sunrpc/auth_gss/gss_mech_switch.c
View file @
d4e0c4b2
...
...
@@ -119,6 +119,8 @@ gss_mech_register(struct gss_api_mech *gm)
return
0
;
}
EXPORT_SYMBOL
(
gss_mech_register
);
void
gss_mech_unregister
(
struct
gss_api_mech
*
gm
)
{
...
...
@@ -129,6 +131,8 @@ gss_mech_unregister(struct gss_api_mech *gm)
gss_mech_free
(
gm
);
}
EXPORT_SYMBOL
(
gss_mech_unregister
);
struct
gss_api_mech
*
gss_mech_get
(
struct
gss_api_mech
*
gm
)
{
...
...
@@ -136,6 +140,8 @@ gss_mech_get(struct gss_api_mech *gm)
return
gm
;
}
EXPORT_SYMBOL
(
gss_mech_get
);
struct
gss_api_mech
*
gss_mech_get_by_name
(
char
*
name
)
{
...
...
@@ -155,6 +161,8 @@ gss_mech_get_by_name(char *name)
}
EXPORT_SYMBOL
(
gss_mech_get_by_name
);
static
inline
int
mech_supports_pseudoflavor
(
struct
gss_api_mech
*
gm
,
u32
pseudoflavor
)
{
...
...
@@ -187,6 +195,8 @@ gss_mech_get_by_pseudoflavor(u32 pseudoflavor)
return
gm
;
}
EXPORT_SYMBOL
(
gss_mech_get_by_pseudoflavor
);
u32
gss_pseudoflavor_to_service
(
struct
gss_api_mech
*
gm
,
u32
pseudoflavor
)
{
...
...
@@ -199,6 +209,8 @@ gss_pseudoflavor_to_service(struct gss_api_mech *gm, u32 pseudoflavor)
return
0
;
}
EXPORT_SYMBOL
(
gss_pseudoflavor_to_service
);
char
*
gss_service_to_auth_domain_name
(
struct
gss_api_mech
*
gm
,
u32
service
)
{
...
...
@@ -211,12 +223,16 @@ gss_service_to_auth_domain_name(struct gss_api_mech *gm, u32 service)
return
NULL
;
}
EXPORT_SYMBOL
(
gss_service_to_auth_domain_name
);
void
gss_mech_put
(
struct
gss_api_mech
*
gm
)
{
module_put
(
gm
->
gm_owner
);
}
EXPORT_SYMBOL
(
gss_mech_put
);
/* The mech could probably be determined from the token instead, but it's just
* as easy for now to pass it in. */
u32
...
...
net/sunrpc/auth_gss/svcauth_gss.c
View file @
d4e0c4b2
...
...
@@ -664,6 +664,8 @@ svcauth_gss_register_pseudoflavor(u32 pseudoflavor, char * name)
return
stat
;
}
EXPORT_SYMBOL
(
svcauth_gss_register_pseudoflavor
);
static
inline
int
read_u32_from_xdr_buf
(
struct
xdr_buf
*
buf
,
int
base
,
u32
*
obj
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment