From f6faa4b7105981ea8f9b29f2b2f7c83fbce1f0c4 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Tue, 19 Aug 2014 11:23:35 -0700 Subject: [PATCH] Export some extra functions and values. This change exports SSL_cutthrough_complete and EVP_EncodedLength (which were missed below) and also exports all ASN.1 "item" values because Android needs that. Change-Id: I6d10f935bb52ed6d682607a4016dd2b87758e3de Reviewed-on: https://boringssl-review.googlesource.com/1557 Reviewed-by: Adam Langley --- include/openssl/asn1t.h | 2 +- include/openssl/base64.h | 2 +- include/openssl/ssl.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/openssl/asn1t.h b/include/openssl/asn1t.h index 72eb2cbc..52f5cfc2 100644 --- a/include/openssl/asn1t.h +++ b/include/openssl/asn1t.h @@ -80,7 +80,7 @@ extern "C" { /* Macros for start and end of ASN1_ITEM definition */ #define ASN1_ITEM_start(itname) \ - const ASN1_ITEM itname##_it = { + OPENSSL_EXPORT const ASN1_ITEM itname##_it = { #define ASN1_ITEM_end(itname) \ }; diff --git a/include/openssl/base64.h b/include/openssl/base64.h index 521004a8..de94d8ec 100644 --- a/include/openssl/base64.h +++ b/include/openssl/base64.h @@ -106,7 +106,7 @@ OPENSSL_EXPORT size_t * to call |EVP_EncodeBlock| on an input of length |len|. This includes the * final NUL that |EVP_EncodeBlock| writes. It returns one on success or zero * on error. */ -int EVP_EncodedLength(size_t *out_len, size_t len); +OPENSSL_EXPORT int EVP_EncodedLength(size_t *out_len, size_t len); /* Decoding */ diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 5855b9fd..5a97d719 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1514,7 +1514,7 @@ extern "C" { #define SSL_in_before(a) (SSL_state(a)&SSL_ST_BEFORE) #define SSL_in_connect_init(a) (SSL_state(a)&SSL_ST_CONNECT) #define SSL_in_accept_init(a) (SSL_state(a)&SSL_ST_ACCEPT) -int SSL_cutthrough_complete(const SSL *s); +OPENSSL_EXPORT int SSL_cutthrough_complete(const SSL *s); /* The following 2 states are kept in ssl->rstate when reads fail, * you should not need these */