logo

skeud

Simple and portable utilities to deal with user accounts (su, login)git clone https://anongit.hacktivis.me/git/skeud.git/

common.h (483B)


  1. // SPDX-FileCopyrightText: 2022 Haelwenn (lanodan) Monnier <contact+skeud@hacktivis.me>
  2. // SPDX-License-Identifier: MPL-2.0
  3. #include <stdbool.h> // bool
  4. #include <sys/types.h> // ssize_t
  5. extern const char *argv0;
  6. #define strlen0(str) str ? strlen(str) : 0
  7. int skeud_err(const char *errmsg, int err);
  8. bool hash_match(const char *a, size_t alen, const char *b, size_t blen);
  9. bool skeud_crypt_check(const char *hash, const char *password);
  10. ssize_t skeud_getpass(char **password);