diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index bccb269cc..08fb40897 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -5709,8 +5709,14 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot); #define DC_CERTCK_STRICT 1 /** - * Accept invalid certificates, including self-signed ones - * or having incorrect hostname. + * Accept certificates that are expired, self-signed + * or not valid for the server hostname. + */ +#define DC_CERTCK_ACCEPT_INVALID 2 + +/** + * For API compatibility only: Treat this as DC_CERTCK_ACCEPT_INVALID on reading. + * Must not be written. */ #define DC_CERTCK_ACCEPT_INVALID_CERTIFICATES 3 diff --git a/node/constants.js b/node/constants.js index ea5343179..d087c4543 100644 --- a/node/constants.js +++ b/node/constants.js @@ -1,6 +1,7 @@ // Generated! module.exports = { + DC_CERTCK_ACCEPT_INVALID: 2, DC_CERTCK_ACCEPT_INVALID_CERTIFICATES: 3, DC_CERTCK_AUTO: 0, DC_CERTCK_STRICT: 1, diff --git a/node/lib/constants.ts b/node/lib/constants.ts index ec0734ccc..6a2aaaaec 100644 --- a/node/lib/constants.ts +++ b/node/lib/constants.ts @@ -1,6 +1,7 @@ // Generated! export enum C { + DC_CERTCK_ACCEPT_INVALID = 2, DC_CERTCK_ACCEPT_INVALID_CERTIFICATES = 3, DC_CERTCK_AUTO = 0, DC_CERTCK_STRICT = 1,