def validate_ip(ip):
     if not ip:
         return False
     ip = ip.strip()
     m = re.match(r"^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$", ip)
     if m:
         a1, a2, a3, a4 = int(m.group(1)), int(m.group(2)), int(m.group(3)), int(m.group(4))
         if a1<256 and a2<256 and a3<256 and a4<256:
             ip_canon = "{}.{}.{}.{}".format(a1, a2, a3, a4)
             return ip_canon
     return False
Build an association response message that contains the
dataset/ETHPy150Open securitykiss-com/rfw/rfw/iputil.py/validate_ip--crossover with--dataset/ETHPy150Open necaris/python3-openid/openid/test/test_association_response.py/mkAssocResponse