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

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

Committer:
wolfSSL
Date:
Tue Aug 22 10:48:22 2017 +0000
Revision:
13:f67a6c6013ca
Parent:
11:cee25a834751
wolfSSL3.12.0 with TLS1.3

Who changed what in which revision?

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