@@ -973,17 +973,18 @@ def detect_readline_curses(self): |
|
|
973 |
973 |
|
974 |
974 |
def detect_crypt(self): |
975 |
975 |
# crypt module. |
|
976 |
+if VXWORKS: |
|
977 |
+# bpo-31904: crypt() function is not provided by VxWorks. |
|
978 |
+# DES_crypt() OpenSSL provides is too weak to implement |
|
979 |
+# the encryption. |
|
980 |
+return |
|
981 |
+ |
976 |
982 |
if self.compiler.find_library_file(self.lib_dirs, 'crypt'): |
977 |
983 |
libs = ['crypt'] |
978 |
984 |
else: |
979 |
985 |
libs = [] |
980 |
986 |
|
981 |
|
-if not VXWORKS: |
982 |
|
-self.add(Extension('_crypt', ['_cryptmodule.c'], |
983 |
|
-libraries=libs)) |
984 |
|
-elif self.compiler.find_library_file(self.lib_dirs, 'OPENSSL'): |
985 |
|
-libs = ['OPENSSL'] |
986 |
|
-self.add(Extension('_crypt', ['_cryptmodule.c'], |
|
987 |
+self.add(Extension('_crypt', ['_cryptmodule.c'], |
987 |
988 |
libraries=libs)) |
988 |
989 |
|
989 |
990 |
def detect_socket(self): |