/*
- * Copyright (c) 2012 William Pitcock <nenolod@dereferenced.org>.
+ * Copyright (c) 2012 Ariadne Conill <ariadne@dereferenced.org>.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
unsigned int CLICAP_TLS = 0;
+static struct ClientCapability capdata_tls = {
+ .flags = CLICAP_FLAGS_PRIORITY,
+};
+
mapi_cap_list_av2 starttls_cap_list[] = {
- { MAPI_CAP_CLIENT, "tls", NULL, &CLICAP_TLS },
+ { MAPI_CAP_CLIENT, "tls", &capdata_tls, &CLICAP_TLS },
{ 0, NULL, NULL, NULL }
};
client_p->localClient->F = F[0];
client_p->localClient->ssl_ctl = ctl;
SetSSL(client_p);
+ SetSecure(client_p);
}
}