]> diplodocus.org Git - nmh/commitdiff
Start of adding arguments for transmitting OAuth parameters to
authorKen Hornstein <kenh@pobox.com>
Wed, 17 Aug 2016 03:35:09 +0000 (23:35 -0400)
committerKen Hornstein <kenh@pobox.com>
Thu, 18 Aug 2016 03:38:15 +0000 (23:38 -0400)
post.

(cherry picked from commit 68246559a5087f3a3c13ef2a6240a7c18dd9c155)

uip/post.c

index db457ad2517355366dbf0086b8e0d55bede1853b..0660f17be9267cfa87f890a40bcaf7b22a0cced1 100644 (file)
 # define TLSminc(a)   0
 #endif /* TLS_SUPPORT */
 
+#ifndef OAUTH_SUPPORT
+# define OAUTHminc(a)  (a)
+#else /* OAUTH_SUPPORT */
+# define OAUTHmine(a)  0
+#endif /* OAUTH_SUPPORT */
+
 #define FCCS           10      /* max number of fccs allowed */
 
 /* In the following array of structures, the numeric second field of the
     X("mts smtp|sendmail/smtp|sendmail/pipe", 2, MTSSW) \
     X("credentials legacy|file:filename", 0, CREDENTIALSSW) \
     X("messageid localname|random", 2, MESSAGEIDSW) \
+    X("oauthcredfile", OAUTHminc(-7), OAUTHCREDFILESW) \
+    X("oauthclientid", OAUTHminc(-12), OAUTHCLIDSW) \
+    X("oauthclientsecret", OAUTHminc(-12), OAUTHCLSECSW) \
+    X("oauthauthendpoint", OAUTHminc(-6), OAUTHAUTHENDSW) \
+    X("oauthredirect", OAUTHminc(-6), OAUTHREDIRSW) \
+    X("oauthtokenendpoint", OAUTHminc(-6), OAUTHTOKENDSW) \
+    X("oauthscope", OAUTHminc(-6), OAUTHSCOPESW) \
 
 #define X(sw, minchars, id) id,
 DEFINE_SWITCH_ENUM(POST);