Lines Matching refs:chklen
876 static int do_x509_check(X509 *x, const char *chk, size_t chklen, in do_x509_check() argument
897 if (chklen > 1 && chk[0] == '.') in do_x509_check()
909 if (chklen == 0) in do_x509_check()
910 chklen = strlen(chk); in do_x509_check()
979 chk, chklen, peername)) != 0) in do_x509_check()
1001 chk, chklen, peername)) != 0) in do_x509_check()
1007 int X509_check_host(X509 *x, const char *chk, size_t chklen, in X509_check_host() argument
1017 if (chklen == 0) in X509_check_host()
1018 chklen = strlen(chk); in X509_check_host()
1019 else if (memchr(chk, '\0', chklen > 1 ? chklen - 1 : chklen)) in X509_check_host()
1021 if (chklen > 1 && chk[chklen - 1] == '\0') in X509_check_host()
1022 --chklen; in X509_check_host()
1023 return do_x509_check(x, chk, chklen, flags, GEN_DNS, peername); in X509_check_host()
1026 int X509_check_email(X509 *x, const char *chk, size_t chklen, in X509_check_email() argument
1036 if (chklen == 0) in X509_check_email()
1037 chklen = strlen((char *)chk); in X509_check_email()
1038 else if (memchr(chk, '\0', chklen > 1 ? chklen - 1 : chklen)) in X509_check_email()
1040 if (chklen > 1 && chk[chklen - 1] == '\0') in X509_check_email()
1041 --chklen; in X509_check_email()
1042 return do_x509_check(x, chk, chklen, flags, GEN_EMAIL, NULL); in X509_check_email()
1045 int X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen, in X509_check_ip() argument
1050 return do_x509_check(x, (char *)chk, chklen, flags, GEN_IPADD, NULL); in X509_check_ip()