Skip to main content

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 (void *closure,
                                struct ssl_ctx_st *sslctx,
                                int type,
                                const char *domain,
                                const char *certfile,
                                const char *keyfile,
                                const char *clientca,
                                const char *cipher_list);

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

This struct would be passed as-is to OpenSSL functions as the SSL_CTX parameter.

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.

Was this page helpful?