Blame lib/x509/ip.h

Packit 549fdc
/*
Packit 549fdc
 * Copyright (C) 2007-2016 Free Software Foundation, Inc.
Packit 549fdc
 * Copyright (C) 2015-2016 Red Hat, Inc.
Packit 549fdc
 *
Packit 549fdc
 * Author: Simon Josefsson, Nikos Mavrogiannopoulos, Martin Ukrop
Packit 549fdc
 *
Packit 549fdc
 * This file is part of GnuTLS.
Packit 549fdc
 *
Packit 549fdc
 * The GnuTLS is free software; you can redistribute it and/or
Packit 549fdc
 * modify it under the terms of the GNU Lesser General Public License
Packit 549fdc
 * as published by the Free Software Foundation; either version 2.1 of
Packit 549fdc
 * the License, or (at your option) any later version.
Packit 549fdc
 *
Packit 549fdc
 * This library is distributed in the hope that it will be useful, but
Packit 549fdc
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 549fdc
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 549fdc
 * Lesser General Public License for more details.
Packit 549fdc
 *
Packit 549fdc
 * You should have received a copy of the GNU Lesser General Public License
Packit 549fdc
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
Packit 549fdc
 *
Packit 549fdc
 */
Packit 549fdc
Packit 549fdc
#ifndef IP_H
Packit 549fdc
#define IP_H
Packit 549fdc
Packit 549fdc
// for documentation, see the definition
Packit 549fdc
int _gnutls_mask_to_prefix(const unsigned char *mask, unsigned mask_size);
Packit 549fdc
Packit 549fdc
// for documentation, see the definition
Packit 549fdc
const char *_gnutls_ip_to_string(const void *_ip, unsigned int ip_size, char *out, unsigned int out_size);
Packit 549fdc
Packit 549fdc
// for documentation, see the definition
Packit 549fdc
const char *_gnutls_cidr_to_string(const void *_ip, unsigned int ip_size, char *out, unsigned int out_size);
Packit 549fdc
Packit 549fdc
// for documentation, see the definition
Packit 549fdc
int _gnutls_mask_ip(unsigned char *ip, const unsigned char *mask, unsigned ipsize);
Packit 549fdc
Packit 549fdc
#endif // IP_H