diff options
author | Gilad Arnold <garnold@google.com> | 2015-08-26 12:57:02 -0700 |
---|---|---|
committer | Gilad Arnold <garnold@google.com> | 2015-08-26 14:53:06 -0700 |
commit | 929185047856de2ee2a0a4b8638847d8ac524b7f (patch) | |
tree | b699012af774a47ac6c0d2ebf7a8c2e4c1735ab8 | |
parent | f1080e8c3503091620747d32718184c30156b151 (diff) | |
download | tlsdate-929185047856de2ee2a0a4b8638847d8ac524b7f.tar.gz |
Change an argument type to compile against BoringSSL headers.
For some reason, there's a difference between how OpenSSL and BoringSSL
specify the type of this callback argument ('bio_info_cb *' vs
'bio_info_cb', respectively). While these should generally be
exchangeable, it turns out that using the former type with the latter
headers declarations fails due to an extra dereferencing level.
This fixes the problem with BoringSSL and is backward compatible when
building against OpenSSL.
Bug: 22373707
Change-Id: Ibad02749fc46f7be23d3e5b4fa205da130549c2b
-rw-r--r-- | src/proxy-bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proxy-bio.c b/src/proxy-bio.c index 2576112..7c25add 100644 --- a/src/proxy-bio.c +++ b/src/proxy-bio.c @@ -367,7 +367,7 @@ int proxy_puts (BIO *b, const char *str) return BIO_puts (b->next_bio, str); } -long proxy_callback_ctrl (BIO *b, int cmd, bio_info_cb *fp) +long proxy_callback_ctrl (BIO *b, int cmd, bio_info_cb fp) { if (!b->next_bio) return 0; |