Browse Source

Don't include openssl/ec_key.h under extern "C".

Reportedly some combination of C++ modules and old clang gets upset.
That seems an inadvisable combination, but including headers under
extern "C" is rude, so fix it.

Change-Id: I12f873e1be41697b67f2b1145387a3c6fc769c28
Reviewed-on: https://boringssl-review.googlesource.com/c/33024
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
kris/onging/CECPQ3_patch15
David Benjamin 6 years ago
committed by CQ bot account: commit-bot@chromium.org
parent
commit
f09df6930f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      include/openssl/ec.h

+ 5
- 3
include/openssl/ec.h View File

@@ -348,13 +348,15 @@ OPENSSL_EXPORT size_t EC_get_builtin_curves(EC_builtin_curve *out_curves,
// EC_POINT_clear_free calls |EC_POINT_free|. // EC_POINT_clear_free calls |EC_POINT_free|.
OPENSSL_EXPORT void EC_POINT_clear_free(EC_POINT *point); OPENSSL_EXPORT void EC_POINT_clear_free(EC_POINT *point);


// Old code expects to get EC_KEY from ec.h.
#include <openssl/ec_key.h>



#if defined(__cplusplus) #if defined(__cplusplus)
} // extern C } // extern C
#endif


// Old code expects to get EC_KEY from ec.h.
#include <openssl/ec_key.h>

#if defined(__cplusplus)
extern "C++" { extern "C++" {


BSSL_NAMESPACE_BEGIN BSSL_NAMESPACE_BEGIN


Loading…
Cancel
Save