Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
steps:
- name: 'Looking up cache'
id: cache-openssl
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/openssl/
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.openssl.version }}
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
# Restore or install build openssl version
- name: 'Restore openssl from cache'
id: lookup-openssl
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/openssl/
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.openssl.version }}
Expand Down
24 changes: 24 additions & 0 deletions source/deimos/openssl/ssl.di
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,30 @@ auto SSL_want_x509_lookup()(const(SSL)* s) { return (SSL_want(s) == SSL_X509_LOO
enum SSL_MAC_FLAG_READ_MAC_STREAM = 1;
enum SSL_MAC_FLAG_WRITE_MAC_STREAM = 2;

static if (OPENSSL_VERSION_AT_LEAST(1, 1, 1))
{
/*
* A callback for logging out TLS key material. This callback should log out
* |line| followed by a newline.
*/
alias SSL_CTX_keylog_cb_func = ExternC!(void function(
const SSL *ssl, const char *line));

/*
* SSL_CTX_set_keylog_callback configures a callback to log key material. This
* is intended for debugging use with tools like Wireshark. The cb function
* should log line followed by a newline.
*/
void SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);

/*
* SSL_CTX_get_keylog_callback returns the callback configured by
* SSL_CTX_set_keylog_callback.
*/
SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);
}


version(OPENSSL_NO_SSL_INTERN) {} else {

struct ssl_st
Expand Down