summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 392fa38dc..f34619e4a 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openbsd-compat.h,v 1.58 2013/06/05 22:30:21 dtucker Exp $ */ 1/* $Id: openbsd-compat.h,v 1.60 2013/12/07 00:51:54 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved. 4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved.
@@ -44,6 +44,7 @@
44#include "vis.h" 44#include "vis.h"
45#include "getrrsetbyname.h" 45#include "getrrsetbyname.h"
46#include "sha2.h" 46#include "sha2.h"
47#include "blf.h"
47 48
48#ifndef HAVE_BASENAME 49#ifndef HAVE_BASENAME
49char *basename(const char *path); 50char *basename(const char *path);
@@ -161,9 +162,13 @@ int writev(int, struct iovec *, int);
161 162
162#ifndef HAVE_GETPEEREID 163#ifndef HAVE_GETPEEREID
163int getpeereid(int , uid_t *, gid_t *); 164int getpeereid(int , uid_t *, gid_t *);
164#endif 165#endif
165 166
166#ifndef HAVE_ARC4RANDOM 167#ifdef HAVE_ARC4RANDOM
168# ifndef HAVE_ARC4RANDOM_STIR
169# define arc4random_stir()
170# endif
171#else
167unsigned int arc4random(void); 172unsigned int arc4random(void);
168void arc4random_stir(void); 173void arc4random_stir(void);
169#endif /* !HAVE_ARC4RANDOM */ 174#endif /* !HAVE_ARC4RANDOM */
@@ -236,6 +241,11 @@ char *group_from_gid(gid_t, int);
236int timingsafe_bcmp(const void *, const void *, size_t); 241int timingsafe_bcmp(const void *, const void *, size_t);
237#endif 242#endif
238 243
244#ifndef HAVE_BCRYPT_PBKDF
245int bcrypt_pbkdf(const char *, size_t, const u_int8_t *, size_t,
246 u_int8_t *, size_t, unsigned int);
247#endif
248
239void *xmmap(size_t size); 249void *xmmap(size_t size);
240char *xcrypt(const char *password, const char *salt); 250char *xcrypt(const char *password, const char *salt);
241char *shadow_pw(struct passwd *pw); 251char *shadow_pw(struct passwd *pw);