diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-11-12 23:34:20 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-11-13 00:15:46 +0100 |
commit | 5d1c1590d736694f41b03e686045f08fcae20d62 (patch) | |
tree | a8260a4f40fc44afc14c24a29d26092749910ceb /misc.h | |
parent | upstream: add xvasprintf() (diff) | |
download | openssh-5d1c1590d736694f41b03e686045f08fcae20d62.tar.xz openssh-5d1c1590d736694f41b03e686045f08fcae20d62.zip |
upstream: dd API for performing one-shot notifications via tty or
SSH_ASKPASS
OpenBSD-Commit-ID: 9484aea33aff5b62ce3642bf259546c7639f23f3
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.81 2019/09/03 08:32:11 djm Exp $ */ +/* $OpenBSD: misc.h,v 1.82 2019/11/12 22:34:20 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -178,8 +178,13 @@ int opt_match(const char **opts, const char *term); #define RP_ALLOW_EOF 0x0004 #define RP_USE_ASKPASS 0x0008 +struct notifier_ctx; + char *read_passphrase(const char *, int); int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); +struct notifier_ctx *notify_start(int, const char *, ...) + __attribute__((format(printf, 2, 3))); +void notify_complete(struct notifier_ctx *); #define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) #define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) |