mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
stub for pledge(2) for systems that lack it
This commit is contained in:
parent
452c0b6af5
commit
14c887c839
14
openbsd-compat/bsd-pledge.c
Normal file
14
openbsd-compat/bsd-pledge.c
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/* Placed in the public domain. */
|
||||||
|
|
||||||
|
#include "includes.h"
|
||||||
|
|
||||||
|
#ifndef HAVE_PLEDGE
|
||||||
|
|
||||||
|
/* Stub; real implementations wanted. */
|
||||||
|
int
|
||||||
|
pledge(const char *promises, const char *paths[])
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_PLEDGE */
|
@ -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);
|
void explicit_bzero(void *p, size_t n);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_PLEDGE
|
||||||
|
int pledge(const char *promises, const char *paths[]);
|
||||||
|
#endif /* HAVE_PLEDGE */
|
||||||
|
|
||||||
void *xmmap(size_t size);
|
void *xmmap(size_t size);
|
||||||
char *xcrypt(const char *password, const char *salt);
|
char *xcrypt(const char *password, const char *salt);
|
||||||
char *shadow_pw(struct passwd *pw);
|
char *shadow_pw(struct passwd *pw);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user