GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: usr.sbin/smtpd/smtpd/../smtpf_session.c Lines: 0 6 0.0 %
Date: 2017-11-07 Branches: 0 2 0.0 %

Line Branch Exec Source
1
/*	$OpenBSD: smtpf_session.c,v 1.1 2017/05/22 13:40:54 gilles Exp $	*/
2
3
/*
4
 * Copyright (c) 2017 Gilles Chehade <gilles@poolp.org>
5
 *
6
 * Permission to use, copy, modify, and distribute this software for any
7
 * purpose with or without fee is hereby granted, provided that the above
8
 * copyright notice and this permission notice appear in all copies.
9
 *
10
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
 */
18
19
#include <sys/types.h>
20
#include <sys/queue.h>
21
#include <sys/tree.h>
22
#include <sys/socket.h>
23
24
#include <errno.h>
25
#include <imsg.h>
26
#include <limits.h>
27
#include <openssl/ssl.h>
28
29
#include "smtpd.h"
30
#include "log.h"
31
32
static void smtpf_session_init(void);
33
34
static void
35
smtpf_session_init(void)
36
{
37
	static int	init = 0;
38
39
	if (!init)
40
		init = 1;
41
}
42
43
int
44
smtpf_session(struct listener *listener, int sock,
45
    const struct sockaddr_storage *ss, const char *hostname)
46
{
47
	log_debug("debug: smtpf: new client on listener: %p", listener);
48
49
	smtpf_session_init();
50
51
	errno = EOPNOTSUPP;
52
	return (-1);
53
}
54
55
void
56
smtpf_session_imsg(struct mproc *p, struct imsg *imsg)
57
{
58
}