From 82271cee5b6369c263213845f8a81be40d5d5585 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 2 May 2000 12:16:01 +0000 Subject: In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>, "Jan Mikkelsen" correctly states that the OpenSSL header files have #include's and extern "C"'s in an incorrect order. Thusly fixed. --- crypto/x509/x509.h | 16 ++++++++++++---- crypto/x509/x509_vfy.h | 6 +++--- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'crypto/x509') diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index 0192272..57f9bab 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -59,10 +59,6 @@ #ifndef HEADER_X509_H #define HEADER_X509_H -#ifdef __cplusplus -extern "C" { -#endif - #ifdef VMS #undef X509_REVOKED_get_ext_by_critical #define X509_REVOKED_get_ext_by_critical X509_REVOKED_get_ext_by_critic @@ -87,6 +83,10 @@ extern "C" { #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef WIN32 /* Under Win32 this is defined in wincrypt.h */ #undef X509_NAME @@ -445,9 +445,17 @@ typedef struct pkcs8_priv_key_info_st STACK_OF(X509_ATTRIBUTE) *attributes; } PKCS8_PRIV_KEY_INFO; +#ifdef __cplusplus +} +#endif + #include #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef SSLEAY_MACROS #define X509_verify(a,r) ASN1_verify((int (*)())i2d_X509_CINF,a->sig_alg,\ a->signature,(char *)a->cert_info,r) diff --git a/crypto/x509/x509_vfy.h b/crypto/x509/x509_vfy.h index 4637aec..9173943 100644 --- a/crypto/x509/x509_vfy.h +++ b/crypto/x509/x509_vfy.h @@ -65,13 +65,13 @@ #ifndef HEADER_X509_VFY_H #define HEADER_X509_VFY_H +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - /* Outer object */ typedef struct x509_hash_dir_st { -- cgit v1.1