1 /* This file is in the public domain. */ 2 3 #include <sys/cdefs.h> 4 __FBSDID("$FreeBSD$"); 5 6 #include <stdbool.h> 7 #include <unistd.h> 8 9 #include <openssl/ssl.h> 10 11 static inline void 12 __SSLv3_dummy_method_impl(void) 13 { 14 static const char warning[] = "SSLv3 use is deprecated.\n"; 15 static bool once = false; 16 17 if (once) 18 return; 19 20 once = true; 21 write(STDERR_FILENO, warning, sizeof(warning) - 1); 22 } 23 24 const SSL_METHOD * 25 __SSLv3_method_fbsd12(void) 26 { 27 __SSLv3_dummy_method_impl(); 28 return (NULL); 29 } 30 __sym_compat(SSLv3_method, __SSLv3_method_fbsd12, OPENSSL_1_1_0); 31 32 const SSL_METHOD * 33 __SSLv3_client_method_fbsd12(void) 34 { 35 __SSLv3_dummy_method_impl(); 36 return (NULL); 37 } 38 __sym_compat(SSLv3_client_method, __SSLv3_client_method_fbsd12, OPENSSL_1_1_0); 39 40 const SSL_METHOD * 41 __SSLv3_server_method_fbsd12(void) 42 { 43 __SSLv3_dummy_method_impl(); 44 return (NULL); 45 } 46 __sym_compat(SSLv3_server_method, __SSLv3_server_method_fbsd12, OPENSSL_1_1_0); 47