allow post(1) to link when configured without it.
const char *xoauth_client_res;
int status;
const char *xoauth_client_res;
int status;
xoauth_client_res = mh_oauth_do_xoauth(user, oauth_svc,
snoop ? stderr : NULL);
if (xoauth_client_res == NULL)
xoauth_client_res = mh_oauth_do_xoauth(user, oauth_svc,
snoop ? stderr : NULL);
if (xoauth_client_res == NULL)
- return sm_ierror("Internal error: oauth_do_xoauth() returned NULL");
+ return sm_ierror("Internal error: mh_oauth_do_xoauth() returned NULL");
+#else
+ adios(NULL, "sendfrom built without OAUTH_SUPPORT, "
+ "so oauth_svc %s is not supported", oauth_svc);
+#endif /* OAUTH_SUPPORT */
status = smtalk(SM_AUTH, "AUTH XOAUTH2 %s", xoauth_client_res);
if (status == 235) {
status = smtalk(SM_AUTH, "AUTH XOAUTH2 %s", xoauth_client_res);
if (status == 235) {
adios(NULL, errmsg);
}
#else
adios(NULL, errmsg);
}
#else
- adios(NULL, "sendfrom built without OAUTH_SUPPORT, "
+ adios(NULL, "send built without OAUTH_SUPPORT, "
"so auth_svc %s is not supported", auth_svc);
#endif /* OAUTH_SUPPORT */
}
"so auth_svc %s is not supported", auth_svc);
#endif /* OAUTH_SUPPORT */
}
- adios(NULL, "sendfrom built without OAUTH_SUPPORT, "
+ adios(NULL, "send built without OAUTH_SUPPORT, "
"so -saslmech xoauth2 is not supported");
#endif /* OAUTH_SUPPORT */
}
"so -saslmech xoauth2 is not supported");
#endif /* OAUTH_SUPPORT */
}
sizeof(errbuf)))
adios(NULL, "Unable to retrieve oauth profile entries: %s",
errbuf);
sizeof(errbuf)))
adios(NULL, "Unable to retrieve oauth profile entries: %s",
errbuf);
vec[(*vecp)++] = getcpy("-authservice");
vec[(*vecp)++] = getcpy(auth_svc);
vec[(*vecp)++] = getcpy("-oauthcredfile");
vec[(*vecp)++] = getcpy("-authservice");
vec[(*vecp)++] = getcpy(auth_svc);
vec[(*vecp)++] = getcpy("-oauthcredfile");