diff options
author | beck <> | 2023-07-07 13:54:46 +0000 |
---|---|---|
committer | beck <> | 2023-07-07 13:54:46 +0000 |
commit | 6bba0b0cef45b790c7a98a818e6018c91de8af0b (patch) | |
tree | 8637b2fb4bca234d55b598e035f23335be46ce49 /src/lib/libcrypto/evp/cipher_method_lib.c | |
parent | fcdb286fc308a6ce5c66d8a4653f2e2e6c4903ed (diff) | |
download | openbsd-6bba0b0cef45b790c7a98a818e6018c91de8af0b.tar.gz openbsd-6bba0b0cef45b790c7a98a818e6018c91de8af0b.tar.bz2 openbsd-6bba0b0cef45b790c7a98a818e6018c91de8af0b.zip |
Hide symbols in hkdf, evp, err, ecdsa, and ec
(part 2 of commit)
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/evp/cipher_method_lib.c')
-rw-r--r-- | src/lib/libcrypto/evp/cipher_method_lib.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/cipher_method_lib.c b/src/lib/libcrypto/evp/cipher_method_lib.c index 55dc6b788c..9e4fd483a3 100644 --- a/src/lib/libcrypto/evp/cipher_method_lib.c +++ b/src/lib/libcrypto/evp/cipher_method_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cipher_method_lib.c,v 1.8 2023/03/01 11:27:37 tb Exp $ */ | 1 | /* $OpenBSD: cipher_method_lib.c,v 1.9 2023/07/07 13:54:45 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project | 3 | * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project |
4 | * 2015. | 4 | * 2015. |
@@ -77,6 +77,7 @@ EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) | |||
77 | 77 | ||
78 | return cipher; | 78 | return cipher; |
79 | } | 79 | } |
80 | LCRYPTO_ALIAS(EVP_CIPHER_meth_new); | ||
80 | 81 | ||
81 | EVP_CIPHER * | 82 | EVP_CIPHER * |
82 | EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) | 83 | EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) |
@@ -90,12 +91,14 @@ EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) | |||
90 | 91 | ||
91 | return copy; | 92 | return copy; |
92 | } | 93 | } |
94 | LCRYPTO_ALIAS(EVP_CIPHER_meth_dup); | ||
93 | 95 | ||
94 | void | 96 | void |
95 | EVP_CIPHER_meth_free(EVP_CIPHER *cipher) | 97 | EVP_CIPHER_meth_free(EVP_CIPHER *cipher) |
96 | { | 98 | { |
97 | free(cipher); | 99 | free(cipher); |
98 | } | 100 | } |
101 | LCRYPTO_ALIAS(EVP_CIPHER_meth_free); | ||
99 | 102 | ||
100 | int | 103 | int |
101 | EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) | 104 | EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) |
@@ -104,6 +107,7 @@ EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) | |||
104 | 107 | ||
105 | return 1; | 108 | return 1; |
106 | } | 109 | } |
110 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_iv_length); | ||
107 | 111 | ||
108 | int | 112 | int |
109 | EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) | 113 | EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) |
@@ -112,6 +116,7 @@ EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) | |||
112 | 116 | ||
113 | return 1; | 117 | return 1; |
114 | } | 118 | } |
119 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_flags); | ||
115 | 120 | ||
116 | int | 121 | int |
117 | EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) | 122 | EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) |
@@ -120,6 +125,7 @@ EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) | |||
120 | 125 | ||
121 | return 1; | 126 | return 1; |
122 | } | 127 | } |
128 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_impl_ctx_size); | ||
123 | 129 | ||
124 | int | 130 | int |
125 | EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, | 131 | EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, |
@@ -130,6 +136,7 @@ EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, | |||
130 | 136 | ||
131 | return 1; | 137 | return 1; |
132 | } | 138 | } |
139 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_init); | ||
133 | 140 | ||
134 | int | 141 | int |
135 | EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, | 142 | EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, |
@@ -140,6 +147,7 @@ EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, | |||
140 | 147 | ||
141 | return 1; | 148 | return 1; |
142 | } | 149 | } |
150 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_do_cipher); | ||
143 | 151 | ||
144 | int | 152 | int |
145 | EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, | 153 | EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, |
@@ -149,6 +157,7 @@ EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, | |||
149 | 157 | ||
150 | return 1; | 158 | return 1; |
151 | } | 159 | } |
160 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_cleanup); | ||
152 | 161 | ||
153 | int | 162 | int |
154 | EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, | 163 | EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, |
@@ -158,6 +167,7 @@ EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, | |||
158 | 167 | ||
159 | return 1; | 168 | return 1; |
160 | } | 169 | } |
170 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_set_asn1_params); | ||
161 | 171 | ||
162 | int | 172 | int |
163 | EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, | 173 | EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, |
@@ -167,6 +177,7 @@ EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, | |||
167 | 177 | ||
168 | return 1; | 178 | return 1; |
169 | } | 179 | } |
180 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_get_asn1_params); | ||
170 | 181 | ||
171 | int | 182 | int |
172 | EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, | 183 | EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, |
@@ -176,3 +187,4 @@ EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, | |||
176 | 187 | ||
177 | return 1; | 188 | return 1; |
178 | } | 189 | } |
190 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_ctrl); | ||