Alexander Afanasyev | b1db7c6 | 2014-04-03 14:57:25 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Regents of the University of California. |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_SECURITY_OPENSSL_HPP |
| 8 | #define NDN_SECURITY_OPENSSL_HPP |
| 9 | |
| 10 | // suppress deprecation warnings in OSX >= 10.7 |
| 11 | |
| 12 | #if defined(__APPLE__) |
| 13 | |
| 14 | #ifdef __clang__ |
| 15 | #pragma clang diagnostic push |
| 16 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 17 | #endif // __clang__ |
| 18 | |
| 19 | #ifdef __GNUC__ |
| 20 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) |
| 21 | #pragma GCC diagnostic push |
| 22 | #endif |
| 23 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
| 24 | #endif // __GNUC__ |
| 25 | |
| 26 | #endif |
| 27 | |
| 28 | |
| 29 | #include <openssl/ssl.h> |
| 30 | #include <openssl/sha.h> |
| 31 | #include <openssl/rsa.h> |
| 32 | |
| 33 | |
| 34 | #if defined(__APPLE__) |
| 35 | |
| 36 | #ifdef __clang__ |
| 37 | #pragma clang diagnostic pop |
| 38 | #endif // __clang__ |
| 39 | |
| 40 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) |
| 41 | #pragma GCC diagnostic pop |
| 42 | #endif // __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) |
| 43 | |
| 44 | #endif |
| 45 | |
| 46 | |
| 47 | #endif // NDN_SECURITY_OPENSSL_HPP |