diff options
Diffstat (limited to 'passlib/handlers/mssql.py')
-rw-r--r-- | passlib/handlers/mssql.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/passlib/handlers/mssql.py b/passlib/handlers/mssql.py index 97cc0cc..359d45a 100644 --- a/passlib/handlers/mssql.py +++ b/passlib/handlers/mssql.py @@ -112,6 +112,14 @@ class mssql2000(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): Optional salt string. If not specified, one will be autogenerated (this is recommended). If specified, it must be 4 bytes in length. + + :type relaxed: bool + :param relaxed: + By default, providing an invalid value for one of the other + keywords will result in a :exc:`ValueError`. If ``relaxed=True``, + and the error can be corrected, a :exc:`~passlib.exc.PasslibHashWarning` + will be issued instead. Correctable errors include + ``salt`` strings that are too long. """ #========================================================= #algorithm information @@ -182,6 +190,14 @@ class mssql2005(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): Optional salt string. If not specified, one will be autogenerated (this is recommended). If specified, it must be 4 bytes in length. + + :type relaxed: bool + :param relaxed: + By default, providing an invalid value for one of the other + keywords will result in a :exc:`ValueError`. If ``relaxed=True``, + and the error can be corrected, a :exc:`~passlib.exc.PasslibHashWarning` + will be issued instead. Correctable errors include + ``salt`` strings that are too long. """ #========================================================= #algorithm information |