Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2016-07-12 02:49:59 +0300
committerDavid Benjamin <davidben@google.com>2016-07-12 02:54:32 +0300
commit19fdcb523402ed13ab798cf811fb0119e3e7b104 (patch)
tree5edf0035b6577e633bad92349994babd7f329574 /include/openssl/ec.h
parent0ee319322c06a27efd5ade28263fb3cc7a16263e (diff)
Don't #include header files in extern "C" blocks.
Now that we have template code in them, that doesn't work. Change-Id: I9ead5d202b0d8c9b848cf25a1f247f824394a168 Reviewed-on: https://boringssl-review.googlesource.com/8733 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include/openssl/ec.h')
-rw-r--r--include/openssl/ec.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index 8e90ae33..124b9894 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -353,9 +353,6 @@ typedef struct {
OPENSSL_EXPORT size_t EC_get_builtin_curves(EC_builtin_curve *out_curves,
size_t max_num_curves);
-/* Old code expects to get EC_KEY from ec.h. */
-#include <openssl/ec_key.h>
-
#if defined(__cplusplus)
} /* extern C */
@@ -373,6 +370,9 @@ using ScopedEC_POINT = ScopedType<EC_POINT, EC_POINT_free>;
#endif
+/* Old code expects to get EC_KEY from ec.h. */
+#include <openssl/ec_key.h>
+
#define EC_R_BUFFER_TOO_SMALL 100
#define EC_R_COORDINATES_OUT_OF_RANGE 101
#define EC_R_D2I_ECPKPARAMETERS_FAILURE 102