(self, alpn_protocols)
| 564 | self.sni_callback = shim_cb |
| 565 | |
| 566 | def set_alpn_protocols(self, alpn_protocols): |
| 567 | protos = bytearray() |
| 568 | for protocol in alpn_protocols: |
| 569 | b = bytes(protocol, 'ascii') |
| 570 | if len(b) == 0 or len(b) > 255: |
| 571 | raise SSLError('ALPN protocols must be 1 to 255 in length') |
| 572 | protos.append(len(b)) |
| 573 | protos.extend(b) |
| 574 | |
| 575 | self._set_alpn_protocols(protos) |
| 576 | |
| 577 | def _load_windows_store_certs(self, storename, purpose): |
| 578 | certs = bytearray() |
nothing calls this directly
no test coverage detected