Skip to content

RFC: passing the Server object into self._call_custom_handler('TLSHANDSHAKE_COMPLETE) for hostname validation #161

@splbio

Description

@splbio

I am thinking of submitting a patch to slimta in order to add another hook TLSHANDSHAKE_COMPLETE that would be identical to the self._call_custom_handler('TLSHANDSHAKE'),
except that we would likely pass in the Server object itself, or at least the Server.io object.

Why do we want this?

We want to be able to do a few basic SSL certificate checks in our code. Unfortunately due to slimta design (which is quite nice) the SSL socket is abstracted away such that it does not appear we can access it during hooks as part of authentication. (we want to do a basic client cert validity check based on IP/name)

As such wondering if you would be open to a patch to add an auxiliary hook to pass this down.

I believe it might be useful to pass the socket to other callbacks as well so other checks can be done at the OS level.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions