diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-10-07 21:46:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-10-07 21:46:47 +0000 |
commit | 6494889e3ba6b1432258f0a8ed402723607cff21 (patch) | |
tree | 032d37a0009e37b7e53516f3be1d0a5b7078d49a /lib/inet_pton.h | |
parent | f52534522ce447afa6556079ff534a6d859397ae (diff) | |
download | curl-6494889e3ba6b1432258f0a8ed402723607cff21.tar.gz |
Neil Dunbar provided a patch that now makes libcurl check SSL
subjectAltNames when matching certs. This is apparently detailed in RFC2818
as the right thing to do. I had to add configure checks for inet_pton() and
our own (strictly speaking, code from BIND written by Paul Vixie) provided
code for the function for platforms that miss it.
Diffstat (limited to 'lib/inet_pton.h')
-rw-r--r-- | lib/inet_pton.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/inet_pton.h b/lib/inet_pton.h new file mode 100644 index 000000000..d758e06d2 --- /dev/null +++ b/lib/inet_pton.h @@ -0,0 +1,34 @@ +#ifndef __INET_PTON_H +#define __INET_PTON_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2003, 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. + * + * $Id$ + ***************************************************************************/ + +#include "setup.h" + +#ifdef HAVE_INET_PTON +#define Curl_inet_pton(x,y,z) inet_pton(x,y,z) +#else +int Curl_inet_pton(int, const char *, void *); +#endif + +#endif /* __INET_PTON_H */ |