2019-09-16 19:11:06 +08:00
|
|
|
from libp2p.security.exceptions import HandshakeFailure
|
|
|
|
|
|
|
|
|
|
|
|
class SecioException(HandshakeFailure):
|
2019-08-23 22:55:49 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-08-24 05:02:53 +08:00
|
|
|
class SelfEncryption(SecioException):
|
|
|
|
"""
|
|
|
|
Raised to indicate that a host is attempting to encrypt communications
|
|
|
|
with itself.
|
|
|
|
"""
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-08-23 22:55:49 +08:00
|
|
|
class PeerMismatchException(SecioException):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidSignatureOnExchange(SecioException):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-08-24 05:43:36 +08:00
|
|
|
class IncompatibleChoices(SecioException):
|
|
|
|
pass
|