SSL object for wrapping BIO objects. Instances returned by SSLContext.wrap_bio().
| 615 | |
| 616 | |
| 617 | class SSLObject: |
| 618 | """SSL object for wrapping BIO objects. Instances returned by SSLContext.wrap_bio().""" |
| 619 | |
| 620 | def __init__(self, *args, **kwargs): |
| 621 | raise TypeError( |
| 622 | f"{self.__class__.__name__} does not have a public constructor. " |
| 623 | f"Instances are returned by SSLContext.wrap_bio()." |
| 624 | ) |
| 625 | |
| 626 | @classmethod |
| 627 | def _create( |
| 628 | cls, |
| 629 | incoming, |
| 630 | outgoing, |
| 631 | server_side=False, |
| 632 | server_hostname=None, |
| 633 | session=None, |
| 634 | context=None, |
| 635 | ): |
| 636 | raise NotImplementedError("SSL is not supported in Pyodide") |
| 637 | |
| 638 | context = property(lambda self: None) |
| 639 | session = property(lambda self: None) |
| 640 | session_reused = property(lambda self: None) |
| 641 | server_side = property(lambda self: None) |
| 642 | server_hostname = property(lambda self: None) |
| 643 | |
| 644 | def read(self, len=1024, buffer=None): |
| 645 | pass |
| 646 | |
| 647 | def write(self, data): |
| 648 | pass |
| 649 | |
| 650 | def getpeercert(self, binary_form=False): |
| 651 | pass |
| 652 | |
| 653 | def get_verified_chain(self): |
| 654 | return [] |
| 655 | |
| 656 | def get_unverified_chain(self): |
| 657 | return [] |
| 658 | |
| 659 | def selected_npn_protocol(self): |
| 660 | warnings.warn( |
| 661 | "ssl NPN is deprecated, use ALPN instead", DeprecationWarning, stacklevel=2 |
| 662 | ) |
| 663 | |
| 664 | def selected_alpn_protocol(self): |
| 665 | pass |
| 666 | |
| 667 | def cipher(self): |
| 668 | pass |
| 669 | |
| 670 | def shared_ciphers(self): |
| 671 | pass |
| 672 | |
| 673 | def compression(self): |
| 674 | pass |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…