source: lib/canohost.h @ 1bdc669

Last change on this file since 1bdc669 was b097945, checked in by Wilmer van der Gaast <github@…>, at 2017-04-06T20:25:08Z

Move canohost functions (diff licence) to separate file.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[b097945]1  /********************************************************************\
2  * BitlBee -- An IRC to other IM-networks gateway                     *
3  *                                                                    *
4  * Copyright 2002-2017 Wilmer van der Gaast and others                *
5  \********************************************************************/
6
7/*
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  GNU General Public License for more details.
17
18  You should have received a copy of the GNU General Public License with
19  the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL;
20  if not, write to the Free Software Foundation, Inc., 51 Franklin St.,
21  Fifth Floor, Boston, MA  02110-1301  USA
22*/
23
24/* These two functions, with some modifications, taken from OpenSSH:
25 *
26 * $OpenBSD: canohost.c,v 1.73 2016/03/07 19:02:43 djm Exp
27 *
28 * Author: Tatu Ylonen <ylo@cs.hut.fi>
29 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
30 *                    All rights reserved
31 * Functions for returning the canonical host name of the remote site.
32 *
33 * As far as I am concerned, the code I have written for this software
34 * can be used freely for any purpose.  Any derived versions of this
35 * software must be clearly marked as such, and if the derived work is
36 * incompatible with the protocol description in the RFC file, it must be
37 * called by a name other than "ssh" or "Secure Shell".
38 */
39
40#include <bitlbee.h>
41
42G_MODULE_EXPORT char *reverse_lookup(const struct sockaddr *from_, const socklen_t fromlen_);
43G_MODULE_EXPORT void ipv64_normalise_mapped(struct sockaddr_storage *addr, socklen_t *len);
Note: See TracBrowser for help on using the repository browser.