summaryrefslogtreecommitdiff
path: root/alpine/xoauth2conf.h
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-01-15 12:42:06 -0700
committerEduardo Chappa <chappa@washington.edu>2020-01-15 12:42:06 -0700
commit9822842646bc2b940d4b98a260ee4e3ac26fce57 (patch)
tree9d468eb7a6d6b3a41c6c8cd7d542009cb498bc5b /alpine/xoauth2conf.h
parent36fcd566e99d76543c28ce985fc71e8a7cfb6c83 (diff)
downloadalpine-9822842646bc2b940d4b98a260ee4e3ac26fce57.tar.xz
* Add configuration screen for XOAUTH, so users can configure their own
client-id and client-secret information.
Diffstat (limited to 'alpine/xoauth2conf.h')
-rw-r--r--alpine/xoauth2conf.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/alpine/xoauth2conf.h b/alpine/xoauth2conf.h
new file mode 100644
index 00000000..15afadc7
--- /dev/null
+++ b/alpine/xoauth2conf.h
@@ -0,0 +1,27 @@
+/*
+ * ========================================================================
+ * Copyright 2006-2007 University of Washington
+ * Copyright 2013-2020 Eduardo Chappa
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * ========================================================================
+ */
+
+#ifndef XOAUTH2_CONFIG
+#define XOAUTH2_CONFIG
+
+#include "confscroll.h"
+#include "../pith/state.h"
+
+/* exported protoypes */
+void alpine_xoauth2_configuration(struct pine *, int);
+void xoauth_parse_client_info(char *, char **, char **, char **);
+void oauth2_get_client_info(char *, char **, char **);
+char *xoauth_config_line(char *, char *, char *);
+
+#endif /* XOAUTH2_CONFIG */