VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/crypto/rand/rand_deprecated.c@ 100947

Last change on this file since 100947 was 94320, checked in by vboxsync, 3 years ago

libs/openssl-3.0.1: Export to OSE and fix copyright headers in Makefiles, bugref:10128

File size: 818 bytes
Line 
1/*
2 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#include <e_os.h>
11#include <openssl/macros.h>
12#include <openssl/rand.h>
13
14#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
15# include <windows.h>
16# if OPENSSL_API_COMPAT < 0x10100000L
17
18# define DEPRECATED_RAND_FUNCTIONS_DEFINED
19
20int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam)
21{
22 RAND_poll();
23 return RAND_status();
24}
25
26void RAND_screen(void)
27{
28 RAND_poll();
29}
30# endif
31#endif
32
33#ifndef DEPRECATED_RAND_FUNCTIONS_DEFINED
34NON_EMPTY_TRANSLATION_UNIT
35#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette