xref: /netbsd-src/external/bsd/libevent/dist/sample/hostcheck.h (revision 805a1ce9000bc0ec0951bf35f7e52b85cafb37e2)
1*805a1ce9Schristos /*	$NetBSD: hostcheck.h,v 1.1.1.1 2017/01/31 21:14:53 christos Exp $	*/
2*805a1ce9Schristos #ifndef HEADER_CURL_HOSTCHECK_H
3*805a1ce9Schristos #define HEADER_CURL_HOSTCHECK_H
4*805a1ce9Schristos /***************************************************************************
5*805a1ce9Schristos  *                                  _   _ ____  _
6*805a1ce9Schristos  *  Project                     ___| | | |  _ \| |
7*805a1ce9Schristos  *                             / __| | | | |_) | |
8*805a1ce9Schristos  *                            | (__| |_| |  _ <| |___
9*805a1ce9Schristos  *                             \___|\___/|_| \_\_____|
10*805a1ce9Schristos  *
11*805a1ce9Schristos  * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
12*805a1ce9Schristos  *
13*805a1ce9Schristos  * This software is licensed as described in the file COPYING, which
14*805a1ce9Schristos  * you should have received as part of this distribution. The terms
15*805a1ce9Schristos  * are also available at http://curl.haxx.se/docs/copyright.html.
16*805a1ce9Schristos  *
17*805a1ce9Schristos  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18*805a1ce9Schristos  * copies of the Software, and permit persons to whom the Software is
19*805a1ce9Schristos  * furnished to do so, under the terms of the COPYING file.
20*805a1ce9Schristos  *
21*805a1ce9Schristos  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22*805a1ce9Schristos  * KIND, either express or implied.
23*805a1ce9Schristos  *
24*805a1ce9Schristos  ***************************************************************************/
25*805a1ce9Schristos 
26*805a1ce9Schristos #define CURL_HOST_NOMATCH 0
27*805a1ce9Schristos #define CURL_HOST_MATCH   1
28*805a1ce9Schristos int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
29*805a1ce9Schristos 
30*805a1ce9Schristos #endif /* HEADER_CURL_HOSTCHECK_H */
31*805a1ce9Schristos 
32