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