aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/sntp/libevent/sample/hostcheck.h
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2015-03-30 13:30:15 +0000
committerCy Schubert <cy@FreeBSD.org>2015-03-30 13:30:15 +0000
commit2b15cb3d0922bd70ea592f0da9b4a5b167f4d53f (patch)
tree388af01c574ac107295ae453bab1e272bbfcda27 /contrib/ntp/sntp/libevent/sample/hostcheck.h
parenta83592093c063d2b02127a1de7c7c93d5f600bd2 (diff)
parentf7cba3a80d9ebefc57776fffd17a4ae68f72e494 (diff)
MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD. Approved by: roberto
Notes
Notes: svn path=/head/; revision=280849
Diffstat (limited to 'contrib/ntp/sntp/libevent/sample/hostcheck.h')
-rw-r--r--contrib/ntp/sntp/libevent/sample/hostcheck.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/ntp/sntp/libevent/sample/hostcheck.h b/contrib/ntp/sntp/libevent/sample/hostcheck.h
new file mode 100644
index 000000000000..f40bc4343501
--- /dev/null
+++ b/contrib/ntp/sntp/libevent/sample/hostcheck.h
@@ -0,0 +1,30 @@
+#ifndef HEADER_CURL_HOSTCHECK_H
+#define HEADER_CURL_HOSTCHECK_H
+/***************************************************************************
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
+ * \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ *
+ * This software is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at http://curl.haxx.se/docs/copyright.html.
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so, under the terms of the COPYING file.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ***************************************************************************/
+
+#define CURL_HOST_NOMATCH 0
+#define CURL_HOST_MATCH 1
+int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
+
+#endif /* HEADER_CURL_HOSTCHECK_H */
+