You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change moves socket security settings flom server_flags to separate
configuration variables for IMAP and SMTP, similar to what Delta Chat
Desktop already uses. This allows to completely separate IMAP and SMTP
server configuration.
* and may be set together with the username, password etc.
4182
-
* via dc_set_config() using the key "server_flags".
4174
+
* These constants configure socket security.
4183
4175
*
4184
-
* @addtogroup DC_LP
4176
+
* @addtogroup DC_SOCKET
4185
4177
* @{
4186
4178
*/
4187
4179
4188
-
4189
4180
/**
4190
-
* Force OAuth2 authorization. This flag does not skip automatic configuration.
4191
-
* Before calling dc_configure() with DC_LP_AUTH_OAUTH2 set,
4192
-
* the user has to confirm access at the URL returned by dc_get_oauth2_url().
4181
+
* @}
4193
4182
*/
4194
-
#defineDC_LP_AUTH_OAUTH2 0x2
4195
-
4196
4183
4197
4184
/**
4198
-
* Force NORMAL authorization, this is the default.
4199
-
* If this flag is set, automatic configuration is skipped.
4185
+
* Connect via SSL/TLS.
4200
4186
*/
4201
-
#defineDC_LP_AUTH_NORMAL 0x4
4187
+
#defineDC_SOCKET_SSL 1
4202
4188
4203
4189
4204
4190
/**
4205
-
* Connect to IMAP via STARTTLS.
4191
+
* Connect via STARTTLS.
4206
4192
* If this flag is set, automatic configuration is skipped.
4207
4193
*/
4208
-
#defineDC_LP_IMAP_SOCKET_STARTTLS 0x100
4194
+
#defineDC_SOCKET_STARTTLS 2
4209
4195
4210
4196
4211
4197
/**
4212
-
* Connect to IMAP via SSL.
4213
-
* If this flag is set, automatic configuration is skipped.
4198
+
* Connect unencrypted, this should not be used.
4214
4199
*/
4215
-
#defineDC_LP_IMAP_SOCKET_SSL 0x200
4200
+
#defineDC_SOCKET_PLAIN 3
4216
4201
4217
4202
4218
4203
/**
4219
-
* Connect to IMAP unencrypted, this should not be used.
4220
-
* If this flag is set, automatic configuration is skipped.
4204
+
* @}
4221
4205
*/
4222
-
#defineDC_LP_IMAP_SOCKET_PLAIN 0x400
4223
4206
4224
4207
4225
4208
/**
4226
-
* Connect to SMTP via STARTTLS.
4227
-
* If this flag is set, automatic configuration is skipped.
4209
+
* @defgroup DC_LP DC_LP
4210
+
*
4211
+
* Flags for configuring IMAP and SMTP servers.
4212
+
* These flags are optional
4213
+
* and may be set together with the username, password etc.
4214
+
* via dc_set_config() using the key "server_flags".
4215
+
*
4216
+
* @addtogroup DC_LP
4217
+
* @{
4228
4218
*/
4229
-
#defineDC_LP_SMTP_SOCKET_STARTTLS 0x10000
4230
4219
4231
4220
4232
4221
/**
4233
-
* Connect to SMTP via SSL.
4234
-
* If this flag is set, automatic configuration is skipped.
4222
+
* Force OAuth2 authorization. This flag does not skip automatic configuration.
4223
+
* Before calling dc_configure() with DC_LP_AUTH_OAUTH2 set,
4224
+
* the user has to confirm access at the URL returned by dc_get_oauth2_url().
4235
4225
*/
4236
-
#defineDC_LP_SMTP_SOCKET_SSL0x20000
4226
+
#defineDC_LP_AUTH_OAUTH2 0x2
4237
4227
4238
4228
4239
4229
/**
4240
-
* Connect to SMTP unencrypted, this should not be used.
4230
+
* Force NORMAL authorization, this is the default.
4241
4231
* If this flag is set, automatic configuration is skipped.
4242
4232
*/
4243
-
#defineDC_LP_SMTP_SOCKET_PLAIN 0x40000 ///<
4233
+
#defineDC_LP_AUTH_NORMAL 0x4
4234
+
4244
4235
4245
4236
/**
4246
4237
* @}
4247
4238
*/
4248
4239
4249
4240
#defineDC_LP_AUTH_FLAGS (DC_LP_AUTH_OAUTH2|DC_LP_AUTH_NORMAL) // if none of these flags are set, the default is chosen
4250
-
#defineDC_LP_IMAP_SOCKET_FLAGS (DC_LP_IMAP_SOCKET_STARTTLS|DC_LP_IMAP_SOCKET_SSL|DC_LP_IMAP_SOCKET_PLAIN) // if none of these flags are set, the default is chosen
4251
-
#defineDC_LP_SMTP_SOCKET_FLAGS (DC_LP_SMTP_SOCKET_STARTTLS|DC_LP_SMTP_SOCKET_SSL|DC_LP_SMTP_SOCKET_PLAIN) // if none of these flags are set, the default is chosen
0 commit comments