Move SCT_LIST_free definition into a more logical place
authorRob Percival <robpercival@google.com>
Wed, 19 Oct 2016 14:42:05 +0000 (15:42 +0100)
committerRich Salz <rsalz@openssl.org>
Wed, 16 Nov 2016 21:28:08 +0000 (16:28 -0500)
This reflects its position in include/openssl/ct.h.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1548)
(cherry picked from commit e1940e9f7a73bf3a560fbe3550a9b69a612118ec)

crypto/ct/ct_oct.c
crypto/ct/ct_sct.c

index cacc3bd2b4fda583276c406cf125b921f465401c..d3edd39f5d9dc124a68c1b15490f59444dad82cc 100644 (file)
@@ -254,11 +254,6 @@ err:
     return -1;
 }
 
-void SCT_LIST_free(STACK_OF(SCT) *a)
-{
-    sk_SCT_pop_free(a, SCT_free);
-}
-
 STACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,
                             size_t len)
 {
index 92cee8d587dc16e7b53b40223e2ce57beec9d13e..cd2cf609672d5adc8570832323c11d293d4871cb 100644 (file)
@@ -45,6 +45,11 @@ void SCT_free(SCT *sct)
     OPENSSL_free(sct);
 }
 
+void SCT_LIST_free(STACK_OF(SCT) *a)
+{
+    sk_SCT_pop_free(a, SCT_free);
+}
+
 int SCT_set_version(SCT *sct, sct_version_t version)
 {
     if (version != SCT_VERSION_V1) {