diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2018-12-11 07:25:58 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2018-12-11 07:25:58 +0000 |
commit | 43280a78c4413aee0280f177010c660771f50f2a (patch) | |
tree | 19cdd492fec61259d0b6de6107bff7156aa1be5a /usr.sbin/smtpd/smtpd.h | |
parent | 3e11e8bf1454cbcfe7cba2f7935d6ddf0f21cc78 (diff) |
Improve the cert_*() interface. Use the return value to tell whether
the request is pending (waiting for an async event) or not. Success
or failure is always reported through the callback function.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index a3cdcb4952a..dfb8aac8e5d 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.585 2018/12/09 18:05:20 gilles Exp $ */ +/* $OpenBSD: smtpd.h,v 1.586 2018/12/11 07:25:57 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -100,6 +100,12 @@ #define P_NEWALIASES 0 #define P_MAKEMAP 1 +#define CERT_ERROR -1 +#define CERT_OK 0 +#define CERT_NOCA 1 +#define CERT_NOCERT 2 +#define CERT_INVALID 3 + struct userinfo { char username[SMTPD_VUSERNAME_SIZE]; char directory[PATH_MAX]; |