cifs_spnego.h 927 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: LGPL-2.1 */
  2. /*
  3. * SPNEGO upcall management for CIFS
  4. *
  5. * Copyright (c) 2007 Red Hat, Inc.
  6. * Author(s): Jeff Layton ([email protected])
  7. * Steve French ([email protected])
  8. *
  9. */
  10. #ifndef _CIFS_SPNEGO_H
  11. #define _CIFS_SPNEGO_H
  12. #define CIFS_SPNEGO_UPCALL_VERSION 2
  13. /*
  14. * The version field should always be set to CIFS_SPNEGO_UPCALL_VERSION.
  15. * The flags field is for future use. The request-key callout should set
  16. * sesskey_len and secblob_len, and then concatenate the SessKey+SecBlob
  17. * and stuff it in the data field.
  18. */
  19. struct cifs_spnego_msg {
  20. uint32_t version;
  21. uint32_t flags;
  22. uint32_t sesskey_len;
  23. uint32_t secblob_len;
  24. uint8_t data[1];
  25. };
  26. #ifdef __KERNEL__
  27. extern struct key_type cifs_spnego_key_type;
  28. extern struct key *cifs_get_spnego_key(struct cifs_ses *sesInfo,
  29. struct TCP_Server_Info *server);
  30. #endif /* KERNEL */
  31. #endif /* _CIFS_SPNEGO_H */