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