]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EST: Comment out X509_REQ_print calls on Android with BoringSSL
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 4 Dec 2015 16:26:06 +0000 (18:26 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Dec 2015 18:08:31 +0000 (20:08 +0200)
These were restored into BoringSSL in June 2015, but not all Android
branches include those changes. To fix the build, comment these call out
on Android for now if hs20-osu-client is built against BoringSSL. These
are used only for debugging purposes, so this is fine for Hotspot 2.0
functionality.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hs20/client/est.c

index 90a51d5ad13b7fe5ead2fe603a7b57e766d42cf2..9f1519bf4e4e9baefca5d57f9ae77395af778605 100644 (file)
@@ -498,7 +498,9 @@ static int generate_csr(struct hs20_osu_client *ctx, char *key_pem,
                char *txt;
                size_t rlen;
 
+#if !defined(ANDROID) || !defined(OPENSSL_IS_BORINGSSL)
                X509_REQ_print(out, req);
+#endif
                rlen = BIO_ctrl_pending(out);
                txt = os_malloc(rlen + 1);
                if (txt) {
@@ -517,7 +519,9 @@ static int generate_csr(struct hs20_osu_client *ctx, char *key_pem,
                FILE *f = fopen(csr_pem, "w");
                if (f == NULL)
                        goto fail;
+#if !defined(ANDROID) || !defined(OPENSSL_IS_BORINGSSL)
                X509_REQ_print_fp(f, req);
+#endif
                if (!PEM_write_X509_REQ(f, req)) {
                        fclose(f);
                        goto fail;