diff --git a/push.py b/push.py index 807b9fb..d9c7bf6 100755 --- a/push.py +++ b/push.py @@ -44,7 +44,7 @@ s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('gateway.push.apple.com', 2195)) -ssl = ssl.wrap_socket(s, 'push.key', 'push.cert', ssl_version=3, cert_reqs=ssl.CERT_NONE) +ssl = ssl.wrap_socket(s, PUSH_KEY, PUSH_CERT, ssl_version=3, cert_reqs=ssl.CERT_NONE) for token in tokens: packet = struct.pack(fmt, 0, 32, token, len(payload), payload) count = ssl.write(packet)