diff options
Diffstat (limited to 'src/lib/libcrypto/crypto/arc4random_win.h')
| -rw-r--r-- | src/lib/libcrypto/crypto/arc4random_win.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/libcrypto/crypto/arc4random_win.h b/src/lib/libcrypto/crypto/arc4random_win.h new file mode 100644 index 0000000000..7d01d42be5 --- /dev/null +++ b/src/lib/libcrypto/crypto/arc4random_win.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* $OpenBSD: arc4random_win.h,v 1.1 2014/07/18 02:05:55 deraadt Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | * Copyright (c) 1996, David Mazieres <dm@uun.org> | ||
| 5 | * Copyright (c) 2008, Damien Miller <djm@openbsd.org> | ||
| 6 | * Copyright (c) 2013, Markus Friedl <markus@openbsd.org> | ||
| 7 | * | ||
| 8 | * Permission to use, copy, modify, and distribute this software for any | ||
| 9 | * purpose with or without fee is hereby granted, provided that the above | ||
| 10 | * copyright notice and this permission notice appear in all copies. | ||
| 11 | * | ||
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 13 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 14 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 15 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 16 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 17 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 18 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 19 | */ | ||
| 20 | |||
| 21 | /* | ||
| 22 | * Stub functions for portability. | ||
| 23 | */ | ||
| 24 | |||
| 25 | static inline void * | ||
| 26 | _rs_allocate(size_t len) | ||
| 27 | { | ||
| 28 | return calloc(1, sizeof(*rs)); | ||
| 29 | } | ||
| 30 | |||
| 31 | static inline void | ||
| 32 | _rs_forkhandler(void) | ||
| 33 | { | ||
| 34 | } | ||
| 35 | |||
| 36 | static inline void | ||
| 37 | _rs_forkdetect(void) | ||
| 38 | { | ||
| 39 | } | ||
| 40 | |||
| 41 | static inline void | ||
| 42 | _rs_forkdetectsetup(struct _rs *rs, size_t len) | ||
| 43 | { | ||
| 44 | } | ||
| 45 | |||
