2018-06-27 09:40:21 -04:00
|
|
|
/* Copyright (c) 2003-2004, Roger Dingledine
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 12:33:22 -05:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-06-27 09:40:21 -04:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
2018-07-01 20:22:55 -04:00
|
|
|
/**
|
|
|
|
* \file userdb.h
|
|
|
|
*
|
|
|
|
* \brief Header for userdb.c
|
|
|
|
**/
|
|
|
|
|
2018-06-27 09:40:21 -04:00
|
|
|
#ifndef TOR_USERDB_H
|
|
|
|
#define TOR_USERDB_H
|
|
|
|
|
|
|
|
#include "orconfig.h"
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
struct passwd;
|
|
|
|
const struct passwd *tor_getpwnam(const char *username);
|
|
|
|
const struct passwd *tor_getpwuid(uid_t uid);
|
|
|
|
char *get_user_homedir(const char *username);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|