X509_check_ip_asc
valid_ip = X509_check_ip_asc(x, checkip, 0);
int X509_check_ip_asc(X509 *x, const char *ipasc, unsigned int flags);