@@ -1624,6 +1624,24 @@ public enum LoginsApiError {
1624
1624
1625
1625
1626
1626
1627
+ /**
1628
+ * NSS not initialized.
1629
+ */
1630
+ case NssUninitialized
1631
+ /**
1632
+ * NSS error during authentication
1633
+ */
1634
+ case NssAuthenticationError( reason: String
1635
+ )
1636
+ /**
1637
+ * error during authentication (in PrimaryPasswordAuthenticator)
1638
+ */
1639
+ case AuthenticationError( reason: String
1640
+ )
1641
+ /**
1642
+ * authentication has been cancelled.
1643
+ */
1644
+ case AuthenticationCanceled
1627
1645
/**
1628
1646
* The login data supplied is invalid. The reason will indicate what's wrong with it.
1629
1647
*/
@@ -1686,27 +1704,35 @@ public struct FfiConverterTypeLoginsApiError: FfiConverterRustBuffer {
1686
1704
1687
1705
1688
1706
1689
- case 1 : return . InvalidRecord(
1707
+ case 1 : return . NssUninitialized
1708
+ case 2 : return . NssAuthenticationError(
1690
1709
reason: try FfiConverterString . read ( from: & buf)
1691
1710
)
1692
- case 2 : return . NoSuchRecord (
1711
+ case 3 : return . AuthenticationError (
1693
1712
reason: try FfiConverterString . read ( from: & buf)
1694
1713
)
1695
- case 3 : return . MissingKey
1696
- case 4 : return . InvalidKey
1697
- case 5 : return . EncryptionFailed(
1714
+ case 4 : return . AuthenticationCanceled
1715
+ case 5 : return . InvalidRecord(
1698
1716
reason: try FfiConverterString . read ( from: & buf)
1699
1717
)
1700
- case 6 : return . DecryptionFailed (
1718
+ case 6 : return . NoSuchRecord (
1701
1719
reason: try FfiConverterString . read ( from: & buf)
1702
1720
)
1703
- case 7 : return . Interrupted(
1721
+ case 7 : return . MissingKey
1722
+ case 8 : return . InvalidKey
1723
+ case 9 : return . EncryptionFailed(
1704
1724
reason: try FfiConverterString . read ( from: & buf)
1705
1725
)
1706
- case 8 : return . SyncAuthInvalid (
1726
+ case 10 : return . DecryptionFailed (
1707
1727
reason: try FfiConverterString . read ( from: & buf)
1708
1728
)
1709
- case 9 : return . UnexpectedLoginsApiError(
1729
+ case 11 : return . Interrupted(
1730
+ reason: try FfiConverterString . read ( from: & buf)
1731
+ )
1732
+ case 12 : return . SyncAuthInvalid(
1733
+ reason: try FfiConverterString . read ( from: & buf)
1734
+ )
1735
+ case 13 : return . UnexpectedLoginsApiError(
1710
1736
reason: try FfiConverterString . read ( from: & buf)
1711
1737
)
1712
1738
@@ -1721,46 +1747,64 @@ public struct FfiConverterTypeLoginsApiError: FfiConverterRustBuffer {
1721
1747
1722
1748
1723
1749
1724
- case let . InvalidRecord ( reason ) :
1750
+ case . NssUninitialized :
1725
1751
writeInt ( & buf, Int32 ( 1 ) )
1752
+
1753
+
1754
+ case let . NssAuthenticationError( reason) :
1755
+ writeInt ( & buf, Int32 ( 2 ) )
1756
+ FfiConverterString . write ( reason, into: & buf)
1757
+
1758
+
1759
+ case let . AuthenticationError( reason) :
1760
+ writeInt ( & buf, Int32 ( 3 ) )
1761
+ FfiConverterString . write ( reason, into: & buf)
1762
+
1763
+
1764
+ case . AuthenticationCanceled:
1765
+ writeInt ( & buf, Int32 ( 4 ) )
1766
+
1767
+
1768
+ case let . InvalidRecord( reason) :
1769
+ writeInt ( & buf, Int32 ( 5 ) )
1726
1770
FfiConverterString . write ( reason, into: & buf)
1727
1771
1728
1772
1729
1773
case let . NoSuchRecord( reason) :
1730
- writeInt ( & buf, Int32 ( 2 ) )
1774
+ writeInt ( & buf, Int32 ( 6 ) )
1731
1775
FfiConverterString . write ( reason, into: & buf)
1732
1776
1733
1777
1734
1778
case . MissingKey:
1735
- writeInt ( & buf, Int32 ( 3 ) )
1779
+ writeInt ( & buf, Int32 ( 7 ) )
1736
1780
1737
1781
1738
1782
case . InvalidKey:
1739
- writeInt ( & buf, Int32 ( 4 ) )
1783
+ writeInt ( & buf, Int32 ( 8 ) )
1740
1784
1741
1785
1742
1786
case let . EncryptionFailed( reason) :
1743
- writeInt ( & buf, Int32 ( 5 ) )
1787
+ writeInt ( & buf, Int32 ( 9 ) )
1744
1788
FfiConverterString . write ( reason, into: & buf)
1745
1789
1746
1790
1747
1791
case let . DecryptionFailed( reason) :
1748
- writeInt ( & buf, Int32 ( 6 ) )
1792
+ writeInt ( & buf, Int32 ( 10 ) )
1749
1793
FfiConverterString . write ( reason, into: & buf)
1750
1794
1751
1795
1752
1796
case let . Interrupted( reason) :
1753
- writeInt ( & buf, Int32 ( 7 ) )
1797
+ writeInt ( & buf, Int32 ( 11 ) )
1754
1798
FfiConverterString . write ( reason, into: & buf)
1755
1799
1756
1800
1757
1801
case let . SyncAuthInvalid( reason) :
1758
- writeInt ( & buf, Int32 ( 8 ) )
1802
+ writeInt ( & buf, Int32 ( 12 ) )
1759
1803
FfiConverterString . write ( reason, into: & buf)
1760
1804
1761
1805
1762
1806
case let . UnexpectedLoginsApiError( reason) :
1763
- writeInt ( & buf, Int32 ( 9 ) )
1807
+ writeInt ( & buf, Int32 ( 13 ) )
1764
1808
FfiConverterString . write ( reason, into: & buf)
1765
1809
1766
1810
}
0 commit comments