#include "stdinc.h"
#include "client.h"
-#include "common.h"
#include "match.h"
#include "hash.h"
#include "ircd.h"
#include "msg.h"
#include "modules.h"
-static int me_certfp(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static const char certfp_desc[] =
+ "Provides the CERTFP facility used by servers to set certificate fingerprints";
+
+static void me_certfp(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
struct Message certfp_msgtab = {
"CERTFP", 0, 0, 0, 0,
mapi_clist_av1 certfp_clist[] = { &certfp_msgtab, NULL };
-DECLARE_MODULE_AV2(certfp, NULL, NULL, certfp_clist, NULL, NULL, NULL, NULL, NULL);
+DECLARE_MODULE_AV2(certfp, NULL, NULL, certfp_clist, NULL, NULL, NULL, NULL, certfp_desc);
/*
** me_certfp
** parv[1] = certfp string
*/
-static int
+static void
me_certfp(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
if (!IsPerson(source_p))
- return 0;
+ return;
rb_free(source_p->certfp);
source_p->certfp = NULL;
if (!EmptyString(parv[1]))
source_p->certfp = rb_strdup(parv[1]);
- return 0;
}