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
9280304Sjkim *    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
56280304Sjkim# define HEADER_SYMHACKS_H
5768651Skris
58280304Sjkim# include <openssl/e_os2.h>
59109998Smarkm
60280304Sjkim/*
61280304Sjkim * Hacks to solve the problem with linkers incapable of handling very long
62280304Sjkim * symbol names.  In the case of VMS, the limit is 31 characters on VMS for
63280304Sjkim * VAX.
64280304Sjkim */
65280304Sjkim/*
66280304Sjkim * Note that this affects util/libeay.num and util/ssleay.num...  you may
67280304Sjkim * change those manually, but that's not recommended, as those files are
68280304Sjkim * controlled centrally and updated on Unix, and the central definition may
69280304Sjkim * disagree with yours, which in turn may come with shareable library
70280304Sjkim * incompatibilities.
71280304Sjkim */
72280304Sjkim# ifdef OPENSSL_SYS_VMS
7368651Skris
74109998Smarkm/* Hack a long name in crypto/ex_data.c */
75280304Sjkim#  undef CRYPTO_get_ex_data_implementation
76280304Sjkim#  define CRYPTO_get_ex_data_implementation       CRYPTO_get_ex_data_impl
77280304Sjkim#  undef CRYPTO_set_ex_data_implementation
78280304Sjkim#  define CRYPTO_set_ex_data_implementation       CRYPTO_set_ex_data_impl
79109998Smarkm
8068651Skris/* Hack a long name in crypto/asn1/a_mbstr.c */
81280304Sjkim#  undef ASN1_STRING_set_default_mask_asc
82280304Sjkim#  define ASN1_STRING_set_default_mask_asc        ASN1_STRING_set_def_mask_asc
8368651Skris
84280304Sjkim#  if 0                         /* No longer needed, since safestack macro
85280304Sjkim                                 * magic does the job */
8668651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */
87280304Sjkim#   undef i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO
88280304Sjkim#   define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO       i2d_ASN1_SET_OF_PKCS7_SIGINF
89280304Sjkim#   undef d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO
90280304Sjkim#   define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO       d2i_ASN1_SET_OF_PKCS7_SIGINF
91280304Sjkim#  endif
9268651Skris
93280304Sjkim#  if 0                         /* No longer needed, since safestack macro
94280304Sjkim                                 * magic does the job */
9568651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO) */
96280304Sjkim#   undef i2d_ASN1_SET_OF_PKCS7_RECIP_INFO
97280304Sjkim#   define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO        i2d_ASN1_SET_OF_PKCS7_RECINF
98280304Sjkim#   undef d2i_ASN1_SET_OF_PKCS7_RECIP_INFO
99280304Sjkim#   define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO        d2i_ASN1_SET_OF_PKCS7_RECINF
100280304Sjkim#  endif
10168651Skris
102280304Sjkim#  if 0                         /* No longer needed, since safestack macro
103280304Sjkim                                 * magic does the job */
10468651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) */
105280304Sjkim#   undef i2d_ASN1_SET_OF_ACCESS_DESCRIPTION
106280304Sjkim#   define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION      i2d_ASN1_SET_OF_ACC_DESC
107280304Sjkim#   undef d2i_ASN1_SET_OF_ACCESS_DESCRIPTION
108280304Sjkim#   define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION      d2i_ASN1_SET_OF_ACC_DESC
109280304Sjkim#  endif
11068651Skris
11168651Skris/* Hack the names created with DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE) */
112280304Sjkim#  undef PEM_read_NETSCAPE_CERT_SEQUENCE
113280304Sjkim#  define PEM_read_NETSCAPE_CERT_SEQUENCE         PEM_read_NS_CERT_SEQ
114280304Sjkim#  undef PEM_write_NETSCAPE_CERT_SEQUENCE
115280304Sjkim#  define PEM_write_NETSCAPE_CERT_SEQUENCE        PEM_write_NS_CERT_SEQ
116280304Sjkim#  undef PEM_read_bio_NETSCAPE_CERT_SEQUENCE
117280304Sjkim#  define PEM_read_bio_NETSCAPE_CERT_SEQUENCE     PEM_read_bio_NS_CERT_SEQ
118280304Sjkim#  undef PEM_write_bio_NETSCAPE_CERT_SEQUENCE
119280304Sjkim#  define PEM_write_bio_NETSCAPE_CERT_SEQUENCE    PEM_write_bio_NS_CERT_SEQ
120280304Sjkim#  undef PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE
121280304Sjkim#  define PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE PEM_write_cb_bio_NS_CERT_SEQ
12268651Skris
12368651Skris/* Hack the names created with DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO) */
124280304Sjkim#  undef PEM_read_PKCS8_PRIV_KEY_INFO
125280304Sjkim#  define PEM_read_PKCS8_PRIV_KEY_INFO            PEM_read_P8_PRIV_KEY_INFO
126280304Sjkim#  undef PEM_write_PKCS8_PRIV_KEY_INFO
127280304Sjkim#  define PEM_write_PKCS8_PRIV_KEY_INFO           PEM_write_P8_PRIV_KEY_INFO
128280304Sjkim#  undef PEM_read_bio_PKCS8_PRIV_KEY_INFO
129280304Sjkim#  define PEM_read_bio_PKCS8_PRIV_KEY_INFO        PEM_read_bio_P8_PRIV_KEY_INFO
130280304Sjkim#  undef PEM_write_bio_PKCS8_PRIV_KEY_INFO
131280304Sjkim#  define PEM_write_bio_PKCS8_PRIV_KEY_INFO       PEM_write_bio_P8_PRIV_KEY_INFO
132280304Sjkim#  undef PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO
133280304Sjkim#  define PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO    PEM_wrt_cb_bio_P8_PRIV_KEY_INFO
13468651Skris
13568651Skris/* Hack other PEM names */
136280304Sjkim#  undef PEM_write_bio_PKCS8PrivateKey_nid
137280304Sjkim#  define PEM_write_bio_PKCS8PrivateKey_nid       PEM_write_bio_PKCS8PrivKey_nid
13868651Skris
13968651Skris/* Hack some long X509 names */
140280304Sjkim#  undef X509_REVOKED_get_ext_by_critical
141280304Sjkim#  define X509_REVOKED_get_ext_by_critical        X509_REVOKED_get_ext_by_critic
142280304Sjkim#  undef X509_policy_tree_get0_user_policies
143280304Sjkim#  define X509_policy_tree_get0_user_policies     X509_pcy_tree_get0_usr_policies
144280304Sjkim#  undef X509_policy_node_get0_qualifiers
145280304Sjkim#  define X509_policy_node_get0_qualifiers        X509_pcy_node_get0_qualifiers
146280304Sjkim#  undef X509_STORE_CTX_get_explicit_policy
147280304Sjkim#  define X509_STORE_CTX_get_explicit_policy      X509_STORE_CTX_get_expl_policy
148280304Sjkim#  undef X509_STORE_CTX_get0_current_issuer
149280304Sjkim#  define X509_STORE_CTX_get0_current_issuer      X509_STORE_CTX_get0_cur_issuer
15068651Skris
15168651Skris/* Hack some long CRYPTO names */
152280304Sjkim#  undef CRYPTO_set_dynlock_destroy_callback
153280304Sjkim#  define CRYPTO_set_dynlock_destroy_callback     CRYPTO_set_dynlock_destroy_cb
154280304Sjkim#  undef CRYPTO_set_dynlock_create_callback
155280304Sjkim#  define CRYPTO_set_dynlock_create_callback      CRYPTO_set_dynlock_create_cb
156280304Sjkim#  undef CRYPTO_set_dynlock_lock_callback
157280304Sjkim#  define CRYPTO_set_dynlock_lock_callback        CRYPTO_set_dynlock_lock_cb
158280304Sjkim#  undef CRYPTO_get_dynlock_lock_callback
159280304Sjkim#  define CRYPTO_get_dynlock_lock_callback        CRYPTO_get_dynlock_lock_cb
160280304Sjkim#  undef CRYPTO_get_dynlock_destroy_callback
161280304Sjkim#  define CRYPTO_get_dynlock_destroy_callback     CRYPTO_get_dynlock_destroy_cb
162280304Sjkim#  undef CRYPTO_get_dynlock_create_callback
163280304Sjkim#  define CRYPTO_get_dynlock_create_callback      CRYPTO_get_dynlock_create_cb
164280304Sjkim#  undef CRYPTO_set_locked_mem_ex_functions
165280304Sjkim#  define CRYPTO_set_locked_mem_ex_functions      CRYPTO_set_locked_mem_ex_funcs
166280304Sjkim#  undef CRYPTO_get_locked_mem_ex_functions
167280304Sjkim#  define CRYPTO_get_locked_mem_ex_functions      CRYPTO_get_locked_mem_ex_funcs
16868651Skris
16968651Skris/* Hack some long SSL names */
170280304Sjkim#  undef SSL_CTX_set_default_verify_paths
171280304Sjkim#  define SSL_CTX_set_default_verify_paths        SSL_CTX_set_def_verify_paths
172280304Sjkim#  undef SSL_get_ex_data_X509_STORE_CTX_idx
173280304Sjkim#  define SSL_get_ex_data_X509_STORE_CTX_idx      SSL_get_ex_d_X509_STORE_CTX_idx
174280304Sjkim#  undef SSL_add_file_cert_subjects_to_stack
175280304Sjkim#  define SSL_add_file_cert_subjects_to_stack     SSL_add_file_cert_subjs_to_stk
176280304Sjkim#  undef SSL_add_dir_cert_subjects_to_stack
177280304Sjkim#  define SSL_add_dir_cert_subjects_to_stack      SSL_add_dir_cert_subjs_to_stk
178280304Sjkim#  undef SSL_CTX_use_certificate_chain_file
179280304Sjkim#  define SSL_CTX_use_certificate_chain_file      SSL_CTX_use_cert_chain_file
180280304Sjkim#  undef SSL_CTX_set_cert_verify_callback
181280304Sjkim#  define SSL_CTX_set_cert_verify_callback        SSL_CTX_set_cert_verify_cb
182280304Sjkim#  undef SSL_CTX_set_default_passwd_cb_userdata
183280304Sjkim#  define SSL_CTX_set_default_passwd_cb_userdata  SSL_CTX_set_def_passwd_cb_ud
184280304Sjkim#  undef SSL_COMP_get_compression_methods
185280304Sjkim#  define SSL_COMP_get_compression_methods        SSL_COMP_get_compress_methods
186280304Sjkim#  undef ssl_add_clienthello_renegotiate_ext
187280304Sjkim#  define ssl_add_clienthello_renegotiate_ext     ssl_add_clienthello_reneg_ext
188280304Sjkim#  undef ssl_add_serverhello_renegotiate_ext
189280304Sjkim#  define ssl_add_serverhello_renegotiate_ext     ssl_add_serverhello_reneg_ext
190280304Sjkim#  undef ssl_parse_clienthello_renegotiate_ext
191280304Sjkim#  define ssl_parse_clienthello_renegotiate_ext   ssl_parse_clienthello_reneg_ext
192280304Sjkim#  undef ssl_parse_serverhello_renegotiate_ext
193280304Sjkim#  define ssl_parse_serverhello_renegotiate_ext   ssl_parse_serverhello_reneg_ext
194280304Sjkim#  undef SSL_srp_server_param_with_username
195280304Sjkim#  define SSL_srp_server_param_with_username      SSL_srp_server_param_with_un
196280304Sjkim#  undef SSL_CTX_set_srp_client_pwd_callback
197280304Sjkim#  define SSL_CTX_set_srp_client_pwd_callback     SSL_CTX_set_srp_client_pwd_cb
198280304Sjkim#  undef SSL_CTX_set_srp_verify_param_callback
199280304Sjkim#  define SSL_CTX_set_srp_verify_param_callback   SSL_CTX_set_srp_vfy_param_cb
200280304Sjkim#  undef SSL_CTX_set_srp_username_callback
201280304Sjkim#  define SSL_CTX_set_srp_username_callback       SSL_CTX_set_srp_un_cb
202280304Sjkim#  undef ssl_add_clienthello_use_srtp_ext
203280304Sjkim#  define ssl_add_clienthello_use_srtp_ext        ssl_add_clihello_use_srtp_ext
204280304Sjkim#  undef ssl_add_serverhello_use_srtp_ext
205280304Sjkim#  define ssl_add_serverhello_use_srtp_ext        ssl_add_serhello_use_srtp_ext
206280304Sjkim#  undef ssl_parse_clienthello_use_srtp_ext
207280304Sjkim#  define ssl_parse_clienthello_use_srtp_ext      ssl_parse_clihello_use_srtp_ext
208280304Sjkim#  undef ssl_parse_serverhello_use_srtp_ext
209280304Sjkim#  define ssl_parse_serverhello_use_srtp_ext      ssl_parse_serhello_use_srtp_ext
210280304Sjkim#  undef SSL_CTX_set_next_protos_advertised_cb
211280304Sjkim#  define SSL_CTX_set_next_protos_advertised_cb   SSL_CTX_set_next_protos_adv_cb
212280304Sjkim#  undef SSL_CTX_set_next_proto_select_cb
213280304Sjkim#  define SSL_CTX_set_next_proto_select_cb        SSL_CTX_set_next_proto_sel_cb
214280304Sjkim#  undef ssl3_cbc_record_digest_supported
215280304Sjkim#  define ssl3_cbc_record_digest_supported        ssl3_cbc_record_digest_support
216280304Sjkim#  undef ssl_check_clienthello_tlsext_late
217280304Sjkim#  define ssl_check_clienthello_tlsext_late       ssl_check_clihello_tlsext_late
218280304Sjkim#  undef ssl_check_clienthello_tlsext_early
219280304Sjkim#  define ssl_check_clienthello_tlsext_early      ssl_check_clihello_tlsext_early
220205128Ssimon
22168651Skris/* Hack some long ENGINE names */
222280304Sjkim#  undef ENGINE_get_default_BN_mod_exp_crt
223280304Sjkim#  define ENGINE_get_default_BN_mod_exp_crt       ENGINE_get_def_BN_mod_exp_crt
224280304Sjkim#  undef ENGINE_set_default_BN_mod_exp_crt
225280304Sjkim#  define ENGINE_set_default_BN_mod_exp_crt       ENGINE_set_def_BN_mod_exp_crt
226280304Sjkim#  undef ENGINE_set_load_privkey_function
227280304Sjkim#  define ENGINE_set_load_privkey_function        ENGINE_set_load_privkey_fn
228280304Sjkim#  undef ENGINE_get_load_privkey_function
229280304Sjkim#  define ENGINE_get_load_privkey_function        ENGINE_get_load_privkey_fn
230280304Sjkim#  undef ENGINE_unregister_pkey_asn1_meths
231280304Sjkim#  define ENGINE_unregister_pkey_asn1_meths       ENGINE_unreg_pkey_asn1_meths
232280304Sjkim#  undef ENGINE_register_all_pkey_asn1_meths
233280304Sjkim#  define ENGINE_register_all_pkey_asn1_meths     ENGINE_reg_all_pkey_asn1_meths
234280304Sjkim#  undef ENGINE_set_default_pkey_asn1_meths
235280304Sjkim#  define ENGINE_set_default_pkey_asn1_meths      ENGINE_set_def_pkey_asn1_meths
236280304Sjkim#  undef ENGINE_get_pkey_asn1_meth_engine
237280304Sjkim#  define ENGINE_get_pkey_asn1_meth_engine        ENGINE_get_pkey_asn1_meth_eng
238280304Sjkim#  undef ENGINE_set_load_ssl_client_cert_function
239280304Sjkim#  define ENGINE_set_load_ssl_client_cert_function \
240280304Sjkim                                                ENGINE_set_ld_ssl_clnt_cert_fn
241280304Sjkim#  undef ENGINE_get_ssl_client_cert_function
242280304Sjkim#  define ENGINE_get_ssl_client_cert_function     ENGINE_get_ssl_client_cert_fn
24368651Skris
244109998Smarkm/* Hack some long OCSP names */
245280304Sjkim#  undef OCSP_REQUEST_get_ext_by_critical
246280304Sjkim#  define OCSP_REQUEST_get_ext_by_critical        OCSP_REQUEST_get_ext_by_crit
247280304Sjkim#  undef OCSP_BASICRESP_get_ext_by_critical
248280304Sjkim#  define OCSP_BASICRESP_get_ext_by_critical      OCSP_BASICRESP_get_ext_by_crit
249280304Sjkim#  undef OCSP_SINGLERESP_get_ext_by_critical
250280304Sjkim#  define OCSP_SINGLERESP_get_ext_by_critical     OCSP_SINGLERESP_get_ext_by_crit
25168651Skris
252109998Smarkm/* Hack some long DES names */
253280304Sjkim#  undef _ossl_old_des_ede3_cfb64_encrypt
254280304Sjkim#  define _ossl_old_des_ede3_cfb64_encrypt        _ossl_odes_ede3_cfb64_encrypt
255280304Sjkim#  undef _ossl_old_des_ede3_ofb64_encrypt
256280304Sjkim#  define _ossl_old_des_ede3_ofb64_encrypt        _ossl_odes_ede3_ofb64_encrypt
25768651Skris
258109998Smarkm/* Hack some long EVP names */
259280304Sjkim#  undef OPENSSL_add_all_algorithms_noconf
260280304Sjkim#  define OPENSSL_add_all_algorithms_noconf       OPENSSL_add_all_algo_noconf
261280304Sjkim#  undef OPENSSL_add_all_algorithms_conf
262280304Sjkim#  define OPENSSL_add_all_algorithms_conf         OPENSSL_add_all_algo_conf
263280304Sjkim#  undef EVP_PKEY_meth_set_verify_recover
264280304Sjkim#  define EVP_PKEY_meth_set_verify_recover        EVP_PKEY_meth_set_vrfy_recover
265109998Smarkm
266109998Smarkm/* Hack some long EC names */
267280304Sjkim#  undef EC_GROUP_set_point_conversion_form
268280304Sjkim#  define EC_GROUP_set_point_conversion_form      EC_GROUP_set_point_conv_form
269280304Sjkim#  undef EC_GROUP_get_point_conversion_form
270280304Sjkim#  define EC_GROUP_get_point_conversion_form      EC_GROUP_get_point_conv_form
271280304Sjkim#  undef EC_GROUP_clear_free_all_extra_data
272280304Sjkim#  define EC_GROUP_clear_free_all_extra_data      EC_GROUP_clr_free_all_xtra_data
273280304Sjkim#  undef EC_KEY_set_public_key_affine_coordinates
274280304Sjkim#  define EC_KEY_set_public_key_affine_coordinates \
275280304Sjkim                                                EC_KEY_set_pub_key_aff_coords
276280304Sjkim#  undef EC_POINT_set_Jprojective_coordinates_GFp
277280304Sjkim#  define EC_POINT_set_Jprojective_coordinates_GFp \
278109998Smarkm                                                EC_POINT_set_Jproj_coords_GFp
279280304Sjkim#  undef EC_POINT_get_Jprojective_coordinates_GFp
280280304Sjkim#  define EC_POINT_get_Jprojective_coordinates_GFp \
281109998Smarkm                                                EC_POINT_get_Jproj_coords_GFp
282280304Sjkim#  undef EC_POINT_set_affine_coordinates_GFp
283280304Sjkim#  define EC_POINT_set_affine_coordinates_GFp     EC_POINT_set_affine_coords_GFp
284280304Sjkim#  undef EC_POINT_get_affine_coordinates_GFp
285280304Sjkim#  define EC_POINT_get_affine_coordinates_GFp     EC_POINT_get_affine_coords_GFp
286280304Sjkim#  undef EC_POINT_set_compressed_coordinates_GFp
287280304Sjkim#  define EC_POINT_set_compressed_coordinates_GFp EC_POINT_set_compr_coords_GFp
288280304Sjkim#  undef EC_POINT_set_affine_coordinates_GF2m
289280304Sjkim#  define EC_POINT_set_affine_coordinates_GF2m    EC_POINT_set_affine_coords_GF2m
290280304Sjkim#  undef EC_POINT_get_affine_coordinates_GF2m
291280304Sjkim#  define EC_POINT_get_affine_coordinates_GF2m    EC_POINT_get_affine_coords_GF2m
292280304Sjkim#  undef EC_POINT_set_compressed_coordinates_GF2m
293280304Sjkim#  define EC_POINT_set_compressed_coordinates_GF2m \
294160814Ssimon                                                EC_POINT_set_compr_coords_GF2m
295280304Sjkim#  undef ec_GF2m_simple_group_clear_finish
296280304Sjkim#  define ec_GF2m_simple_group_clear_finish       ec_GF2m_simple_grp_clr_finish
297280304Sjkim#  undef ec_GF2m_simple_group_check_discriminant
298280304Sjkim#  define ec_GF2m_simple_group_check_discriminant ec_GF2m_simple_grp_chk_discrim
299280304Sjkim#  undef ec_GF2m_simple_point_clear_finish
300280304Sjkim#  define ec_GF2m_simple_point_clear_finish       ec_GF2m_simple_pt_clr_finish
301280304Sjkim#  undef ec_GF2m_simple_point_set_to_infinity
302280304Sjkim#  define ec_GF2m_simple_point_set_to_infinity    ec_GF2m_simple_pt_set_to_inf
303280304Sjkim#  undef ec_GF2m_simple_points_make_affine
304280304Sjkim#  define ec_GF2m_simple_points_make_affine       ec_GF2m_simple_pts_make_affine
305280304Sjkim#  undef ec_GF2m_simple_point_set_affine_coordinates
306280304Sjkim#  define ec_GF2m_simple_point_set_affine_coordinates \
307160814Ssimon                                                ec_GF2m_smp_pt_set_af_coords
308280304Sjkim#  undef ec_GF2m_simple_point_get_affine_coordinates
309280304Sjkim#  define ec_GF2m_simple_point_get_affine_coordinates \
310160814Ssimon                                                ec_GF2m_smp_pt_get_af_coords
311280304Sjkim#  undef ec_GF2m_simple_set_compressed_coordinates
312280304Sjkim#  define ec_GF2m_simple_set_compressed_coordinates \
313160814Ssimon                                                ec_GF2m_smp_set_compr_coords
314280304Sjkim#  undef ec_GFp_simple_group_set_curve_GFp
315280304Sjkim#  define ec_GFp_simple_group_set_curve_GFp       ec_GFp_simple_grp_set_curve_GFp
316280304Sjkim#  undef ec_GFp_simple_group_get_curve_GFp
317280304Sjkim#  define ec_GFp_simple_group_get_curve_GFp       ec_GFp_simple_grp_get_curve_GFp
318280304Sjkim#  undef ec_GFp_simple_group_clear_finish
319280304Sjkim#  define ec_GFp_simple_group_clear_finish        ec_GFp_simple_grp_clear_finish
320280304Sjkim#  undef ec_GFp_simple_group_set_generator
321280304Sjkim#  define ec_GFp_simple_group_set_generator       ec_GFp_simple_grp_set_generator
322280304Sjkim#  undef ec_GFp_simple_group_get0_generator
323280304Sjkim#  define ec_GFp_simple_group_get0_generator      ec_GFp_simple_grp_gt0_generator
324280304Sjkim#  undef ec_GFp_simple_group_get_cofactor
325280304Sjkim#  define ec_GFp_simple_group_get_cofactor        ec_GFp_simple_grp_get_cofactor
326280304Sjkim#  undef ec_GFp_simple_point_clear_finish
327280304Sjkim#  define ec_GFp_simple_point_clear_finish        ec_GFp_simple_pt_clear_finish
328280304Sjkim#  undef ec_GFp_simple_point_set_to_infinity
329280304Sjkim#  define ec_GFp_simple_point_set_to_infinity     ec_GFp_simple_pt_set_to_inf
330280304Sjkim#  undef ec_GFp_simple_points_make_affine
331280304Sjkim#  define ec_GFp_simple_points_make_affine        ec_GFp_simple_pts_make_affine
332280304Sjkim#  undef ec_GFp_simple_set_Jprojective_coordinates_GFp
333280304Sjkim#  define ec_GFp_simple_set_Jprojective_coordinates_GFp \
334109998Smarkm                                                ec_GFp_smp_set_Jproj_coords_GFp
335280304Sjkim#  undef ec_GFp_simple_get_Jprojective_coordinates_GFp
336280304Sjkim#  define ec_GFp_simple_get_Jprojective_coordinates_GFp \
337109998Smarkm                                                ec_GFp_smp_get_Jproj_coords_GFp
338280304Sjkim#  undef ec_GFp_simple_point_set_affine_coordinates_GFp
339280304Sjkim#  define ec_GFp_simple_point_set_affine_coordinates_GFp \
340109998Smarkm                                                ec_GFp_smp_pt_set_af_coords_GFp
341280304Sjkim#  undef ec_GFp_simple_point_get_affine_coordinates_GFp
342280304Sjkim#  define ec_GFp_simple_point_get_affine_coordinates_GFp \
343109998Smarkm                                                ec_GFp_smp_pt_get_af_coords_GFp
344280304Sjkim#  undef ec_GFp_simple_set_compressed_coordinates_GFp
345280304Sjkim#  define ec_GFp_simple_set_compressed_coordinates_GFp \
346109998Smarkm                                                ec_GFp_smp_set_compr_coords_GFp
347280304Sjkim#  undef ec_GFp_simple_point_set_affine_coordinates
348280304Sjkim#  define ec_GFp_simple_point_set_affine_coordinates \
349160814Ssimon                                                ec_GFp_smp_pt_set_af_coords
350280304Sjkim#  undef ec_GFp_simple_point_get_affine_coordinates
351280304Sjkim#  define ec_GFp_simple_point_get_affine_coordinates \
352160814Ssimon                                                ec_GFp_smp_pt_get_af_coords
353280304Sjkim#  undef ec_GFp_simple_set_compressed_coordinates
354280304Sjkim#  define ec_GFp_simple_set_compressed_coordinates \
355160814Ssimon                                                ec_GFp_smp_set_compr_coords
356280304Sjkim#  undef ec_GFp_simple_group_check_discriminant
357280304Sjkim#  define ec_GFp_simple_group_check_discriminant  ec_GFp_simple_grp_chk_discrim
358109998Smarkm
359160814Ssimon/* Hack som long STORE names */
360280304Sjkim#  undef STORE_method_set_initialise_function
361280304Sjkim#  define STORE_method_set_initialise_function    STORE_meth_set_initialise_fn
362280304Sjkim#  undef STORE_method_set_cleanup_function
363280304Sjkim#  define STORE_method_set_cleanup_function       STORE_meth_set_cleanup_fn
364280304Sjkim#  undef STORE_method_set_generate_function
365280304Sjkim#  define STORE_method_set_generate_function      STORE_meth_set_generate_fn
366280304Sjkim#  undef STORE_method_set_modify_function
367280304Sjkim#  define STORE_method_set_modify_function        STORE_meth_set_modify_fn
368280304Sjkim#  undef STORE_method_set_revoke_function
369280304Sjkim#  define STORE_method_set_revoke_function        STORE_meth_set_revoke_fn
370280304Sjkim#  undef STORE_method_set_delete_function
371280304Sjkim#  define STORE_method_set_delete_function        STORE_meth_set_delete_fn
372280304Sjkim#  undef STORE_method_set_list_start_function
373280304Sjkim#  define STORE_method_set_list_start_function    STORE_meth_set_list_start_fn
374280304Sjkim#  undef STORE_method_set_list_next_function
375280304Sjkim#  define STORE_method_set_list_next_function     STORE_meth_set_list_next_fn
376280304Sjkim#  undef STORE_method_set_list_end_function
377280304Sjkim#  define STORE_method_set_list_end_function      STORE_meth_set_list_end_fn
378280304Sjkim#  undef STORE_method_set_update_store_function
379280304Sjkim#  define STORE_method_set_update_store_function  STORE_meth_set_update_store_fn
380280304Sjkim#  undef STORE_method_set_lock_store_function
381280304Sjkim#  define STORE_method_set_lock_store_function    STORE_meth_set_lock_store_fn
382280304Sjkim#  undef STORE_method_set_unlock_store_function
383280304Sjkim#  define STORE_method_set_unlock_store_function  STORE_meth_set_unlock_store_fn
384280304Sjkim#  undef STORE_method_get_initialise_function
385280304Sjkim#  define STORE_method_get_initialise_function    STORE_meth_get_initialise_fn
386280304Sjkim#  undef STORE_method_get_cleanup_function
387280304Sjkim#  define STORE_method_get_cleanup_function       STORE_meth_get_cleanup_fn
388280304Sjkim#  undef STORE_method_get_generate_function
389280304Sjkim#  define STORE_method_get_generate_function      STORE_meth_get_generate_fn
390280304Sjkim#  undef STORE_method_get_modify_function
391280304Sjkim#  define STORE_method_get_modify_function        STORE_meth_get_modify_fn
392280304Sjkim#  undef STORE_method_get_revoke_function
393280304Sjkim#  define STORE_method_get_revoke_function        STORE_meth_get_revoke_fn
394280304Sjkim#  undef STORE_method_get_delete_function
395280304Sjkim#  define STORE_method_get_delete_function        STORE_meth_get_delete_fn
396280304Sjkim#  undef STORE_method_get_list_start_function
397280304Sjkim#  define STORE_method_get_list_start_function    STORE_meth_get_list_start_fn
398280304Sjkim#  undef STORE_method_get_list_next_function
399280304Sjkim#  define STORE_method_get_list_next_function     STORE_meth_get_list_next_fn
400280304Sjkim#  undef STORE_method_get_list_end_function
401280304Sjkim#  define STORE_method_get_list_end_function      STORE_meth_get_list_end_fn
402280304Sjkim#  undef STORE_method_get_update_store_function
403280304Sjkim#  define STORE_method_get_update_store_function  STORE_meth_get_update_store_fn
404280304Sjkim#  undef STORE_method_get_lock_store_function
405280304Sjkim#  define STORE_method_get_lock_store_function    STORE_meth_get_lock_store_fn
406280304Sjkim#  undef STORE_method_get_unlock_store_function
407280304Sjkim#  define STORE_method_get_unlock_store_function  STORE_meth_get_unlock_store_fn
408160814Ssimon
409238405Sjkim/* Hack some long TS names */
410280304Sjkim#  undef TS_RESP_CTX_set_status_info_cond
411280304Sjkim#  define TS_RESP_CTX_set_status_info_cond        TS_RESP_CTX_set_stat_info_cond
412280304Sjkim#  undef TS_RESP_CTX_set_clock_precision_digits
413280304Sjkim#  define TS_RESP_CTX_set_clock_precision_digits  TS_RESP_CTX_set_clk_prec_digits
414280304Sjkim#  undef TS_CONF_set_clock_precision_digits
415280304Sjkim#  define TS_CONF_set_clock_precision_digits      TS_CONF_set_clk_prec_digits
416238405Sjkim
417194206Ssimon/* Hack some long CMS names */
418280304Sjkim#  undef CMS_RecipientInfo_ktri_get0_algs
419280304Sjkim#  define CMS_RecipientInfo_ktri_get0_algs        CMS_RecipInfo_ktri_get0_algs
420280304Sjkim#  undef CMS_RecipientInfo_ktri_get0_signer_id
421280304Sjkim#  define CMS_RecipientInfo_ktri_get0_signer_id   CMS_RecipInfo_ktri_get0_sigr_id
422280304Sjkim#  undef CMS_OtherRevocationInfoFormat_it
423280304Sjkim#  define CMS_OtherRevocationInfoFormat_it        CMS_OtherRevocInfoFormat_it
424280304Sjkim#  undef CMS_KeyAgreeRecipientIdentifier_it
425280304Sjkim#  define CMS_KeyAgreeRecipientIdentifier_it      CMS_KeyAgreeRecipIdentifier_it
426280304Sjkim#  undef CMS_OriginatorIdentifierOrKey_it
427280304Sjkim#  define CMS_OriginatorIdentifierOrKey_it        CMS_OriginatorIdOrKey_it
428280304Sjkim#  undef cms_SignerIdentifier_get0_signer_id
429280304Sjkim#  define cms_SignerIdentifier_get0_signer_id     cms_SignerId_get0_signer_id
430194206Ssimon
431205128Ssimon/* Hack some long DTLS1 names */
432280304Sjkim#  undef dtls1_retransmit_buffered_messages
433280304Sjkim#  define dtls1_retransmit_buffered_messages      dtls1_retransmit_buffered_msgs
434205128Ssimon
435238405Sjkim/* Hack some long SRP names */
436280304Sjkim#  undef SRP_generate_server_master_secret
437280304Sjkim#  define SRP_generate_server_master_secret       SRP_gen_server_master_secret
438280304Sjkim#  undef SRP_generate_client_master_secret
439280304Sjkim#  define SRP_generate_client_master_secret       SRP_gen_client_master_secret
440238405Sjkim
441238405Sjkim/* Hack some long UI names */
442280304Sjkim#  undef UI_method_get_prompt_constructor
443280304Sjkim#  define UI_method_get_prompt_constructor        UI_method_get_prompt_constructr
444280304Sjkim#  undef UI_method_set_prompt_constructor
445280304Sjkim#  define UI_method_set_prompt_constructor        UI_method_set_prompt_constructr
446238405Sjkim
447280304Sjkim# endif                         /* defined OPENSSL_SYS_VMS */
448109998Smarkm
449238405Sjkim/* Case insensitive linking causes problems.... */
450280304Sjkim# if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2)
451280304Sjkim#  undef ERR_load_CRYPTO_strings
452280304Sjkim#  define ERR_load_CRYPTO_strings                 ERR_load_CRYPTOlib_strings
453280304Sjkim#  undef OCSP_crlID_new
454280304Sjkim#  define OCSP_crlID_new                          OCSP_crlID2_new
455109998Smarkm
456280304Sjkim#  undef d2i_ECPARAMETERS
457280304Sjkim#  define d2i_ECPARAMETERS                        d2i_UC_ECPARAMETERS
458280304Sjkim#  undef i2d_ECPARAMETERS
459280304Sjkim#  define i2d_ECPARAMETERS                        i2d_UC_ECPARAMETERS
460280304Sjkim#  undef d2i_ECPKPARAMETERS
461280304Sjkim#  define d2i_ECPKPARAMETERS                      d2i_UC_ECPKPARAMETERS
462280304Sjkim#  undef i2d_ECPKPARAMETERS
463280304Sjkim#  define i2d_ECPKPARAMETERS                      i2d_UC_ECPKPARAMETERS
464160814Ssimon
465280304Sjkim/*
466280304Sjkim * These functions do not seem to exist! However, I'm paranoid... Original
467280304Sjkim * command in x509v3.h: These functions are being redefined in another
468280304Sjkim * directory, and clash when the linker is case-insensitive, so let's hide
469280304Sjkim * them a little, by giving them an extra 'o' at the beginning of the name...
470280304Sjkim */
471280304Sjkim#  undef X509v3_cleanup_extensions
472280304Sjkim#  define X509v3_cleanup_extensions               oX509v3_cleanup_extensions
473280304Sjkim#  undef X509v3_add_extension
474280304Sjkim#  define X509v3_add_extension                    oX509v3_add_extension
475280304Sjkim#  undef X509v3_add_netscape_extensions
476280304Sjkim#  define X509v3_add_netscape_extensions          oX509v3_add_netscape_extensions
477280304Sjkim#  undef X509v3_add_standard_extensions
478280304Sjkim#  define X509v3_add_standard_extensions          oX509v3_add_standard_extensions
479109998Smarkm
480238405Sjkim/* This one clashes with CMS_data_create */
481280304Sjkim#  undef cms_Data_create
482280304Sjkim#  define cms_Data_create                         priv_cms_Data_create
483109998Smarkm
484280304Sjkim# endif
48568651Skris
486280304Sjkim#endif                          /* ! defined HEADER_VMS_IDHACKS_H */
487