This file is indexed.

/usr/lib/python3/dist-packages/sshpubkeys/exceptions.py is in python3-sshpubkeys 2.2.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# pylint:disable=line-too-long

""" Exceptions for sshpubkeys """


class InvalidKeyException(Exception):
    """ Invalid key - something is wrong with the key, and it should not be accepted, as OpenSSH will not work with it. """
    pass


class InvalidKeyLengthException(InvalidKeyException):
    """ Invalid key length - either too short or too long.

    See also TooShortKeyException and TooLongKeyException """
    pass


class TooShortKeyException(InvalidKeyLengthException):
    """ Key is shorter than what the specification allows """
    pass


class TooLongKeyException(InvalidKeyLengthException):
    """ Key is longer than what the specification allows """
    pass


class InvalidTypeException(InvalidKeyException):
    """ Key type is invalid or unrecognized """
    pass


class MalformedDataException(InvalidKeyException):
    """ The key is invalid - unable to parse the data. The data may be corrupted, truncated, or includes extra content that is not allowed. """
    pass


class InvalidOptionsException(MalformedDataException):
    """ Options string is invalid: it contains invalid characters, unrecognized options, or is otherwise malformed. """
    pass


class InvalidOptionNameException(InvalidOptionsException):
    """ Invalid option name (contains disallowed characters, or is unrecognized.) """
    pass


class UnknownOptionNameException(InvalidOptionsException):
    """ Unrecognized option name. """
    pass


class MissingMandatoryOptionValueException(InvalidOptionsException):
    """ Mandatory option value is missing. """
    pass