shellmatta_auth.h 966 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2022 Stefan Strobel <stefan.strobel@shimatta.net>
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file shellmatta_auth.c
  10. * @brief simple authentication method
  11. * @author Stefan Strobel <stefan.strobel@shimatta.net>
  12. */
  13. /**
  14. * @addtogroup shellmatta_auth
  15. * @{
  16. */
  17. #ifndef _SHELLMATTA_AUTH_H_
  18. #define _SHELLMATTA_AUTH_H_
  19. #include "shellmatta.h"
  20. #include <stdint.h>
  21. /** @brief login command to enable a user to login */
  22. extern const shellmatta_cmd_t shellmatta_auth_loginCmd;
  23. /** @brief logout command */
  24. extern const shellmatta_cmd_t shellmatta_auth_logoutCmd;
  25. shellmatta_retCode_t shellmatta_auth_is_cmd_permitted(const shellmatta_instance_t *inst,
  26. shellmatta_cmd_t *cmd);
  27. #endif
  28. /** @} */