Moves SCT struct typedef into ossl_typ.h
authorRob Percival <robpercival@google.com>
Thu, 25 Feb 2016 16:24:10 +0000 (16:24 +0000)
committerRich Salz <rsalz@openssl.org>
Fri, 26 Feb 2016 19:57:29 +0000 (14:57 -0500)
Reviewed-by: Ben Laurie <ben@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
include/openssl/ct.h
include/openssl/ossl_typ.h

index 0ea051b..520174f 100644 (file)
@@ -58,6 +58,7 @@
 #ifndef HEADER_CT_H
 # define HEADER_CT_H
 
+# include <openssl/ossl_typ.h>
 # include <openssl/safestack.h>
 # include <openssl/x509.h>
 
@@ -82,12 +83,6 @@ typedef enum {
     SCT_VERSION_V1 = 0
 } sct_version_t;
 
-/*******************
- * Data structures *
- *******************/
-
-/* Signed Certificate Timestamp (SCT) */
-typedef struct sct_st SCT;
 DEFINE_STACK_OF(SCT)
 
 /*****************
index d29be73..536ffa2 100644 (file)
@@ -200,6 +200,8 @@ typedef struct ocsp_req_ctx_st OCSP_REQ_CTX;
 typedef struct ocsp_response_st OCSP_RESPONSE;
 typedef struct ocsp_responder_id_st OCSP_RESPID;
 
+typedef struct sct_st SCT;
+
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \
     defined(INTMAX_MAX) && defined(UINTMAX_MAX)
 typedef intmax_t ossl_intmax_t;