• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Huawei Technologies Co., Ltd.
3  * Licensed under the Mulan PSL v2.
4  * You can use this software according to the terms and conditions of the Mulan PSL v2.
5  * You may obtain a copy of Mulan PSL v2 at:
6  *     http://license.coscl.org.cn/MulanPSL2
7  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
8  * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
9  * PURPOSE.
10  * See the Mulan PSL v2 for more details.
11  */
12 
13 #include <stdio.h>
14 #include "crypto/rand_pool.h"
15 #include "openssl/crypto.h"
16 #include "openssl/types.h"
17 
async_deinit(void)18 void async_deinit(void)
19 {
20 }
21 
async_init(void)22 int async_init(void)
23 {
24     return 1;
25 }
26 
geteuid(void)27 int geteuid(void)
28 {
29     return 0;
30 }
31 
getgid(void)32 int getgid(void)
33 {
34     return 0;
35 }
36 
getegid(void)37 int getegid(void)
38 {
39     return 0;
40 }
41 
OSSL_SELF_TEST_get_callback(OSSL_LIB_CTX * libctx,OSSL_CALLBACK ** cb,void ** cbarg)42 void OSSL_SELF_TEST_get_callback(OSSL_LIB_CTX *libctx, OSSL_CALLBACK **cb, void **cbarg)
43 {
44     (void)libctx;
45     (void)cb;
46     (void)cbarg;
47 }
48 
readdir(char * dirp)49 char *readdir(char *dirp)
50 {
51     (void)dirp;
52     return NULL;
53 }
54 
opendir(const char * dirname)55 char *opendir(const char *dirname)
56 {
57     (void)dirname;
58     return NULL;
59 }
60 
closedir(char * dir)61 int closedir(char* dir)
62 {
63     (void)dir;
64     return 0;
65 }
66 
ossl_rand_pool_cleanup(void)67 void ossl_rand_pool_cleanup(void)
68 {
69 }
70 
ossl_rand_pool_init(void)71 int ossl_rand_pool_init(void)
72 {
73     return 1;
74 }
75 
getuid(void)76 int getuid(void)
77 {
78     return 0;
79 }
80 
getpid(void)81 int getpid(void)
82 {
83     return 0;
84 }
85