return rv;
}
-static int do_x509_check(X509 *x, const char *chk, size_t chklen,
+static int do_x509_check(const X509 *x, const char *chk, size_t chklen,
unsigned int flags, int check_type, int othername_nid, char **peername)
{
GENERAL_NAMES *gens = NULL;
return 0;
}
-int X509_check_host(X509 *x, const char *chk, size_t chklen,
+int X509_check_host(const X509 *x, const char *chk, size_t chklen,
unsigned int flags, char **peername)
{
if (chk == NULL)
== 1;
}
-int X509_check_email(X509 *x, const char *chk, size_t chklen,
+int X509_check_email(const X509 *x, const char *chk, size_t chklen,
unsigned int flags)
{
if (chk == NULL)
NID_id_on_SmtpUTF8Mailbox, NULL);
}
-int X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen,
+int X509_check_ip(const X509 *x, const unsigned char *chk, size_t chklen,
unsigned int flags)
{
if (chk == NULL)
return do_x509_check(x, (char *)chk, chklen, flags, GEN_IPADD, 0, NULL);
}
-int X509_check_ip_asc(X509 *x, const char *ipasc, unsigned int flags)
+int X509_check_ip_asc(const X509 *x, const char *ipasc, unsigned int flags)
{
unsigned char ipout[16];
size_t iplen;
#include <openssl/x509v3.h>
- int X509_check_host(X509 *, const char *name, size_t namelen,
+ int X509_check_host(const X509 *, const char *name, size_t namelen,
unsigned int flags, char **peername);
- int X509_check_email(X509 *, const char *address, size_t addresslen,
+ int X509_check_email(const X509 *, const char *address, size_t addresslen,
unsigned int flags);
- int X509_check_ip(X509 *, const unsigned char *address, size_t addresslen,
+ int X509_check_ip(const X509 *, const unsigned char *address, size_t addresslen,
unsigned int flags);
- int X509_check_ip_asc(X509 *, const char *address, unsigned int flags);
+ int X509_check_ip_asc(const X509 *, const char *address, unsigned int flags);
=head1 DESCRIPTION
*/
#define _X509_CHECK_FLAG_DOT_SUBDOMAINS 0x8000
-int X509_check_host(X509 *x, const char *chk, size_t chklen,
+int X509_check_host(const X509 *x, const char *chk, size_t chklen,
unsigned int flags, char **peername);
-int X509_check_email(X509 *x, const char *chk, size_t chklen,
+int X509_check_email(const X509 *x, const char *chk, size_t chklen,
unsigned int flags);
-int X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen,
+int X509_check_ip(const X509 *x, const unsigned char *chk, size_t chklen,
unsigned int flags);
-int X509_check_ip_asc(X509 *x, const char *ipasc, unsigned int flags);
+int X509_check_ip_asc(const X509 *x, const char *ipasc, unsigned int flags);
ASN1_OCTET_STRING *a2i_IPADDRESS(const char *ipasc);
ASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc);