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