aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-06 02:54:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-01-07 18:00:51 +0000
commit4a1f3f274108e25b97bd9870170fe2970892e155 (patch)
tree45e10bfbd19cec70d44d079d677b9852f12a501e /include
parent858857157290dd35145b14044ae96be9cd8eb0df (diff)
downloadopenssl-4a1f3f274108e25b97bd9870170fe2970892e155.zip
openssl-4a1f3f274108e25b97bd9870170fe2970892e155.tar.gz
openssl-4a1f3f274108e25b97bd9870170fe2970892e155.tar.bz2
Only declare stacks in headers
Don't define stacks in C source files: it causes warnings about unused functions in some compilers. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/internal/dane.h2
-rw-r--r--include/openssl/ssl.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/dane.h b/include/internal/dane.h
index cbe33f3..0d35cc2 100644
--- a/include/internal/dane.h
+++ b/include/internal/dane.h
@@ -97,6 +97,8 @@ typedef struct danetls_record_st {
EVP_PKEY *spki;
} danetls_record;
+DEFINE_STACK_OF(danetls_record)
+
/*
* Shared DANE context
*/
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 62325c5..fdee483 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -327,8 +327,6 @@ typedef struct ssl_conf_ctx_st SSL_CONF_CTX;
DEFINE_CONST_STACK_OF(SSL_CIPHER)
-DECLARE_STACK_OF(danetls_record)
-
/* SRTP protection profiles for use with the use_srtp extension (RFC 5764)*/
typedef struct srtp_protection_profile_st {
const char *name;