dbeaver_credentials_error
Error codes written through the err out-parameter of get_dbeaver_credentials.
Definition dbeaver-creds.h:12
@ DBEAVER_CREDENTIALS_INVALID_CIPHERTEXT
The ciphertext was empty or not a multiple of the AES block size.
Definition dbeaver-creds.h:19
@ DBEAVER_CREDENTIALS_OK
Operation succeeded.
Definition dbeaver-creds.h:13
@ DBEAVER_CREDENTIALS_DECRYPTION_FAILED
The crypto backend rejected the ciphertext during decryption.
Definition dbeaver-creds.h:21
@ DBEAVER_CREDENTIALS_OUT_OF_MEMORY
A heap allocation failed while assembling the result.
Definition dbeaver-creds.h:25
@ DBEAVER_CREDENTIALS_EMPTY_PAYLOAD
Decryption produced no JSON payload after the IV prefix.
Definition dbeaver-creds.h:23
@ DBEAVER_CREDENTIALS_PATH_UNAVAILABLE
The platform-default credentials path could not be determined.
Definition dbeaver-creds.h:15
@ DBEAVER_CREDENTIALS_FILE_READ_FAILED
The credentials file could not be opened or fully read.
Definition dbeaver-creds.h:17
char * get_dbeaver_credentials(const char *path, enum dbeaver_credentials_error *err)
Read DBeaver's credentials-config.json, decrypt it, and return the JSON payload as a malloc-allocated...