move #include "ocsp.h" after #define WOLF_STACK_OF(x)

This commit is contained in:
Takashi Kojo
2019-03-23 08:03:45 +09:00
parent 744c247e92
commit 6c9e64129d

View File

@ -413,11 +413,6 @@ enum AlertLevel {
alert_fatal = 2
};
#if defined(HAVE_OCSP)
#include "wolfssl/ocsp.h"
#include "wolfssl/wolfcrypt/asn.h"
#endif
/* Maximum master key length (SECRET_LEN) */
#define WOLFSSL_MAX_MASTER_KEY_LENGTH 48
/* Maximum number of groups that can be set */
@ -775,6 +770,11 @@ WOLFSSL_API const char* wolfSSL_ERR_reason_error_string(unsigned long);
#define DECLARE_STACK_OF(x) WOLF_STACK_OF(x);
#endif
#if defined(HAVE_OCSP)
#include "wolfssl/ocsp.h"
#include "wolfssl/wolfcrypt/asn.h"
#endif
WOLFSSL_API int wolfSSL_sk_X509_push(WOLF_STACK_OF(WOLFSSL_X509_NAME)* sk,
WOLFSSL_X509* x509);
WOLFSSL_API WOLFSSL_X509* wolfSSL_sk_X509_pop(WOLF_STACK_OF(WOLFSSL_X509_NAME)* sk);