X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=comm-common.c;h=b855b9d6c0f156d546b9ebc0adcef32127e4ec38;hb=28be7fc6d923d51eff492fd4da5c011bf4a70c1f;hp=d880055cbe42a1f4d253cc4ca0d58c76231e682c;hpb=54d5ef0053f1f9ef4e34dacba002513e5ccea0fd;p=secnet.git diff --git a/comm-common.c b/comm-common.c index d880055..b855b9d 100644 --- a/comm-common.c +++ b/comm-common.c @@ -1,13 +1,37 @@ +/* + * This file is part of secnet. + * See README for full list of copyright holders. + * + * secnet is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * secnet is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * version 3 along with secnet; if not, see + * https://www.gnu.org/licenses/gpl.html. + */ #include "secnet.h" #include "comm-common.h" +struct comm_clientinfo *comm_clientinfo_ignore(void *state, dict_t *dict, + struct cloc cloc) +{ + return 0; +} + void comm_request_notify(void *commst, void *nst, comm_notify_fn *fn) { struct commcommon *st=commst; struct comm_notify_entry *n; - n=safe_malloc(sizeof(*n),"comm_request_notify"); + NEW(n); n->fn=fn; n->state=nst; LIST_INSERT_HEAD(&st->notify, n, entry);