aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/build/openssl-alpn.c
diff options
context:
space:
mode:
authorGravatar nnoble <nnoble@google.com>2014-12-12 15:43:38 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2014-12-12 16:36:51 -0800
commit69ac39f4be7485d885aa69df1a621379f6fbf7ad (patch)
tree82737227519871071638b3904c2ca8a4d4f0ae20 /test/build/openssl-alpn.c
parentbefd26501a6dbc0dca9d12444b4d245fa5560db0 (diff)
Makefile will now build zlib and/or OpenSSL if needed.
-) Detecting system and embedded presence of zlib and OpenSSL with ALPN. -) Automatically disabling secure targets if no OpenSSL present --> make all won't work if no OpenSSL is present, forcing the users to select the nonsecure Makefile targets explicitely. -) Removing build instructions for OpenSSL - this isn't really necessary anymore. -) Adding more blurb about OpenSSL and the new Makefile features. Change on 2014/12/12 by nnoble <nnoble@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82020890
Diffstat (limited to 'test/build/openssl-alpn.c')
-rw-r--r--test/build/openssl-alpn.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/build/openssl-alpn.c b/test/build/openssl-alpn.c
new file mode 100644
index 0000000000..f7365770f7
--- /dev/null
+++ b/test/build/openssl-alpn.c
@@ -0,0 +1,10 @@
+/* This is just a compilation test, to see if we have a version of OpenSSL with
+ ALPN support installed. */
+
+#include <stdlib.h>
+#include <openssl/ssl.h>
+
+int main() {
+ SSL_get0_alpn_selected(NULL, NULL, NULL);
+ return 0;
+}