VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.5/crypto/rand/rand_deprecated.c@ 105132

最後變更 在這個檔案從105132是 104078,由 vboxsync 提交於 12 月 前

openssl-3.1.5: Applied and adjusted our OpenSSL changes to 3.1.4. bugref:10638

檔案大小: 827 位元組
 
1/*
2 * Copyright 1995-2022 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 "internal/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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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