summaryrefslogtreecommitdiff
path: root/tools/gpg-wks.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:15 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:15 +0900
commit0253adc833bb041c8a88b4d610aded01ce4e75f4 (patch)
tree4a1a02361dce286bc89563bab9212ff7b71b95b5 /tools/gpg-wks.h
parent6f2e2cc2b171ed4a631d26590eb4ccd4a89347b2 (diff)
downloadgpg2-0253adc833bb041c8a88b4d610aded01ce4e75f4.tar.gz
gpg2-0253adc833bb041c8a88b4d610aded01ce4e75f4.tar.bz2
gpg2-0253adc833bb041c8a88b4d610aded01ce4e75f4.zip
Imported Upstream version 2.1.16upstream/2.1.16
Diffstat (limited to 'tools/gpg-wks.h')
-rw-r--r--tools/gpg-wks.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/tools/gpg-wks.h b/tools/gpg-wks.h
index be85eec..f7cccb3 100644
--- a/tools/gpg-wks.h
+++ b/tools/gpg-wks.h
@@ -14,7 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ * along with this program; if not, see <https://www.gnu.org/licenses/>.
*/
#ifndef GNUPG_GPG_WKS_H
@@ -39,21 +39,46 @@ struct
} opt;
/* Debug values and macros. */
+#define DBG_MIME_VALUE 1 /* Debug the MIME structure. */
+#define DBG_PARSER_VALUE 2 /* Debug the Mail parser. */
#define DBG_CRYPTO_VALUE 4 /* Debug low level crypto. */
#define DBG_MEMORY_VALUE 32 /* Debug memory allocation stuff. */
#define DBG_MEMSTAT_VALUE 128 /* Show memory statistics. */
#define DBG_IPC_VALUE 1024 /* Debug assuan communication. */
#define DBG_EXTPROG_VALUE 16384 /* debug external program calls */
+#define DBG_MIME (opt.debug & DBG_MIME_VALUE)
+#define DBG_PARSER (opt.debug & DBG_PARSER_VALUE)
+#define DBG_CRYPTO (opt.debug & DBG_CRYPTO_VALUE)
+
+
+/* The parsed policy flags. */
+struct policy_flags_s
+{
+ unsigned int mailbox_only : 1;
+ unsigned int dane_only : 1;
+ unsigned int auth_submit : 1;
+ unsigned int max_pending; /* Seconds to wait for a confirmation. */
+};
+typedef struct policy_flags_s *policy_flags_t;
+
+
/*-- wks-util.c --*/
gpg_error_t wks_send_mime (mime_maker_t mime);
+gpg_error_t wks_parse_policy (policy_flags_t flags, estream_t stream,
+ int ignore_unknown);
/*-- wks-receive.c --*/
+
+/* Flag values for the receive callback. */
+#define WKS_RECEIVE_DRAFT2 1
+
gpg_error_t wks_receive (estream_t fp,
gpg_error_t (*result_cb)(void *opaque,
const char *mediatype,
- estream_t data),
+ estream_t data,
+ unsigned int flags),
void *cb_data);