diff options
| author | Michael Biebl <biebl@debian.org> | 2022-05-04 15:35:24 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2022-05-04 15:35:24 +0200 |
| commit | 9959fdb2e8ddd06f2161798ca0a39c77d67c652d (patch) | |
| tree | 2ce24a336d2b1c5fd5dec3090db312eded6c78ba /src/libnm-base/nm-base.h | |
| parent | 8c623dddbdebe354cb94bfc559a5371a14865317 (diff) | |
New upstream version 1.37.92 upstream/1.37.92
Diffstat (limited to 'src/libnm-base/nm-base.h')
| -rw-r--r-- | src/libnm-base/nm-base.h | 16 |
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__ */ |