Displaying 3 results from an estimated 3 matches for "hostpid_init".
2008 Aug 13
1
RfE: use HOSTNAME environment variable in hostpid_init()
Hi,
All parts of dovecot except deliver uses the result of hostpid_init() in
src/lib/hostpid.c as a hostname which only asks gethostname().
deliver honours environment variable HOSTNAME in src/deliver/deliver.c:
getenv("HOSTNAME");
and uses the hostname of hostpid_init() as a fallback.
Wouldn't it be consequent to evaluate the environment variable...
2009 Jan 06
3
Apple patches 11-14
These are the last patches for now, and they're small. The base for
each of them is dovecot-1.1.7 + Apple patches 9 and 10, again not
because of a logical dependency but just because these patches change
parts of the earlier patches.
Patch #11 adds a few dtrace providers to key points in the code. We
are still validating the correct placement and usefulness of these.
One cool
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...nt, args);
if (strcmp(cmd, "STLS") == 0)
return cmd_stls(client);
if (strcmp(cmd, "QUIT") == 0)
@@ -228,6 +232,15 @@ static void client_destroy_oldest(void)
}
}
+static char *get_apop_challenge(void)
+{
+ if (auth_client_find_mech(auth_client, "APOP")) {
+ hostpid_init();
+ return i_strdup_printf("<%s.%s@%s>", my_pid, dec2str(ioloop_time), my_hostname);
+ } else
+ return NULL;
+}
+
struct client *client_create(int fd, int ssl, const struct ip_addr *local_ip,
const struct ip_addr *ip)
{
@@ -265,7 +278,8 @@ struct client *client_create(...