MacOS compile failed because grpc use deprecated API
Created by: reyoung
The error message like this
/usr/local/include/openssl/ssl.h:1608:1: note: 'TLSv1_2_method' has been explicitly marked deprecated here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
^
/usr/local/include/openssl/opensslconf.h:130:34: note: expanded from macro 'DEPRECATEDIN_1_1_0'
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
^
/usr/local/include/openssl/opensslconf.h:105:53: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
src/core/tsi/ssl_transport_security.c:1473:43: error: 'TLSv1_2_method' is deprecated
[-Werror,-Wdeprecated-declarations]
impl->ssl_contexts[i] = SSL_CTX_new(TLSv1_2_method());
^
/usr/local/include/openssl/ssl.h:1608:1: note: 'TLSv1_2_method' has been explicitly marked deprecated here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
^
/usr/local/include/openssl/opensslconf.h:130:34: note: expanded from macro 'DEPRECATEDIN_1_1_0'
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
^
/usr/local/include/openssl/opensslconf.h:105:53: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
2 errors generated.