(self, typ, name)
| 6991 | class LinuxKernelCryptoAPI(unittest.TestCase): |
| 6992 | # tests for AF_ALG |
| 6993 | def create_alg(self, typ, name): |
| 6994 | sock = socket.socket(socket.AF_ALG, socket.SOCK_SEQPACKET, 0) |
| 6995 | try: |
| 6996 | sock.bind((typ, name)) |
| 6997 | except FileNotFoundError as e: |
| 6998 | # type / algorithm is not available |
| 6999 | sock.close() |
| 7000 | raise unittest.SkipTest(str(e), typ, name) |
| 7001 | else: |
| 7002 | return sock |
| 7003 | |
| 7004 | # bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY, |
| 7005 | # at least on ppc64le architecture |
no test coverage detected