@@ -274,10 +274,12 @@ char* dc_get_blobdir (const dc_context_t* context);
274
274
* - `mail_user` = IMAP-username, guessed if left out
275
275
* - `mail_pw` = IMAP-password (always needed)
276
276
* - `mail_port` = IMAP-port, guessed if left out
277
+ * - `mail_security`= IMAP-socket, one of @ref DC_SOCKET, defaults to #DC_SOCKET_AUTO
277
278
* - `send_server` = SMTP-server, guessed if left out
278
279
* - `send_user` = SMTP-user, guessed if left out
279
280
* - `send_pw` = SMTP-password, guessed if left out
280
281
* - `send_port` = SMTP-port, guessed if left out
282
+ * - `send_security`= SMTP-socket, one of @ref DC_SOCKET, defaults to #DC_SOCKET_AUTO
281
283
* - `server_flags` = IMAP-/SMTP-flags as a combination of @ref DC_LP flags, guessed if left out
282
284
* - `imap_certificate_checks` = how to check IMAP certificates, one of the @ref DC_CERTCK flags, defaults to #DC_CERTCK_AUTO (0)
283
285
* - `smtp_certificate_checks` = how to check SMTP certificates, one of the @ref DC_CERTCK flags, defaults to #DC_CERTCK_AUTO (0)
@@ -4176,19 +4178,25 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
4176
4178
* @defgroup DC_SOCKET DC_SOCKET
4177
4179
*
4178
4180
* These constants configure socket security.
4181
+ * To set socket security,
4182
+ * use dc_set_config() with the keys mail_security and/or send_security.
4183
+ * If these flags are not specified, #DC_SOCKET_AUTO is used.
4179
4184
*
4180
4185
* @addtogroup DC_SOCKET
4181
4186
* @{
4182
4187
*/
4183
4188
4184
4189
/**
4185
4190
* Choose socket security automatically.
4191
+ * Automatic configuration is disabled if another @ref DC_SOCKET flag is specified
4192
+ * or if server or port are specified.
4186
4193
*/
4187
4194
#define DC_SOCKET_AUTO 0
4188
4195
4189
4196
4190
4197
/**
4191
4198
* Connect via SSL/TLS.
4199
+ * If this flag is set, automatic configuration is skipped.
4192
4200
*/
4193
4201
#define DC_SOCKET_SSL 1
4194
4202
@@ -4202,6 +4210,7 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
4202
4210
4203
4211
/**
4204
4212
* Connect unencrypted, this should not be used.
4213
+ * If this flag is set, automatic configuration is skipped.
4205
4214
*/
4206
4215
#define DC_SOCKET_PLAIN 3
4207
4216
0 commit comments