summaryrefslogtreecommitdiff
path: root/include/mailutils/stream.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-07-11 11:14:16 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2015-07-11 11:14:16 +0300
commit6ff197ca52419567c123c4e9069e207ec55aadcb (patch)
tree762998a786886e85c743f96ea91e93555f337108 /include/mailutils/stream.h
parent4d642922b63bdf1a312b5f76b1f827e794e23da6 (diff)
downloadmailutils-6ff197ca52419567c123c4e9069e207ec55aadcb.tar.gz
mailutils-6ff197ca52419567c123c4e9069e207ec55aadcb.tar.bz2
Log ciphersuite info after successful initiation of TLS connection
* include/mailutils/stream.h (MU_IOCTL_TLSSTREAM): New ioctl code. (MU_IOCTL_TLS_GET_CIPHER_INFO): New ioctl opcode. * libmailutils/property/assocprop.c (_assoc_prop_fill) (_assoc_prop_save): allow for NULL stream pointer. * libmu_auth/tls.c (_tls_io_ioctl,_tls_ioctl): Handle MU_IOCTL_TLSSTREAM/MU_IOCTL_TLS_GET_CIPHER_INFO ioctl. * imap4d/io.c (log_cipher): New function. (io_setio, imap4d_init_tls_server): Call log_cipher after successfully establishing the TLS connection. * imap4d/starttls.c (tls_encryption_on): Remove diagnostic output. * pop3d/extra.c (log_cipher): New function. (pop3d_setio,pop3d_init_tls_server): Call log_cipher after successfully establishing the TLS connection.
Diffstat (limited to 'include/mailutils/stream.h')
-rw-r--r--include/mailutils/stream.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/mailutils/stream.h b/include/mailutils/stream.h
index 6230ca2ed..07f99c30a 100644
--- a/include/mailutils/stream.h
+++ b/include/mailutils/stream.h
@@ -77,7 +77,8 @@ enum mu_buffer_type
#define MU_IOCTL_TOPSTREAM 12 /* Same as MU_IOCTL_SUBSTREAM, but
always returns the topmost substream.
*/
-
+#define MU_IOCTL_TLSSTREAM 13 /* TLS stream */
+
/* Opcodes common for various families */
#define MU_IOCTL_OP_GET 0
#define MU_IOCTL_OP_SET 1
@@ -192,6 +193,13 @@ enum mu_buffer_type
*/
#define MU_IOCTL_FILTER_GET_DISABLED 0
#define MU_IOCTL_FILTER_SET_DISABLED 1
+
+ /* TLS transport streams */
+ /* Get cipher info.
+ Arg: mu_property_t *
+ On success, the following keys are defined: "protocol", "cipher", "mac"
+ */
+#define MU_IOCTL_TLS_GET_CIPHER_INFO 0
#define MU_TRANSPORT_INPUT 0
#define MU_TRANSPORT_OUTPUT 1

Return to:

Send suggestions and report system problems to the System administrator.