Check whether AF_ALG sockets are supported on this host.
()
| 145 | return True |
| 146 | |
| 147 | def _have_socket_alg(): |
| 148 | """Check whether AF_ALG sockets are supported on this host.""" |
| 149 | try: |
| 150 | s = socket.socket(socket.AF_ALG, socket.SOCK_SEQPACKET, 0) |
| 151 | except (AttributeError, OSError): |
| 152 | return False |
| 153 | else: |
| 154 | s.close() |
| 155 | return True |
| 156 | |
| 157 | def _have_socket_qipcrtr(): |
| 158 | """Check whether AF_QIPCRTR sockets are supported on this host.""" |
no test coverage detected
searching dependent graphs…