about summary refs log tree commit diff
path: root/src/libnm-base/nm-base.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-05-04 15:38:03 +0200
committerMichael Biebl <biebl@debian.org>2022-05-04 15:38:03 +0200
commitfc1f1b6881ed5199b4cc81face915769a3dc9897 (patch)
treed2b3f6b775541cece8de7ef9e687c72665f5d820 /src/libnm-base/nm-base.h
parent16cc38ed3d1761b178512c9a6c291ad366c6fad8 (diff)
parent9959fdb2e8ddd06f2161798ca0a39c77d67c652d (diff)
Update upstream source from tag 'upstream/1.37.92'
Update to upstream version '1.37.92'
with Debian dir 0128b715b1fc3e516169a4599c33567587d59088
Diffstat (limited to 'src/libnm-base/nm-base.h')
-rw-r--r--src/libnm-base/nm-base.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libnm-base/nm-base.h b/src/libnm-base/nm-base.h
index 0363e3b6..ff062a18 100644
--- a/src/libnm-base/nm-base.h
+++ b/src/libnm-base/nm-base.h
@@ -393,4 +393,20 @@ typedef struct {
 
 #define NM_BOND_PORT_QUEUE_ID_DEF 0
 
+/*****************************************************************************/
+
+/* NM_CRYPTO_ERROR is part of public API in libnm (implemented in libnm-core).
+ * We also want to use it without libnm-core. So this "_" variant is the internal
+ * version, with numerically same values -- to be used without libnm-base. */
+
+#define _NM_CRYPTO_ERROR_FAILED            0
+#define _NM_CRYPTO_ERROR_INVALID_DATA      1
+#define _NM_CRYPTO_ERROR_INVALID_PASSWORD  2
+#define _NM_CRYPTO_ERROR_UNKNOWN_CIPHER    3
+#define _NM_CRYPTO_ERROR_DECRYPTION_FAILED 4
+#define _NM_CRYPTO_ERROR_ENCRYPTION_FAILED 5
+
+#define _NM_CRYPTO_ERROR _nm_crypto_error_quark()
+GQuark _nm_crypto_error_quark(void);
+
 #endif /* __NM_LIBNM_BASE_H__ */