HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/lib64/python3.9/site-packages/gssapi/__pycache__/_win_config.cpython-39.pyc
a

��_�	�@shdZddlZddlZddlZej�ej�dd�ddd�ZdZ	d	d
�Z
dd�Zd
d�Zej
dkrde�dS)aN
Using GSSAPI on Windows requires having an installation of Kerberos for Windows
(KfW) available in the user's PATH. This module should be imported before
anything else to check for that installation, add it to the PATH if necessary,
and throw any errors before they manifest as cryptic missing DLL errors later
down the import tree.
�NZProgramFileszC:\Program FilesZMITZKerberos�binz!https://web.mit.edu/KERBEROS/distcCs,zt�d�Wnty"YdS0dSdS)z3Return if the main GSSAPI DLL for KfW can be loadedzgssapi64.dllFTN)�ctypesZWinDLL�OSError�rr�8/usr/lib64/python3.9/site-packages/gssapi/_win_config.py�
kfw_availables
rcCstdttf��dS)z@Raise an OSError detailing that KfW is missing and how to get itz�Could not find KfW installation. Please download and install the 64bit Kerberos for Windows MSI from %s and ensure the 'bin' folder (%s) is in your PATH.N)r�KFW_DL�KFW_BINrrrr�error_not_found s
��r
cCs�t�r
dStj�t�rZzt�t�Wn*tyNtjdtjt7<Yn0t�rZdSt	�
d�}|r�zt�tj�|��Wnty�Yn0t�r�dSt�dS)z�
    Validate that KfW appears to be installed correctly and add it to the
    DLL directories/PATH if necessary. In the case that it can't be located,
    raise an error.
    N�PATHZkinit)
r�os�path�existsr	Zadd_dll_directory�AttributeError�environ�pathsep�shutil�which�dirnamer
)Z
kinit_pathrrr�configure_windows*s$
r�nt)�__doc__rrrr
�joinr�getr	rrr
r�namerrrr�<module>s�