diff options
author | Adam Langley <agl@google.com> | 2015-01-07 15:06:31 -0800 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-01-08 00:22:22 +0000 |
commit | 7cc3f992ae6e68c09a19e7d6ac1518a4aeee6b72 (patch) | |
tree | eb6b43b5c9f6002a88d90d52514af44c6fbf879f | |
parent | aac2f6a6a00921499ed85787aace287724fbc07e (diff) | |
download | boringssl-7cc3f992ae6e68c09a19e7d6ac1518a4aeee6b72.zip boringssl-7cc3f992ae6e68c09a19e7d6ac1518a4aeee6b72.tar.gz boringssl-7cc3f992ae6e68c09a19e7d6ac1518a4aeee6b72.tar.bz2 |
Add declarations for Android compatibility funcs.
Some parts of Android can't be updated yet so this change adds
declarations (only) for some functions that will be stubbed in
Android-specific code. (That Android-specific code will live in the
Android repo, not the BoringSSL repo.)
Trying to use these functions outside of Android will result in a link
error.
Change-Id: Iaa9b956e6408d21cd8fc34d90d9c15657e429877
Reviewed-on: https://boringssl-review.googlesource.com/2760
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
-rw-r--r-- | include/openssl/bn.h | 9 | ||||
-rw-r--r-- | include/openssl/cipher.h | 10 | ||||
-rw-r--r-- | include/openssl/err.h | 9 | ||||
-rw-r--r-- | include/openssl/ssl.h | 13 |
4 files changed, 41 insertions, 0 deletions
diff --git a/include/openssl/bn.h b/include/openssl/bn.h index 37a4bba..0631b8c 100644 --- a/include/openssl/bn.h +++ b/include/openssl/bn.h @@ -802,6 +802,15 @@ OPENSSL_EXPORT unsigned BN_num_bits_word(BN_ULONG l); #define BN_FLG_CONSTTIME 0x04 +/* Android compatibility section. + * + * These functions are declared, temporarily, for Android because + * wpa_supplicant will take a little time to sync with upstream. Outside of + * Android they'll have no definition. */ + +OPENSSL_EXPORT BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn); + + #if defined(__cplusplus) } /* extern C */ #endif diff --git a/include/openssl/cipher.h b/include/openssl/cipher.h index d78debf..b496c85 100644 --- a/include/openssl/cipher.h +++ b/include/openssl/cipher.h @@ -485,6 +485,16 @@ typedef struct evp_cipher_info_st { } EVP_CIPHER_INFO; +/* Android compatibility section. + * + * These functions are declared, temporarily, for Android because + * wpa_supplicant will take a little time to sync with upstream. Outside of + * Android they'll have no definition. */ + +OPENSSL_EXPORT const EVP_CIPHER *EVP_aes_192_ecb(void); +OPENSSL_EXPORT const EVP_CIPHER *EVP_aes_192_cbc(void); + + #if defined(__cplusplus) } /* extern C */ #endif diff --git a/include/openssl/err.h b/include/openssl/err.h index ca1f6c4..071c5ba 100644 --- a/include/openssl/err.h +++ b/include/openssl/err.h @@ -525,6 +525,15 @@ struct ERR_FNS_st { OPENSSL_EXPORT void ERR_load_BIO_strings(void); +/* Android compatibility section. + * + * These functions are declared, temporarily, for Android because + * wpa_supplicant will take a little time to sync with upstream. Outside of + * Android they'll have no definition. */ + +OPENSSL_EXPORT void ERR_remove_state(unsigned long pid); + + #if defined(__cplusplus) } /* extern C */ #endif diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index f6ad654..960bc86 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -2218,6 +2218,19 @@ OPENSSL_EXPORT void SSL_get_structure_sizes(size_t* ssl_size, size_t* ssl_ctx_si OPENSSL_EXPORT void ERR_load_SSL_strings(void); +/* Android compatibility section. + * + * These functions are declared, temporarily, for Android because + * wpa_supplicant will take a little time to sync with upstream. Outside of + * Android they'll have no definition. */ + +#define SSL_F_SSL_SET_SESSION_TICKET_EXT doesnt_exist + +OPENSSL_EXPORT int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len); +OPENSSL_EXPORT int SSL_set_session_secret_cb(SSL *s, void *cb, void *arg); +OPENSSL_EXPORT int SSL_set_session_ticket_ext_cb(SSL *s, void *cb, void *arg); + + #ifdef __cplusplus } #endif |