diff options
author | Damien Miller <djm@mindrot.org> | 2015-11-29 23:45:29 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-11-29 23:45:54 +0100 |
commit | 14c887c8393adde2d9fd437d498be30f8c98535c (patch) | |
tree | 7cb75dce1981a58542c11a65bb6986f9ca916212 /openbsd-compat/openbsd-compat.h | |
parent | upstream commit (diff) | |
download | openssh-14c887c8393adde2d9fd437d498be30f8c98535c.tar.xz openssh-14c887c8393adde2d9fd437d498be30f8c98535c.zip |
stub for pledge(2) for systems that lack it
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 8cc8a11b7..be7b6877e 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -264,6 +264,10 @@ int bcrypt_pbkdf(const char *, size_t, const u_int8_t *, size_t, void explicit_bzero(void *p, size_t n); #endif +#ifndef HAVE_PLEDGE +int pledge(const char *promises, const char *paths[]); +#endif /* HAVE_PLEDGE */ + void *xmmap(size_t size); char *xcrypt(const char *password, const char *salt); char *shadow_pw(struct passwd *pw); |