]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Switch deprecation method for BIO
authorRichard Levitte <levitte@openssl.org>
Fri, 20 Nov 2020 09:03:07 +0000 (10:03 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 4 Dec 2020 19:44:22 +0000 (20:44 +0100)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13460)

include/openssl/bio.h.in

index d52392def877183d3d179c6b829a3e4f81f9c6c1..6bb4876022ddc572693a56df14747d5725173217 100644 (file)
@@ -731,12 +731,13 @@ int BIO_sock_init(void);
 #  define BIO_sock_cleanup() while(0) continue
 # endif
 int BIO_set_tcp_ndelay(int sock, int turn_on);
-
-DEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))
-DEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))
-DEPRECATEDIN_1_1_0(int BIO_get_host_ip(const char *str, unsigned char *ip))
-DEPRECATEDIN_1_1_0(int BIO_get_accept_socket(char *host_port, int mode))
-DEPRECATEDIN_1_1_0(int BIO_accept(int sock, char **ip_port))
+# ifndef OPENSSL_NO_DEPRECATED_1_1_0
+OSSL_DEPRECATEDIN_1_1_0 struct hostent *BIO_gethostbyname(const char *name);
+OSSL_DEPRECATEDIN_1_1_0 int BIO_get_port(const char *str, unsigned short *port_ptr);
+OSSL_DEPRECATEDIN_1_1_0 int BIO_get_host_ip(const char *str, unsigned char *ip);
+OSSL_DEPRECATEDIN_1_1_0 int BIO_get_accept_socket(char *host_port, int mode);
+OSSL_DEPRECATEDIN_1_1_0 int BIO_accept(int sock, char **ip_port);
+# endif
 
 union BIO_sock_info_u {
     BIO_ADDR *addr;