diff options
author | beck <> | 2023-07-07 12:01:32 +0000 |
---|---|---|
committer | beck <> | 2023-07-07 12:01:32 +0000 |
commit | 5c0527aa790cba96ac1060e17d6a3909694d8e4e (patch) | |
tree | 088d60cfe20bcd912db9923f7699deabc41696db /src/lib/libcrypto/rand | |
parent | 7e8c1dd29d6e69da1876294635c98160b2707e56 (diff) | |
download | openbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.tar.gz openbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.tar.bz2 openbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.zip |
hide symbols in sm, rand, and poly1305
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/rand')
-rw-r--r-- | src/lib/libcrypto/rand/rand_err.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rand/rand_lib.c | 13 | ||||
-rw-r--r-- | src/lib/libcrypto/rand/randfile.c | 5 |
3 files changed, 18 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rand/rand_err.c b/src/lib/libcrypto/rand/rand_err.c index c57b9a8d63..b156c0c87c 100644 --- a/src/lib/libcrypto/rand/rand_err.c +++ b/src/lib/libcrypto/rand/rand_err.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand_err.c,v 1.16 2022/07/12 14:42:50 kn Exp $ */ | 1 | /* $OpenBSD: rand_err.c,v 1.17 2023/07/07 12:01:32 beck Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -91,3 +91,4 @@ ERR_load_RAND_strings(void) | |||
91 | } | 91 | } |
92 | #endif | 92 | #endif |
93 | } | 93 | } |
94 | LCRYPTO_ALIAS(ERR_load_RAND_strings); | ||
diff --git a/src/lib/libcrypto/rand/rand_lib.c b/src/lib/libcrypto/rand/rand_lib.c index 8342a55f05..b51db8acf6 100644 --- a/src/lib/libcrypto/rand/rand_lib.c +++ b/src/lib/libcrypto/rand/rand_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand_lib.c,v 1.20 2014/10/22 13:02:04 jsing Exp $ */ | 1 | /* $OpenBSD: rand_lib.c,v 1.21 2023/07/07 12:01:32 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
4 | * | 4 | * |
@@ -29,18 +29,21 @@ RAND_set_rand_method(const RAND_METHOD *meth) | |||
29 | { | 29 | { |
30 | return 1; | 30 | return 1; |
31 | } | 31 | } |
32 | LCRYPTO_ALIAS(RAND_set_rand_method); | ||
32 | 33 | ||
33 | const RAND_METHOD * | 34 | const RAND_METHOD * |
34 | RAND_get_rand_method(void) | 35 | RAND_get_rand_method(void) |
35 | { | 36 | { |
36 | return NULL; | 37 | return NULL; |
37 | } | 38 | } |
39 | LCRYPTO_ALIAS(RAND_get_rand_method); | ||
38 | 40 | ||
39 | RAND_METHOD * | 41 | RAND_METHOD * |
40 | RAND_SSLeay(void) | 42 | RAND_SSLeay(void) |
41 | { | 43 | { |
42 | return NULL; | 44 | return NULL; |
43 | } | 45 | } |
46 | LCRYPTO_ALIAS(RAND_SSLeay); | ||
44 | 47 | ||
45 | #ifndef OPENSSL_NO_ENGINE | 48 | #ifndef OPENSSL_NO_ENGINE |
46 | int | 49 | int |
@@ -48,6 +51,7 @@ RAND_set_rand_engine(ENGINE *engine) | |||
48 | { | 51 | { |
49 | return 1; | 52 | return 1; |
50 | } | 53 | } |
54 | LCRYPTO_ALIAS(RAND_set_rand_engine); | ||
51 | #endif | 55 | #endif |
52 | 56 | ||
53 | void | 57 | void |
@@ -55,30 +59,35 @@ RAND_cleanup(void) | |||
55 | { | 59 | { |
56 | 60 | ||
57 | } | 61 | } |
62 | LCRYPTO_ALIAS(RAND_cleanup); | ||
58 | 63 | ||
59 | void | 64 | void |
60 | RAND_seed(const void *buf, int num) | 65 | RAND_seed(const void *buf, int num) |
61 | { | 66 | { |
62 | 67 | ||
63 | } | 68 | } |
69 | LCRYPTO_ALIAS(RAND_seed); | ||
64 | 70 | ||
65 | void | 71 | void |
66 | RAND_add(const void *buf, int num, double entropy) | 72 | RAND_add(const void *buf, int num, double entropy) |
67 | { | 73 | { |
68 | 74 | ||
69 | } | 75 | } |
76 | LCRYPTO_ALIAS(RAND_add); | ||
70 | 77 | ||
71 | int | 78 | int |
72 | RAND_status(void) | 79 | RAND_status(void) |
73 | { | 80 | { |
74 | return 1; | 81 | return 1; |
75 | } | 82 | } |
83 | LCRYPTO_ALIAS(RAND_status); | ||
76 | 84 | ||
77 | int | 85 | int |
78 | RAND_poll(void) | 86 | RAND_poll(void) |
79 | { | 87 | { |
80 | return 1; | 88 | return 1; |
81 | } | 89 | } |
90 | LCRYPTO_ALIAS(RAND_poll); | ||
82 | 91 | ||
83 | /* | 92 | /* |
84 | * Hurray. You've made it to the good parts. | 93 | * Hurray. You've made it to the good parts. |
@@ -90,6 +99,7 @@ RAND_bytes(unsigned char *buf, int num) | |||
90 | arc4random_buf(buf, num); | 99 | arc4random_buf(buf, num); |
91 | return 1; | 100 | return 1; |
92 | } | 101 | } |
102 | LCRYPTO_ALIAS(RAND_bytes); | ||
93 | 103 | ||
94 | int | 104 | int |
95 | RAND_pseudo_bytes(unsigned char *buf, int num) | 105 | RAND_pseudo_bytes(unsigned char *buf, int num) |
@@ -98,3 +108,4 @@ RAND_pseudo_bytes(unsigned char *buf, int num) | |||
98 | arc4random_buf(buf, num); | 108 | arc4random_buf(buf, num); |
99 | return 1; | 109 | return 1; |
100 | } | 110 | } |
111 | LCRYPTO_ALIAS(RAND_pseudo_bytes); | ||
diff --git a/src/lib/libcrypto/rand/randfile.c b/src/lib/libcrypto/rand/randfile.c index 72c065c48d..7384a65791 100644 --- a/src/lib/libcrypto/rand/randfile.c +++ b/src/lib/libcrypto/rand/randfile.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: randfile.c,v 1.42 2015/09/10 15:56:25 jsing Exp $ */ | 1 | /* $OpenBSD: randfile.c,v 1.43 2023/07/07 12:01:32 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -85,6 +85,7 @@ RAND_load_file(const char *file, long bytes) | |||
85 | else | 85 | else |
86 | return bytes; | 86 | return bytes; |
87 | } | 87 | } |
88 | LCRYPTO_ALIAS(RAND_load_file); | ||
88 | 89 | ||
89 | int | 90 | int |
90 | RAND_write_file(const char *file) | 91 | RAND_write_file(const char *file) |
@@ -133,6 +134,7 @@ RAND_write_file(const char *file) | |||
133 | explicit_bzero(buf, BUFSIZE); | 134 | explicit_bzero(buf, BUFSIZE); |
134 | return ret; | 135 | return ret; |
135 | } | 136 | } |
137 | LCRYPTO_ALIAS(RAND_write_file); | ||
136 | 138 | ||
137 | const char * | 139 | const char * |
138 | RAND_file_name(char * buf, size_t size) | 140 | RAND_file_name(char * buf, size_t size) |
@@ -141,3 +143,4 @@ RAND_file_name(char * buf, size_t size) | |||
141 | return (NULL); | 143 | return (NULL); |
142 | return buf; | 144 | return buf; |
143 | } | 145 | } |
146 | LCRYPTO_ALIAS(RAND_file_name); | ||