summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pjlib/src/pj/ssl_sock_ossl.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/pjlib/src/pj/ssl_sock_ossl.c b/pjlib/src/pj/ssl_sock_ossl.c
index 0d9f8a4f..84ff5d92 100644
--- a/pjlib/src/pj/ssl_sock_ossl.c
+++ b/pjlib/src/pj/ssl_sock_ossl.c
@@ -57,6 +57,15 @@
#endif
+/* Suppress compile warning of OpenSSL deprecation (OpenSSL is deprecated
+ * since MacOSX 10.7).
+ */
+#if defined(PJ_DARWINOS) && PJ_DARWINOS==1
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
+
/*
* SSL/TLS state enumeration.
*/
@@ -2698,5 +2707,12 @@ PJ_DEF(pj_status_t) pj_ssl_sock_renegotiate(pj_ssl_sock_t *ssock)
return status;
}
+
+/* Put back deprecation warning setting */
+#if defined(PJ_DARWINOS) && PJ_DARWINOS==1
+# pragma GCC diagnostic pop
+#endif
+
+
#endif /* PJ_HAS_SSL_SOCK */