Refactor certificate initialization and verification.
authoreric <eric@openbsd.org>
Fri, 7 Dec 2018 08:05:59 +0000 (08:05 +0000)
committereric <eric@openbsd.org>
Fri, 7 Dec 2018 08:05:59 +0000 (08:05 +0000)
commitd35095c2f73e3ffac865380bdef835293d682244
tree845214de29a3a5f5f70fd9639a3b1de4178dfa64
parent3ad5c2732db30cb6300d0bfce7c7d6fa1c8f6122
Refactor certificate initialization and verification.
Factorize code duplicated in smtp_session.c and mta_session.c
Implement a simple callback interface, with proper request management
and simplified imsg protocol.

Only add the necessary parts for now.
Exisiting code path will be adapted later.

input from gilles@ sunil@
ok gilles@
usr.sbin/smtpd/cert.c [new file with mode: 0644]
usr.sbin/smtpd/lka.c
usr.sbin/smtpd/pony.c
usr.sbin/smtpd/smtpd.c
usr.sbin/smtpd/smtpd.h
usr.sbin/smtpd/smtpd/Makefile