a „oe¢ ã @søddlZddlZGdd„deƒZddd„Zdd„Zd Zd d „Zed krôddl Z ze   ej d d…d¡\Z Z Wn.e j yšZzeeƒWYdZ[n dZ[00dZee ƒdkr´edƒe D]:\ZZedkrÒeeeƒedkrâeeƒedkr¸eeƒZq¸dS)éNc@s eZdZdS)ÚConnectionErrorN)Ú__name__Ú __module__Ú __qualname__©rrú6C:\Program Files\Certbot\pkgs\win32\scripts\rasutil.pyrsréc Csê|dks J‚t ¡D]2}|d ¡| ¡krtd|ƒd|dfSqt d|¡\}}|svtdƒtdƒt d¡td|dƒ|}|dkrÎt dd|d¡\}}t |¡r²d}qÎtd ƒt   d ¡|d}q†|rât |t  |¡ƒ‚d|fS) aaMake a connection to the specified RAS entry. Returns a tuple of (bool, handle) on success. - bool is 1 if a new connection was established, or 0 is a connection already existed. - handle is a RAS HANDLE that can be passed to Disconnect() to end the connection. Raises a ConnectionError if the connection could not be established. rézAlready connected toNz4Error: The password is not saved for this connectionzJPlease connect manually selecting the 'save password' option and try againz Connecting toz...z Retrying...iˆ) Úwin32rasÚEnumConnectionsÚlowerÚprintZGetEntryDialParamsÚsysÚexitZDialZ IsHandleValidZwin32apiZSleeprZGetErrorString) Z rasEntryNameZ numRetriesÚinfoZ dial_paramsZhave_pwZ retryCountZ rasHandleZerrCodeZbValidrrrÚConnect s2   ÿ     rcCsZt|ƒtdƒkrLt ¡D]$}|d ¡| ¡kr|d}qLqtdd|ƒ‚t |¡dS)NÚr rzNot connected to entry '%s')Útyper r r rZHangUp)ÚhandlerrrrÚ Disconnect3s ra-rasutil.py - Utilities for using RAS Usage: rasutil [-r retryCount] [-c rasname] [-d rasname] -r retryCount - Number of times to retry the RAS connection -c rasname - Connect to the phonebook entry specified by rasname -d rasname - Disconnect from the phonebook entry specified by rasname cCst|ƒttƒt d¡dS)Nr )r Úusagerr)ÚwhyrrrÚUsageJsrÚ__main__r zr:c:d:zInvalid argumentz-cz-dz-r)r)rr Ú ExceptionrrrrrrÚgetoptÚargvZoptsÚargsÚerrorrZretriesÚlenÚoptÚvalÚintrrrrÚs, '