gss_rpc_upcall.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * linux/net/sunrpc/gss_rpc_upcall.h
  3. *
  4. * Copyright (C) 2012 Simo Sorce <simo@redhat.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. #ifndef _GSS_RPC_UPCALL_H
  21. #define _GSS_RPC_UPCALL_H
  22. #include <linux/sunrpc/gss_api.h>
  23. #include <linux/sunrpc/auth_gss.h>
  24. #include "gss_rpc_xdr.h"
  25. #include "../netns.h"
  26. struct gssp_upcall_data {
  27. struct xdr_netobj in_handle;
  28. struct gssp_in_token in_token;
  29. struct xdr_netobj out_handle;
  30. struct xdr_netobj out_token;
  31. struct rpcsec_gss_oid mech_oid;
  32. struct svc_cred creds;
  33. int found_creds;
  34. int major_status;
  35. int minor_status;
  36. };
  37. int gssp_accept_sec_context_upcall(struct net *net,
  38. struct gssp_upcall_data *data);
  39. void gssp_free_upcall_data(struct gssp_upcall_data *data);
  40. void init_gssp_clnt(struct sunrpc_net *);
  41. int set_gssp_clnt(struct net *);
  42. void clear_gssp_clnt(struct sunrpc_net *);
  43. #endif /* _GSS_RPC_UPCALL_H */