File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1200,6 +1200,30 @@ auto SSL_want_x509_lookup()(const(SSL)* s) { return (SSL_want(s) == SSL_X509_LOO
1200
1200
enum SSL_MAC_FLAG_READ_MAC_STREAM = 1 ;
1201
1201
enum SSL_MAC_FLAG_WRITE_MAC_STREAM = 2 ;
1202
1202
1203
+ static if (OPENSSL_VERSION_AT_LEAST (1 , 1 , 1 ))
1204
+ {
1205
+ /*
1206
+ * A callback for logging out TLS key material. This callback should log out
1207
+ * |line| followed by a newline.
1208
+ */
1209
+ alias SSL_CTX_keylog_cb_func = ExternC! (void function (
1210
+ const SSL * ssl, const char * line));
1211
+
1212
+ /*
1213
+ * SSL_CTX_set_keylog_callback configures a callback to log key material. This
1214
+ * is intended for debugging use with tools like Wireshark. The cb function
1215
+ * should log line followed by a newline.
1216
+ */
1217
+ void SSL_CTX_set_keylog_callback (SSL_CTX * ctx, SSL_CTX_keylog_cb_func cb);
1218
+
1219
+ /*
1220
+ * SSL_CTX_get_keylog_callback returns the callback configured by
1221
+ * SSL_CTX_set_keylog_callback.
1222
+ */
1223
+ SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback (const SSL_CTX * ctx);
1224
+ }
1225
+
1226
+
1203
1227
version (OPENSSL_NO_SSL_INTERN) {} else {
1204
1228
1205
1229
struct ssl_st
You can’t perform that action at this time.
0 commit comments