wolfSSL SSL/TLS library, support up to TLS1.3

Dependents:   CyaSSL-Twitter-OAuth4Tw Example-client-tls-cert TwitterReader TweetTest ... more

Committer:
wolfSSL
Date:
Sat Aug 18 22:20:43 2018 +0000
Revision:
15:117db924cf7c
Child:
16:8e0d178b1d1e
wolfSSL 3.15.3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wolfSSL 15:117db924cf7c 1 /* visibility.h
wolfSSL 15:117db924cf7c 2 *
wolfSSL 15:117db924cf7c 3 * Copyright (C) 2006-2017 wolfSSL Inc.
wolfSSL 15:117db924cf7c 4 *
wolfSSL 15:117db924cf7c 5 * This file is part of wolfSSL.
wolfSSL 15:117db924cf7c 6 *
wolfSSL 15:117db924cf7c 7 * wolfSSL is free software; you can redistribute it and/or modify
wolfSSL 15:117db924cf7c 8 * it under the terms of the GNU General Public License as published by
wolfSSL 15:117db924cf7c 9 * the Free Software Foundation; either version 2 of the License, or
wolfSSL 15:117db924cf7c 10 * (at your option) any later version.
wolfSSL 15:117db924cf7c 11 *
wolfSSL 15:117db924cf7c 12 * wolfSSL is distributed in the hope that it will be useful,
wolfSSL 15:117db924cf7c 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
wolfSSL 15:117db924cf7c 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
wolfSSL 15:117db924cf7c 15 * GNU General Public License for more details.
wolfSSL 15:117db924cf7c 16 *
wolfSSL 15:117db924cf7c 17 * You should have received a copy of the GNU General Public License
wolfSSL 15:117db924cf7c 18 * along with this program; if not, write to the Free Software
wolfSSL 15:117db924cf7c 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
wolfSSL 15:117db924cf7c 20 */
wolfSSL 15:117db924cf7c 21
wolfSSL 15:117db924cf7c 22
wolfSSL 15:117db924cf7c 23 /* Visibility control macros */
wolfSSL 15:117db924cf7c 24
wolfSSL 15:117db924cf7c 25 #ifndef WOLF_CRYPT_VISIBILITY_H
wolfSSL 15:117db924cf7c 26 #define WOLF_CRYPT_VISIBILITY_H
wolfSSL 15:117db924cf7c 27
wolfSSL 15:117db924cf7c 28
wolfSSL 15:117db924cf7c 29 /* for compatibility and so that fips is using same name of macro @wc_fips */
wolfSSL 15:117db924cf7c 30 /* The following visibility wrappers are for old FIPS. New FIPS should use
wolfSSL 15:117db924cf7c 31 * the same as a non-FIPS build. */
wolfSSL 15:117db924cf7c 32 #if defined(HAVE_FIPS) && \
wolfSSL 15:117db924cf7c 33 (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2))
wolfSSL 15:117db924cf7c 34 #include <cyassl/ctaocrypt/visibility.h>
wolfSSL 15:117db924cf7c 35 #define WOLFSSL_API CYASSL_API
wolfSSL 15:117db924cf7c 36 #define WOLFSSL_LOCAL CYASSL_LOCAL
wolfSSL 15:117db924cf7c 37 #else
wolfSSL 15:117db924cf7c 38
wolfSSL 15:117db924cf7c 39 /* WOLFSSL_API is used for the public API symbols.
wolfSSL 15:117db924cf7c 40 It either imports or exports (or does nothing for static builds)
wolfSSL 15:117db924cf7c 41
wolfSSL 15:117db924cf7c 42 WOLFSSL_LOCAL is used for non-API symbols (private).
wolfSSL 15:117db924cf7c 43 */
wolfSSL 15:117db924cf7c 44
wolfSSL 15:117db924cf7c 45 #if defined(BUILDING_WOLFSSL)
wolfSSL 15:117db924cf7c 46 #if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
wolfSSL 15:117db924cf7c 47 #define WOLFSSL_API __attribute__ ((visibility("default")))
wolfSSL 15:117db924cf7c 48 #define WOLFSSL_LOCAL __attribute__ ((visibility("hidden")))
wolfSSL 15:117db924cf7c 49 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
wolfSSL 15:117db924cf7c 50 #define WOLFSSL_API __global
wolfSSL 15:117db924cf7c 51 #define WOLFSSL_LOCAL __hidden
wolfSSL 15:117db924cf7c 52 #elif defined(_MSC_VER) || defined(__MINGW32__)
wolfSSL 15:117db924cf7c 53 #if defined(WOLFSSL_DLL)
wolfSSL 15:117db924cf7c 54 #define WOLFSSL_API __declspec(dllexport)
wolfSSL 15:117db924cf7c 55 #else
wolfSSL 15:117db924cf7c 56 #define WOLFSSL_API
wolfSSL 15:117db924cf7c 57 #endif
wolfSSL 15:117db924cf7c 58 #define WOLFSSL_LOCAL
wolfSSL 15:117db924cf7c 59 #else
wolfSSL 15:117db924cf7c 60 #define WOLFSSL_API
wolfSSL 15:117db924cf7c 61 #define WOLFSSL_LOCAL
wolfSSL 15:117db924cf7c 62 #endif /* HAVE_VISIBILITY */
wolfSSL 15:117db924cf7c 63 #else /* BUILDING_WOLFSSL */
wolfSSL 15:117db924cf7c 64 #if defined(_MSC_VER) || defined(__MINGW32__)
wolfSSL 15:117db924cf7c 65 #if defined(WOLFSSL_DLL)
wolfSSL 15:117db924cf7c 66 #define WOLFSSL_API __declspec(dllimport)
wolfSSL 15:117db924cf7c 67 #else
wolfSSL 15:117db924cf7c 68 #define WOLFSSL_API
wolfSSL 15:117db924cf7c 69 #endif
wolfSSL 15:117db924cf7c 70 #define WOLFSSL_LOCAL
wolfSSL 15:117db924cf7c 71 #else
wolfSSL 15:117db924cf7c 72 #define WOLFSSL_API
wolfSSL 15:117db924cf7c 73 #define WOLFSSL_LOCAL
wolfSSL 15:117db924cf7c 74 #endif
wolfSSL 15:117db924cf7c 75 #endif /* BUILDING_WOLFSSL */
wolfSSL 15:117db924cf7c 76
wolfSSL 15:117db924cf7c 77 #endif /* HAVE_FIPS */
wolfSSL 15:117db924cf7c 78 #endif /* WOLF_CRYPT_VISIBILITY_H */
wolfSSL 15:117db924cf7c 79
wolfSSL 15:117db924cf7c 80