168651Skris/* ====================================================================
268651Skris * Copyright (c) 1999 The OpenSSL Project.  All rights reserved.
368651Skris *
468651Skris * Redistribution and use in source and binary forms, with or without
568651Skris * modification, are permitted provided that the following conditions
668651Skris * are met:
768651Skris *
868651Skris * 1. Redistributions of source code must retain the above copyright
9296465Sdelphij *    notice, this list of conditions and the following disclaimer.
1068651Skris *
1168651Skris * 2. Redistributions in binary form must reproduce the above copyright
1268651Skris *    notice, this list of conditions and the following disclaimer in
1368651Skris *    the documentation and/or other materials provided with the
1468651Skris *    distribution.
1568651Skris *
1668651Skris * 3. All advertising materials mentioning features or use of this
1768651Skris *    software must display the following acknowledgment:
1868651Skris *    "This product includes software developed by the OpenSSL Project
1968651Skris *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
2068651Skris *
2168651Skris * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
2268651Skris *    endorse or promote products derived from this software without
2368651Skris *    prior written permission. For written permission, please contact
2468651Skris *    openssl-core@openssl.org.
2568651Skris *
2668651Skris * 5. Products derived from this software may not be called "OpenSSL"
2768651Skris *    nor may "OpenSSL" appear in their names without prior written
2868651Skris *    permission of the OpenSSL Project.
2968651Skris *
3068651Skris * 6. Redistributions of any form whatsoever must retain the following
3168651Skris *    acknowledgment:
3268651Skris *    "This product includes software developed by the OpenSSL Project
3368651Skris *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
3468651Skris *
3568651Skris * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
3668651Skris * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3768651Skris * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
3868651Skris * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
3968651Skris * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4068651Skris * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
4168651Skris * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
4268651Skris * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
4368651Skris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
4468651Skris * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
4568651Skris * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
4668651Skris * OF THE POSSIBILITY OF SUCH DAMAGE.
4768651Skris * ====================================================================
4868651Skris *
4968651Skris * This product includes cryptographic software written by Eric Young
5068651Skris * (eay@cryptsoft.com).  This product includes software written by Tim
5168651Skris * Hudson (tjh@cryptsoft.com).
5268651Skris *
5368651Skris */
5468651Skris
5568651Skris#ifndef HEADER_SYMHACKS_H
56296465Sdelphij# define HEADER_SYMHACKS_H
5768651Skris
58296465Sdelphij# include <openssl/e_os2.h>
59109998Smarkm
60296465Sdelphij/*
61296465Sdelphij * Hacks to solve the problem with linkers incapable of handling very long
62296465Sdelphij * symbol names.  In the case of VMS, the limit is 31 characters on VMS for
63296465Sdelphij * VAX.
64296465Sdelphij */
65296465Sdelphij/*
66296465Sdelphij * Note that this affects util/libeay.num and util/ssleay.num...  you may
67296465Sdelphij * change those manually, but that's not recommended, as those files are
68296465Sdelphij * controlled centrally and updated on Unix, and the central definition may
69296465Sdelphij * disagree with yours, which in turn may come with shareable library
70296465Sdelphij * incompatibilities.
71296465Sdelphij */
72296465Sdelphij# ifdef OPENSSL_SYS_VMS
7368651Skris
74194206Ssimon/* Hack a long name in crypto/cryptlib.c */
75296465Sdelphij#  undef int_CRYPTO_set_do_dynlock_callback
76296465Sdelphij#  define int_CRYPTO_set_do_dynlock_callback      int_CRYPTO_set_do_dynlock_cb
77194206Ssimon
78109998Smarkm/* Hack a long name in crypto/ex_data.c */
79296465Sdelphij#  undef CRYPTO_get_ex_data_implementation
80296465Sdelphij#  define CRYPTO_get_ex_data_implementation       CRYPTO_get_ex_data_impl
81296465Sdelphij#  undef CRYPTO_set_ex_data_implementation
82296465Sdelphij#  define CRYPTO_set_ex_data_implementation       CRYPTO_set_ex_data_impl
83109998Smarkm
8468651Skris/* Hack a long name in crypto/asn1/a_mbstr.c */
85296465Sdelphij#  undef ASN1_STRING_set_default_mask_asc
86296465Sdelphij#  define ASN1_STRING_set_default_mask_asc        ASN1_STRING_set_def_mask_asc
8768651Skris
88296465Sdelphij#  if 0                         /* No longer needed, since safestack macro
89296465Sdelphij                                 * magic does the job */
9068651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */
91296465Sdelphij#   undef i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO
92296465Sdelphij#   define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO       i2d_ASN1_SET_OF_PKCS7_SIGINF
93296465Sdelphij#   undef d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO
94296465Sdelphij#   define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO       d2i_ASN1_SET_OF_PKCS7_SIGINF
95296465Sdelphij#  endif
9668651Skris
97296465Sdelphij#  if 0                         /* No longer needed, since safestack macro
98296465Sdelphij                                 * magic does the job */
9968651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO) */
100296465Sdelphij#   undef i2d_ASN1_SET_OF_PKCS7_RECIP_INFO
101296465Sdelphij#   define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO        i2d_ASN1_SET_OF_PKCS7_RECINF
102296465Sdelphij#   undef d2i_ASN1_SET_OF_PKCS7_RECIP_INFO
103296465Sdelphij#   define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO        d2i_ASN1_SET_OF_PKCS7_RECINF
104296465Sdelphij#  endif
10568651Skris
106296465Sdelphij#  if 0                         /* No longer needed, since safestack macro
107296465Sdelphij                                 * magic does the job */
10868651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) */
109296465Sdelphij#   undef i2d_ASN1_SET_OF_ACCESS_DESCRIPTION
110296465Sdelphij#   define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION      i2d_ASN1_SET_OF_ACC_DESC
111296465Sdelphij#   undef d2i_ASN1_SET_OF_ACCESS_DESCRIPTION
112296465Sdelphij#   define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION      d2i_ASN1_SET_OF_ACC_DESC
113296465Sdelphij#  endif
11468651Skris
11568651Skris/* Hack the names created with DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE) */
116296465Sdelphij#  undef PEM_read_NETSCAPE_CERT_SEQUENCE
117296465Sdelphij#  define PEM_read_NETSCAPE_CERT_SEQUENCE         PEM_read_NS_CERT_SEQ
118296465Sdelphij#  undef PEM_write_NETSCAPE_CERT_SEQUENCE
119296465Sdelphij#  define PEM_write_NETSCAPE_CERT_SEQUENCE        PEM_write_NS_CERT_SEQ
120296465Sdelphij#  undef PEM_read_bio_NETSCAPE_CERT_SEQUENCE
121296465Sdelphij#  define PEM_read_bio_NETSCAPE_CERT_SEQUENCE     PEM_read_bio_NS_CERT_SEQ
122296465Sdelphij#  undef PEM_write_bio_NETSCAPE_CERT_SEQUENCE
123296465Sdelphij#  define PEM_write_bio_NETSCAPE_CERT_SEQUENCE    PEM_write_bio_NS_CERT_SEQ
124296465Sdelphij#  undef PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE
125296465Sdelphij#  define PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE PEM_write_cb_bio_NS_CERT_SEQ
12668651Skris
12768651Skris/* Hack the names created with DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO) */
128296465Sdelphij#  undef PEM_read_PKCS8_PRIV_KEY_INFO
129296465Sdelphij#  define PEM_read_PKCS8_PRIV_KEY_INFO            PEM_read_P8_PRIV_KEY_INFO
130296465Sdelphij#  undef PEM_write_PKCS8_PRIV_KEY_INFO
131296465Sdelphij#  define PEM_write_PKCS8_PRIV_KEY_INFO           PEM_write_P8_PRIV_KEY_INFO
132296465Sdelphij#  undef PEM_read_bio_PKCS8_PRIV_KEY_INFO
133296465Sdelphij#  define PEM_read_bio_PKCS8_PRIV_KEY_INFO        PEM_read_bio_P8_PRIV_KEY_INFO
134296465Sdelphij#  undef PEM_write_bio_PKCS8_PRIV_KEY_INFO
135296465Sdelphij#  define PEM_write_bio_PKCS8_PRIV_KEY_INFO       PEM_write_bio_P8_PRIV_KEY_INFO
136296465Sdelphij#  undef PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO
137296465Sdelphij#  define PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO    PEM_wrt_cb_bio_P8_PRIV_KEY_INFO
13868651Skris
13968651Skris/* Hack other PEM names */
140296465Sdelphij#  undef PEM_write_bio_PKCS8PrivateKey_nid
141296465Sdelphij#  define PEM_write_bio_PKCS8PrivateKey_nid       PEM_write_bio_PKCS8PrivKey_nid
14268651Skris
14368651Skris/* Hack some long X509 names */
144296465Sdelphij#  undef X509_REVOKED_get_ext_by_critical
145296465Sdelphij#  define X509_REVOKED_get_ext_by_critical        X509_REVOKED_get_ext_by_critic
146296465Sdelphij#  undef X509_policy_tree_get0_user_policies
147296465Sdelphij#  define X509_policy_tree_get0_user_policies     X509_pcy_tree_get0_usr_policies
148296465Sdelphij#  undef X509_policy_node_get0_qualifiers
149296465Sdelphij#  define X509_policy_node_get0_qualifiers        X509_pcy_node_get0_qualifiers
150296465Sdelphij#  undef X509_STORE_CTX_get_explicit_policy
151296465Sdelphij#  define X509_STORE_CTX_get_explicit_policy      X509_STORE_CTX_get_expl_policy
152296465Sdelphij#  undef X509_STORE_CTX_get0_current_issuer
153296465Sdelphij#  define X509_STORE_CTX_get0_current_issuer      X509_STORE_CTX_get0_cur_issuer
15468651Skris
15568651Skris/* Hack some long CRYPTO names */
156296465Sdelphij#  undef CRYPTO_set_dynlock_destroy_callback
157296465Sdelphij#  define CRYPTO_set_dynlock_destroy_callback     CRYPTO_set_dynlock_destroy_cb
158296465Sdelphij#  undef CRYPTO_set_dynlock_create_callback
159296465Sdelphij#  define CRYPTO_set_dynlock_create_callback      CRYPTO_set_dynlock_create_cb
160296465Sdelphij#  undef CRYPTO_set_dynlock_lock_callback
161296465Sdelphij#  define CRYPTO_set_dynlock_lock_callback        CRYPTO_set_dynlock_lock_cb
162296465Sdelphij#  undef CRYPTO_get_dynlock_lock_callback
163296465Sdelphij#  define CRYPTO_get_dynlock_lock_callback        CRYPTO_get_dynlock_lock_cb
164296465Sdelphij#  undef CRYPTO_get_dynlock_destroy_callback
165296465Sdelphij#  define CRYPTO_get_dynlock_destroy_callback     CRYPTO_get_dynlock_destroy_cb
166296465Sdelphij#  undef CRYPTO_get_dynlock_create_callback
167296465Sdelphij#  define CRYPTO_get_dynlock_create_callback      CRYPTO_get_dynlock_create_cb
168296465Sdelphij#  undef CRYPTO_set_locked_mem_ex_functions
169296465Sdelphij#  define CRYPTO_set_locked_mem_ex_functions      CRYPTO_set_locked_mem_ex_funcs
170296465Sdelphij#  undef CRYPTO_get_locked_mem_ex_functions
171296465Sdelphij#  define CRYPTO_get_locked_mem_ex_functions      CRYPTO_get_locked_mem_ex_funcs
17268651Skris
17368651Skris/* Hack some long SSL names */
174296465Sdelphij#  undef SSL_CTX_set_default_verify_paths
175296465Sdelphij#  define SSL_CTX_set_default_verify_paths        SSL_CTX_set_def_verify_paths
176296465Sdelphij#  undef SSL_get_ex_data_X509_STORE_CTX_idx
177296465Sdelphij#  define SSL_get_ex_data_X509_STORE_CTX_idx      SSL_get_ex_d_X509_STORE_CTX_idx
178296465Sdelphij#  undef SSL_add_file_cert_subjects_to_stack
179296465Sdelphij#  define SSL_add_file_cert_subjects_to_stack     SSL_add_file_cert_subjs_to_stk
180296465Sdelphij#  undef SSL_add_dir_cert_subjects_to_stack
181296465Sdelphij#  define SSL_add_dir_cert_subjects_to_stack      SSL_add_dir_cert_subjs_to_stk
182296465Sdelphij#  undef SSL_CTX_use_certificate_chain_file
183296465Sdelphij#  define SSL_CTX_use_certificate_chain_file      SSL_CTX_use_cert_chain_file
184296465Sdelphij#  undef SSL_CTX_set_cert_verify_callback
185296465Sdelphij#  define SSL_CTX_set_cert_verify_callback        SSL_CTX_set_cert_verify_cb
186296465Sdelphij#  undef SSL_CTX_set_default_passwd_cb_userdata
187296465Sdelphij#  define SSL_CTX_set_default_passwd_cb_userdata  SSL_CTX_set_def_passwd_cb_ud
188296465Sdelphij#  undef SSL_COMP_get_compression_methods
189296465Sdelphij#  define SSL_COMP_get_compression_methods        SSL_COMP_get_compress_methods
19068651Skris
191296465Sdelphij#  undef ssl_add_clienthello_renegotiate_ext
192296465Sdelphij#  define ssl_add_clienthello_renegotiate_ext     ssl_add_clienthello_reneg_ext
193296465Sdelphij#  undef ssl_add_serverhello_renegotiate_ext
194296465Sdelphij#  define ssl_add_serverhello_renegotiate_ext     ssl_add_serverhello_reneg_ext
195296465Sdelphij#  undef ssl_parse_clienthello_renegotiate_ext
196296465Sdelphij#  define ssl_parse_clienthello_renegotiate_ext   ssl_parse_clienthello_reneg_ext
197296465Sdelphij#  undef ssl_parse_serverhello_renegotiate_ext
198296465Sdelphij#  define ssl_parse_serverhello_renegotiate_ext   ssl_parse_serverhello_reneg_ext
199205128Ssimon
200296465Sdelphij#  undef ssl3_cbc_record_digest_supported
201296465Sdelphij#  define ssl3_cbc_record_digest_supported        ssl3_cbc_record_digest_support
202296465Sdelphij#  undef ssl_check_clienthello_tlsext_late
203296465Sdelphij#  define ssl_check_clienthello_tlsext_late       ssl_check_clihello_tlsext_late
204296465Sdelphij#  undef ssl_check_clienthello_tlsext_early
205296465Sdelphij#  define ssl_check_clienthello_tlsext_early      ssl_check_clihello_tlsext_early
206296465Sdelphij
20768651Skris/* Hack some long ENGINE names */
208296465Sdelphij#  undef ENGINE_get_default_BN_mod_exp_crt
209296465Sdelphij#  define ENGINE_get_default_BN_mod_exp_crt       ENGINE_get_def_BN_mod_exp_crt
210296465Sdelphij#  undef ENGINE_set_default_BN_mod_exp_crt
211296465Sdelphij#  define ENGINE_set_default_BN_mod_exp_crt       ENGINE_set_def_BN_mod_exp_crt
212296465Sdelphij#  undef ENGINE_set_load_privkey_function
213296465Sdelphij#  define ENGINE_set_load_privkey_function        ENGINE_set_load_privkey_fn
214296465Sdelphij#  undef ENGINE_get_load_privkey_function
215296465Sdelphij#  define ENGINE_get_load_privkey_function        ENGINE_get_load_privkey_fn
216296465Sdelphij#  undef ENGINE_set_load_ssl_client_cert_function
217296465Sdelphij#  define ENGINE_set_load_ssl_client_cert_function \
218296465Sdelphij                                                ENGINE_set_ld_ssl_clnt_cert_fn
219296465Sdelphij#  undef ENGINE_get_ssl_client_cert_function
220296465Sdelphij#  define ENGINE_get_ssl_client_cert_function     ENGINE_get_ssl_client_cert_fn
22168651Skris
222109998Smarkm/* Hack some long OCSP names */
223296465Sdelphij#  undef OCSP_REQUEST_get_ext_by_critical
224296465Sdelphij#  define OCSP_REQUEST_get_ext_by_critical        OCSP_REQUEST_get_ext_by_crit
225296465Sdelphij#  undef OCSP_BASICRESP_get_ext_by_critical
226296465Sdelphij#  define OCSP_BASICRESP_get_ext_by_critical      OCSP_BASICRESP_get_ext_by_crit
227296465Sdelphij#  undef OCSP_SINGLERESP_get_ext_by_critical
228296465Sdelphij#  define OCSP_SINGLERESP_get_ext_by_critical     OCSP_SINGLERESP_get_ext_by_crit
22968651Skris
230109998Smarkm/* Hack some long DES names */
231296465Sdelphij#  undef _ossl_old_des_ede3_cfb64_encrypt
232296465Sdelphij#  define _ossl_old_des_ede3_cfb64_encrypt        _ossl_odes_ede3_cfb64_encrypt
233296465Sdelphij#  undef _ossl_old_des_ede3_ofb64_encrypt
234296465Sdelphij#  define _ossl_old_des_ede3_ofb64_encrypt        _ossl_odes_ede3_ofb64_encrypt
23568651Skris
236109998Smarkm/* Hack some long EVP names */
237296465Sdelphij#  undef OPENSSL_add_all_algorithms_noconf
238296465Sdelphij#  define OPENSSL_add_all_algorithms_noconf       OPENSSL_add_all_algo_noconf
239296465Sdelphij#  undef OPENSSL_add_all_algorithms_conf
240296465Sdelphij#  define OPENSSL_add_all_algorithms_conf         OPENSSL_add_all_algo_conf
241109998Smarkm
242109998Smarkm/* Hack some long EC names */
243296465Sdelphij#  undef EC_GROUP_set_point_conversion_form
244296465Sdelphij#  define EC_GROUP_set_point_conversion_form      EC_GROUP_set_point_conv_form
245296465Sdelphij#  undef EC_GROUP_get_point_conversion_form
246296465Sdelphij#  define EC_GROUP_get_point_conversion_form      EC_GROUP_get_point_conv_form
247296465Sdelphij#  undef EC_GROUP_clear_free_all_extra_data
248296465Sdelphij#  define EC_GROUP_clear_free_all_extra_data      EC_GROUP_clr_free_all_xtra_data
249296465Sdelphij#  undef EC_POINT_set_Jprojective_coordinates_GFp
250296465Sdelphij#  define EC_POINT_set_Jprojective_coordinates_GFp \
251109998Smarkm                                                EC_POINT_set_Jproj_coords_GFp
252296465Sdelphij#  undef EC_POINT_get_Jprojective_coordinates_GFp
253296465Sdelphij#  define EC_POINT_get_Jprojective_coordinates_GFp \
254109998Smarkm                                                EC_POINT_get_Jproj_coords_GFp
255296465Sdelphij#  undef EC_POINT_set_affine_coordinates_GFp
256296465Sdelphij#  define EC_POINT_set_affine_coordinates_GFp     EC_POINT_set_affine_coords_GFp
257296465Sdelphij#  undef EC_POINT_get_affine_coordinates_GFp
258296465Sdelphij#  define EC_POINT_get_affine_coordinates_GFp     EC_POINT_get_affine_coords_GFp
259296465Sdelphij#  undef EC_POINT_set_compressed_coordinates_GFp
260296465Sdelphij#  define EC_POINT_set_compressed_coordinates_GFp EC_POINT_set_compr_coords_GFp
261296465Sdelphij#  undef EC_POINT_set_affine_coordinates_GF2m
262296465Sdelphij#  define EC_POINT_set_affine_coordinates_GF2m    EC_POINT_set_affine_coords_GF2m
263296465Sdelphij#  undef EC_POINT_get_affine_coordinates_GF2m
264296465Sdelphij#  define EC_POINT_get_affine_coordinates_GF2m    EC_POINT_get_affine_coords_GF2m
265296465Sdelphij#  undef EC_POINT_set_compressed_coordinates_GF2m
266296465Sdelphij#  define EC_POINT_set_compressed_coordinates_GF2m \
267160814Ssimon                                                EC_POINT_set_compr_coords_GF2m
268296465Sdelphij#  undef ec_GF2m_simple_group_clear_finish
269296465Sdelphij#  define ec_GF2m_simple_group_clear_finish       ec_GF2m_simple_grp_clr_finish
270296465Sdelphij#  undef ec_GF2m_simple_group_check_discriminant
271296465Sdelphij#  define ec_GF2m_simple_group_check_discriminant ec_GF2m_simple_grp_chk_discrim
272296465Sdelphij#  undef ec_GF2m_simple_point_clear_finish
273296465Sdelphij#  define ec_GF2m_simple_point_clear_finish       ec_GF2m_simple_pt_clr_finish
274296465Sdelphij#  undef ec_GF2m_simple_point_set_to_infinity
275296465Sdelphij#  define ec_GF2m_simple_point_set_to_infinity    ec_GF2m_simple_pt_set_to_inf
276296465Sdelphij#  undef ec_GF2m_simple_points_make_affine
277296465Sdelphij#  define ec_GF2m_simple_points_make_affine       ec_GF2m_simple_pts_make_affine
278296465Sdelphij#  undef ec_GF2m_simple_point_set_affine_coordinates
279296465Sdelphij#  define ec_GF2m_simple_point_set_affine_coordinates \
280160814Ssimon                                                ec_GF2m_smp_pt_set_af_coords
281296465Sdelphij#  undef ec_GF2m_simple_point_get_affine_coordinates
282296465Sdelphij#  define ec_GF2m_simple_point_get_affine_coordinates \
283160814Ssimon                                                ec_GF2m_smp_pt_get_af_coords
284296465Sdelphij#  undef ec_GF2m_simple_set_compressed_coordinates
285296465Sdelphij#  define ec_GF2m_simple_set_compressed_coordinates \
286160814Ssimon                                                ec_GF2m_smp_set_compr_coords
287296465Sdelphij#  undef ec_GFp_simple_group_set_curve_GFp
288296465Sdelphij#  define ec_GFp_simple_group_set_curve_GFp       ec_GFp_simple_grp_set_curve_GFp
289296465Sdelphij#  undef ec_GFp_simple_group_get_curve_GFp
290296465Sdelphij#  define ec_GFp_simple_group_get_curve_GFp       ec_GFp_simple_grp_get_curve_GFp
291296465Sdelphij#  undef ec_GFp_simple_group_clear_finish
292296465Sdelphij#  define ec_GFp_simple_group_clear_finish        ec_GFp_simple_grp_clear_finish
293296465Sdelphij#  undef ec_GFp_simple_group_set_generator
294296465Sdelphij#  define ec_GFp_simple_group_set_generator       ec_GFp_simple_grp_set_generator
295296465Sdelphij#  undef ec_GFp_simple_group_get0_generator
296296465Sdelphij#  define ec_GFp_simple_group_get0_generator      ec_GFp_simple_grp_gt0_generator
297296465Sdelphij#  undef ec_GFp_simple_group_get_cofactor
298296465Sdelphij#  define ec_GFp_simple_group_get_cofactor        ec_GFp_simple_grp_get_cofactor
299296465Sdelphij#  undef ec_GFp_simple_point_clear_finish
300296465Sdelphij#  define ec_GFp_simple_point_clear_finish        ec_GFp_simple_pt_clear_finish
301296465Sdelphij#  undef ec_GFp_simple_point_set_to_infinity
302296465Sdelphij#  define ec_GFp_simple_point_set_to_infinity     ec_GFp_simple_pt_set_to_inf
303296465Sdelphij#  undef ec_GFp_simple_points_make_affine
304296465Sdelphij#  define ec_GFp_simple_points_make_affine        ec_GFp_simple_pts_make_affine
305296465Sdelphij#  undef ec_GFp_simple_set_Jprojective_coordinates_GFp
306296465Sdelphij#  define ec_GFp_simple_set_Jprojective_coordinates_GFp \
307109998Smarkm                                                ec_GFp_smp_set_Jproj_coords_GFp
308296465Sdelphij#  undef ec_GFp_simple_get_Jprojective_coordinates_GFp
309296465Sdelphij#  define ec_GFp_simple_get_Jprojective_coordinates_GFp \
310109998Smarkm                                                ec_GFp_smp_get_Jproj_coords_GFp
311296465Sdelphij#  undef ec_GFp_simple_point_set_affine_coordinates_GFp
312296465Sdelphij#  define ec_GFp_simple_point_set_affine_coordinates_GFp \
313109998Smarkm                                                ec_GFp_smp_pt_set_af_coords_GFp
314296465Sdelphij#  undef ec_GFp_simple_point_get_affine_coordinates_GFp
315296465Sdelphij#  define ec_GFp_simple_point_get_affine_coordinates_GFp \
316109998Smarkm                                                ec_GFp_smp_pt_get_af_coords_GFp
317296465Sdelphij#  undef ec_GFp_simple_set_compressed_coordinates_GFp
318296465Sdelphij#  define ec_GFp_simple_set_compressed_coordinates_GFp \
319109998Smarkm                                                ec_GFp_smp_set_compr_coords_GFp
320296465Sdelphij#  undef ec_GFp_simple_point_set_affine_coordinates
321296465Sdelphij#  define ec_GFp_simple_point_set_affine_coordinates \
322160814Ssimon                                                ec_GFp_smp_pt_set_af_coords
323296465Sdelphij#  undef ec_GFp_simple_point_get_affine_coordinates
324296465Sdelphij#  define ec_GFp_simple_point_get_affine_coordinates \
325160814Ssimon                                                ec_GFp_smp_pt_get_af_coords
326296465Sdelphij#  undef ec_GFp_simple_set_compressed_coordinates
327296465Sdelphij#  define ec_GFp_simple_set_compressed_coordinates \
328160814Ssimon                                                ec_GFp_smp_set_compr_coords
329296465Sdelphij#  undef ec_GFp_simple_group_check_discriminant
330296465Sdelphij#  define ec_GFp_simple_group_check_discriminant  ec_GFp_simple_grp_chk_discrim
331109998Smarkm
332160814Ssimon/* Hack som long STORE names */
333296465Sdelphij#  undef STORE_method_set_initialise_function
334296465Sdelphij#  define STORE_method_set_initialise_function    STORE_meth_set_initialise_fn
335296465Sdelphij#  undef STORE_method_set_cleanup_function
336296465Sdelphij#  define STORE_method_set_cleanup_function       STORE_meth_set_cleanup_fn
337296465Sdelphij#  undef STORE_method_set_generate_function
338296465Sdelphij#  define STORE_method_set_generate_function      STORE_meth_set_generate_fn
339296465Sdelphij#  undef STORE_method_set_modify_function
340296465Sdelphij#  define STORE_method_set_modify_function        STORE_meth_set_modify_fn
341296465Sdelphij#  undef STORE_method_set_revoke_function
342296465Sdelphij#  define STORE_method_set_revoke_function        STORE_meth_set_revoke_fn
343296465Sdelphij#  undef STORE_method_set_delete_function
344296465Sdelphij#  define STORE_method_set_delete_function        STORE_meth_set_delete_fn
345296465Sdelphij#  undef STORE_method_set_list_start_function
346296465Sdelphij#  define STORE_method_set_list_start_function    STORE_meth_set_list_start_fn
347296465Sdelphij#  undef STORE_method_set_list_next_function
348296465Sdelphij#  define STORE_method_set_list_next_function     STORE_meth_set_list_next_fn
349296465Sdelphij#  undef STORE_method_set_list_end_function
350296465Sdelphij#  define STORE_method_set_list_end_function      STORE_meth_set_list_end_fn
351296465Sdelphij#  undef STORE_method_set_update_store_function
352296465Sdelphij#  define STORE_method_set_update_store_function  STORE_meth_set_update_store_fn
353296465Sdelphij#  undef STORE_method_set_lock_store_function
354296465Sdelphij#  define STORE_method_set_lock_store_function    STORE_meth_set_lock_store_fn
355296465Sdelphij#  undef STORE_method_set_unlock_store_function
356296465Sdelphij#  define STORE_method_set_unlock_store_function  STORE_meth_set_unlock_store_fn
357296465Sdelphij#  undef STORE_method_get_initialise_function
358296465Sdelphij#  define STORE_method_get_initialise_function    STORE_meth_get_initialise_fn
359296465Sdelphij#  undef STORE_method_get_cleanup_function
360296465Sdelphij#  define STORE_method_get_cleanup_function       STORE_meth_get_cleanup_fn
361296465Sdelphij#  undef STORE_method_get_generate_function
362296465Sdelphij#  define STORE_method_get_generate_function      STORE_meth_get_generate_fn
363296465Sdelphij#  undef STORE_method_get_modify_function
364296465Sdelphij#  define STORE_method_get_modify_function        STORE_meth_get_modify_fn
365296465Sdelphij#  undef STORE_method_get_revoke_function
366296465Sdelphij#  define STORE_method_get_revoke_function        STORE_meth_get_revoke_fn
367296465Sdelphij#  undef STORE_method_get_delete_function
368296465Sdelphij#  define STORE_method_get_delete_function        STORE_meth_get_delete_fn
369296465Sdelphij#  undef STORE_method_get_list_start_function
370296465Sdelphij#  define STORE_method_get_list_start_function    STORE_meth_get_list_start_fn
371296465Sdelphij#  undef STORE_method_get_list_next_function
372296465Sdelphij#  define STORE_method_get_list_next_function     STORE_meth_get_list_next_fn
373296465Sdelphij#  undef STORE_method_get_list_end_function
374296465Sdelphij#  define STORE_method_get_list_end_function      STORE_meth_get_list_end_fn
375296465Sdelphij#  undef STORE_method_get_update_store_function
376296465Sdelphij#  define STORE_method_get_update_store_function  STORE_meth_get_update_store_fn
377296465Sdelphij#  undef STORE_method_get_lock_store_function
378296465Sdelphij#  define STORE_method_get_lock_store_function    STORE_meth_get_lock_store_fn
379296465Sdelphij#  undef STORE_method_get_unlock_store_function
380296465Sdelphij#  define STORE_method_get_unlock_store_function  STORE_meth_get_unlock_store_fn
381160814Ssimon
382194206Ssimon/* Hack some long CMS names */
383296465Sdelphij#  undef CMS_RecipientInfo_ktri_get0_algs
384296465Sdelphij#  define CMS_RecipientInfo_ktri_get0_algs        CMS_RecipInfo_ktri_get0_algs
385296465Sdelphij#  undef CMS_RecipientInfo_ktri_get0_signer_id
386296465Sdelphij#  define CMS_RecipientInfo_ktri_get0_signer_id   CMS_RecipInfo_ktri_get0_sigr_id
387296465Sdelphij#  undef CMS_OtherRevocationInfoFormat_it
388296465Sdelphij#  define CMS_OtherRevocationInfoFormat_it        CMS_OtherRevocInfoFormat_it
389296465Sdelphij#  undef CMS_KeyAgreeRecipientIdentifier_it
390296465Sdelphij#  define CMS_KeyAgreeRecipientIdentifier_it      CMS_KeyAgreeRecipIdentifier_it
391296465Sdelphij#  undef CMS_OriginatorIdentifierOrKey_it
392296465Sdelphij#  define CMS_OriginatorIdentifierOrKey_it        CMS_OriginatorIdOrKey_it
393296465Sdelphij#  undef cms_SignerIdentifier_get0_signer_id
394296465Sdelphij#  define cms_SignerIdentifier_get0_signer_id     cms_SignerId_get0_signer_id
395194206Ssimon
396205128Ssimon/* Hack some long DTLS1 names */
397296465Sdelphij#  undef dtls1_retransmit_buffered_messages
398296465Sdelphij#  define dtls1_retransmit_buffered_messages      dtls1_retransmit_buffered_msgs
399205128Ssimon
400296465Sdelphij# endif                         /* defined OPENSSL_SYS_VMS */
401109998Smarkm
40268651Skris/* Case insensiteve linking causes problems.... */
403296465Sdelphij# if defined(OPENSSL_SYS_WIN16) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2)
404296465Sdelphij#  undef ERR_load_CRYPTO_strings
405296465Sdelphij#  define ERR_load_CRYPTO_strings                 ERR_load_CRYPTOlib_strings
406296465Sdelphij#  undef OCSP_crlID_new
407296465Sdelphij#  define OCSP_crlID_new                          OCSP_crlID2_new
408109998Smarkm
409296465Sdelphij#  undef d2i_ECPARAMETERS
410296465Sdelphij#  define d2i_ECPARAMETERS                        d2i_UC_ECPARAMETERS
411296465Sdelphij#  undef i2d_ECPARAMETERS
412296465Sdelphij#  define i2d_ECPARAMETERS                        i2d_UC_ECPARAMETERS
413296465Sdelphij#  undef d2i_ECPKPARAMETERS
414296465Sdelphij#  define d2i_ECPKPARAMETERS                      d2i_UC_ECPKPARAMETERS
415296465Sdelphij#  undef i2d_ECPKPARAMETERS
416296465Sdelphij#  define i2d_ECPKPARAMETERS                      i2d_UC_ECPKPARAMETERS
417160814Ssimon
418296465Sdelphij/*
419296465Sdelphij * These functions do not seem to exist! However, I'm paranoid... Original
420296465Sdelphij * command in x509v3.h: These functions are being redefined in another
421296465Sdelphij * directory, and clash when the linker is case-insensitive, so let's hide
422296465Sdelphij * them a little, by giving them an extra 'o' at the beginning of the name...
423296465Sdelphij */
424296465Sdelphij#  undef X509v3_cleanup_extensions
425296465Sdelphij#  define X509v3_cleanup_extensions               oX509v3_cleanup_extensions
426296465Sdelphij#  undef X509v3_add_extension
427296465Sdelphij#  define X509v3_add_extension                    oX509v3_add_extension
428296465Sdelphij#  undef X509v3_add_netscape_extensions
429296465Sdelphij#  define X509v3_add_netscape_extensions          oX509v3_add_netscape_extensions
430296465Sdelphij#  undef X509v3_add_standard_extensions
431296465Sdelphij#  define X509v3_add_standard_extensions          oX509v3_add_standard_extensions
432109998Smarkm
433296465Sdelphij# endif
434109998Smarkm
435296465Sdelphij#endif                          /* ! defined HEADER_VMS_IDHACKS_H */
436194206Ssimon/* This one clashes with CMS_data_create */
437194206Ssimon#undef cms_Data_create
438296465Sdelphij#define cms_Data_create                         priv_cms_Data_create
439