]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/symhacks.h
Copyright consolidation 03/10
[thirdparty/openssl.git] / include / openssl / symhacks.h
CommitLineData
21dcbebc
RS
1/*
2 * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
8c197cc5 3 *
21dcbebc
RS
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8c197cc5
UM
8 */
9
9fc25706 10#ifndef HEADER_SYMHACKS_H
0f113f3e 11# define HEADER_SYMHACKS_H
8c197cc5 12
0f113f3e 13# include <openssl/e_os2.h>
cf1b7d96 14
8711efb4 15/* Case insensitive linking causes problems.... */
1fbab1dc 16# if defined(OPENSSL_SYS_VMS)
0f113f3e
MC
17# undef ERR_load_CRYPTO_strings
18# define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings
19# undef OCSP_crlID_new
20# define OCSP_crlID_new OCSP_crlID2_new
21
22# undef d2i_ECPARAMETERS
23# define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS
24# undef i2d_ECPARAMETERS
25# define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS
26# undef d2i_ECPKPARAMETERS
27# define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS
28# undef i2d_ECPKPARAMETERS
29# define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS
30
31/*
32 * These functions do not seem to exist! However, I'm paranoid... Original
33 * command in x509v3.h: These functions are being redefined in another
34 * directory, and clash when the linker is case-insensitive, so let's hide
35 * them a little, by giving them an extra 'o' at the beginning of the name...
36 */
37# undef X509v3_cleanup_extensions
38# define X509v3_cleanup_extensions oX509v3_cleanup_extensions
39# undef X509v3_add_extension
40# define X509v3_add_extension oX509v3_add_extension
41# undef X509v3_add_netscape_extensions
42# define X509v3_add_netscape_extensions oX509v3_add_netscape_extensions
43# undef X509v3_add_standard_extensions
44# define X509v3_add_standard_extensions oX509v3_add_standard_extensions
cf1b7d96 45
b35a1310 46/* This one clashes with CMS_data_create */
0f113f3e
MC
47# undef cms_Data_create
48# define cms_Data_create priv_cms_Data_create
9fc25706 49
0f113f3e 50# endif
9fc25706 51
0f113f3e 52#endif /* ! defined HEADER_VMS_IDHACKS_H */