gss_rpc_upcall.h 875 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * linux/net/sunrpc/gss_rpc_upcall.h
  4. *
  5. * Copyright (C) 2012 Simo Sorce <simo@redhat.com>
  6. */
  7. #ifndef _GSS_RPC_UPCALL_H
  8. #define _GSS_RPC_UPCALL_H
  9. #include <linux/sunrpc/gss_api.h>
  10. #include <linux/sunrpc/auth_gss.h>
  11. #include "gss_rpc_xdr.h"
  12. #include "../netns.h"
  13. struct gssp_upcall_data {
  14. struct xdr_netobj in_handle;
  15. struct gssp_in_token in_token;
  16. struct xdr_netobj out_handle;
  17. struct xdr_netobj out_token;
  18. struct rpcsec_gss_oid mech_oid;
  19. struct svc_cred creds;
  20. int found_creds;
  21. int major_status;
  22. int minor_status;
  23. };
  24. int gssp_accept_sec_context_upcall(struct net *net,
  25. struct gssp_upcall_data *data);
  26. void gssp_free_upcall_data(struct gssp_upcall_data *data);
  27. void init_gssp_clnt(struct sunrpc_net *);
  28. int set_gssp_clnt(struct net *);
  29. void clear_gssp_clnt(struct sunrpc_net *);
  30. #endif /* _GSS_RPC_UPCALL_H */