login-proxy-state.c revision 088cb24027234024aff2c1ce5b6870c5a308a44b
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen/* Copyright (c) 2009 Dovecot authors, see the included COPYING file */
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainenstatic unsigned int ip_addr_hash(const void *p)
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainenstatic int ip_addr_cmp(const void *p1, const void *p2)
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainenstruct login_proxy_state *login_proxy_state_init(void)
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen state->pool = pool_alloconly_create("login proxy state", 1024);
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen state->hash = hash_table_create(default_pool, state->pool, 0,
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainenvoid login_proxy_state_deinit(struct login_proxy_state **_state)
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainenlogin_proxy_state_get(struct login_proxy_state *state,
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen new_ip = p_new(state->pool, struct ip_addr, 1);