ec_ssl_SSL_CTX_fixup

March 26, 2020 Contributors

Name

ec_ssl_SSL_CTX_fixup — This hook provides an opportunity for modules to alter the context and add passphrase callbacks via OpenSSL functions

Synopsis

#include "hooks/core/ec_ssl_SSL_CTX_fixup.h"

| void **core_ec_ssl_SSL_CTX_fixup** ( | closure, |   |
|   | sslctx, |   |
|   | type, |   |
|   | domain, |   |
|   | certfile, |   |
|   | keyfile, |   |
|   | clientca, |   |
|   | cipher_list); |   |

void * <var class="pdparam">closure</var>;
struct ssl_ctx_st * <var class="pdparam">sslctx</var>;
int <var class="pdparam">type</var>;
const char * <var class="pdparam">domain</var>;
const char * <var class="pdparam">certfile</var>;
const char * <var class="pdparam">keyfile</var>;
const char * <var class="pdparam">clientca</var>;
const char * <var class="pdparam">cipher_list</var>;

Description

This hook is called after the SSL_CTX (struct ssl_ctx_st) context has been allocated, but before the private key has been loaded.

This hook provides an opportunity for modules to alter the context and add passphrase callbacks via these OpenSSL functions:

  • SSL_CTX_set_default_passwd_cb()
  • SSL_CTX_set_default_passwd_cb_userdata()

Parameters

closure

A pointer to the closure.

sslctx

An ec_ssl_ctx struct. For documentation of this data structure see “ec_ssl_ctx”.

type

One of EC_SSL_CLIENT or EC_SSL_SERVER.

domain

The delivery domain.

certfile

SSL certificate.

keyfile

The private key.

clientca

List of client CAs.

cipher_list

The list of supported ciphers.

Return Values

This hook returns void.

Threading

This hook will be called in the Scheduler thread.