Ë
    R>{it8  ã            
      ó$  — d Z ddlmZ ddlZddlmZmZmZmZm	Z	m
Z
mZmZmZmZmZmZ ddlmZ  ej&                  «       dk7  r ed«      ‚ ej*                  «       d   Z e eeej5                  d«      «      «      Zed	k  r ed
ed   › ded   › �«      ‚dd„Z edd«      Z edd«      ZeZ eZ!eZ"eZ#eZ$eZ%eZ&eZ'eZ(eZ)eZ* ee)«      Z+eZ,eZ- ee#«      Z. ee$«      Z/ ee%«      Z0 ee&«      Z1 ee'«      Z2eZ3eZ4eZ5 ee«      Z6eZ7eZ8 ee«      Z9eZ:eZ; ee«      Z<eZ=eZ> ee«      Z? ee«      Z@eZAeZBeZCeZDeZEeZF	 e.e/ ee7«       ee8«      e: ee;«      e< ee0«      gejŽ                  _H        e-ejŽ                  _I        g ej”                  _H        e*ej”                  _I        g ej–                  _H        e*ej–                  _I        g ej˜                  _H        e*ej˜                  _I        e,e.gejš                  _H        e6ejš                  _I        e6gejœ                  _H        e.ejœ                  _I        e-egejž                  _H        e/ejž                  _I        e+e6 ee9«      gej                   _H        e-ej                   _I        e
eee e ee<«      gej¢                  _H        e-ej¢                  _I        e<gej¤                  _H        e-ej¤                  _I        e.e2 ee0«      gej¦                  _H        e-ej¦                  _I         ee-eAe ee«      «      ZT ee-eA ee	«       ee«      «      ZUe?eTeUgej¬                  _H        e-ej¬                  _I        e?e
egej®                  _H        e-ej®                  _I        e?e0gej°                  _H        e-ej°                  _I        e?e+e gej²                  _H        e-ej²                  _I        e?eAgej´                  _H        e-ej´                  _I        e?e
egej¶                  _H        e-ej¶                  _I        e?gej¸                  _H        e-ej¸                  _I        e?e
e ee«      gejº                  _H        e-ejº                  _I        e?e
e ee«      gej¼                  _H        e-ej¼                  _I        e?gej¾                  _H        e-ej¾                  _I        e? ee«      gejÀ                  _H        e-ejÀ                  _I        e? ee>«       ee«      gejÂ                  _H        e-ejÂ                  _I        e? ee>«      egejÄ                  _H        e-ejÄ                  _I        e? ee«      gejÆ                  _d        e-ejÆ                  _I        e? ee>«       ee«      gejÊ                  _H        e-ejÊ                  _I        e? ee>«      gejÌ                  _H        e-ejÌ                  _I        e? ee=«      gejÎ                  _H        e-ejÎ                  _I        e? ee@«      gejÐ                  _H        e-ejÐ                  _I        e@e0gejÒ                  _H        e-ejÒ                  _I        e@e gejÔ                  _k        e-ejÔ                  _I        e@ eeB«      gejØ                  _H        e-ejØ                  _I        e@gejÚ                  _H        e!ejÚ                  _I        e@e!gejÜ                  _H        e6ejÜ                  _I        e,eDeEgejÞ                  _H        e?ejÞ                  _I        e?eFe gejà                  _H        e-ejà                  _I        e?e=gejâ                  _H        e-ejâ                  _I        e?e=gejä                  _H        e-ejä                  _I        	 e?e0gejæ                  _H        e-ejæ                  _I        e-egejž                  _H        e/ejž                  _I        eTe_T        eUe_U        e?e_?        e=e_=        e>e_>        e9e_9        e<e_<        e@e_@        eBe_B        e7e_7        e-e_-        e/jë                  ed«      e_v        e/jë                  ed«      e_w        e+gejð                  _H        e+ejð                  _I        e+gejò                  _H        dejò                  _I        e+gejô                  _H        e*ejô                  _I        e,e
e"gejö                  _H        e/ejö                  _I        e/e"gejø                  _H        e
ejø                  _I        e/e
e!e"gejú                  _H        eejú                  _I        e,e
e!gejü                  _H        e.ejü                  _I        e.gejþ                  _H        e!ejþ                  _I        e.ge�j                   _H        ee�j                   _I        e, ee+«       ee+«      e!e4e5ge�j                  _H        e2e�j                  _I        e2e+ge�j                  _H        e+e�j                  _I        e, ee+«      e!e3ge�j                  _H        e0e�j                  _I        e,e!e3ge�j                  _H        e1e�j                  _I        e1ege�j
                  _H        de�j
                  _I        e0ge�j                  _H        e!e�j                  _I        e0e!ge�j                  _H        ee�j                  _I        e,jë                  ed«      e_ˆ         ejê                  ed«      e_‰         ejê                  ed«      e_Š         ejê                  ed«      e_‹        e+e_+        e0e_0        e/e_/        e2e_2         G d„ d«      ZŒy# et$ r Y �Œ”w xY w# et$ r
  ed«      d‚w xY w)ay  
This module uses ctypes to bind a whole bunch of functions and constants from
SecureTransport. The goal here is to provide the low-level API to
SecureTransport. These are essentially the C-level functions and constants, and
they're pretty gross to work with.

This code is a bastardised version of the code found in Will Bond's oscrypto
library. An enormous debt is owed to him for blazing this trail for us. For
that reason, this code should be considered to be covered both by urllib3's
license and by oscrypto's:

    Copyright (c) 2015-2016 Will Bond <will@wbond.net>

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the "Software"),
    to deal in the Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
    and/or sell copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.
é    )ÚannotationsN)ÚCDLLÚ	CFUNCTYPEÚPOINTERÚc_boolÚc_byteÚc_char_pÚc_int32Úc_longÚc_size_tÚc_uint32Úc_ulongÚc_void_p)Úfind_libraryÚDarwinzOnly macOS is supportedú.)é
   é   z,Only OS X 10.8 and newer are supported, not é   c                ó–   — 	 t         dk\  r|}nt        | «      }|st        ‚t        |d¬«      S # t        $ r t	        d| › d�«      d‚w xY w)z:Loads a CDLL by name, falling back to known path on 10.16+)r   é   T)Ú	use_errnozThe library z failed to loadN)Úversion_infor   ÚOSErrorr   ÚImportError)ÚnameÚmacos10_16_pathÚpaths      úg/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/urllib3/contrib/_securetransport/bindings.pyÚ	load_cdllr    A   s]   € ðJô ˜8Ò#Ø"‰Dä Ó%ˆDÙÜˆMÜ�D DÔ)Ð)øÜò JÜ˜L¨¨¨oÐ>Ó?ÀTÐIðJús	   ‚+. ®AÚSecurityz6/System/Library/Frameworks/Security.framework/SecurityÚCoreFoundationzB/System/Library/Frameworks/CoreFoundation.framework/CoreFoundationÚkSecImportExportPassphraseÚkSecImportItemIdentityÚkCFAllocatorDefaultÚkCFTypeArrayCallBacksÚkCFTypeDictionaryKeyCallBacksÚkCFTypeDictionaryValueCallBackszError initializing ctypesc                  ó    — e Zd ZdZ ed«      Zy)ÚCFConstz_
    A class object that acts as essentially a namespace for CoreFoundation
    constants.
    i  N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚCFStringEncodingÚkCFStringEncodingUTF8© ó    r   r*   r*   ¨  s   „ ññ
 -¨ZÓ8Ñr2   r*   )r   Ústrr   r3   Úreturnr   )�r.   Ú
__future__r   ÚplatformÚctypesr   r   r   r   r   r	   r
   r   r   r   r   r   Úctypes.utilr   Úsystemr   Úmac_verÚversionÚtupleÚmapÚintÚsplitr   r   r    r!   r"   ÚBooleanÚCFIndexr/   ÚCFDataÚCFStringÚCFArrayÚCFMutableArrayÚCFDictionaryÚCFErrorÚCFTypeÚCFTypeIDÚ	CFTypeRefÚCFAllocatorRefÚOSStatusÚ	CFDataRefÚCFStringRefÚ
CFArrayRefÚCFMutableArrayRefÚCFDictionaryRefÚCFArrayCallBacksÚCFDictionaryKeyCallBacksÚCFDictionaryValueCallBacksÚSecCertificateRefÚSecExternalFormatÚSecExternalItemTypeÚSecIdentityRefÚSecItemImportExportFlagsÚ SecItemImportExportKeyParametersÚSecKeychainRefÚSSLProtocolÚSSLCipherSuiteÚSSLContextRefÚSecTrustRefÚSSLConnectionRefÚSecTrustResultTypeÚSecTrustOptionFlagsÚSSLProtocolSideÚSSLConnectionTypeÚSSLSessionOptionÚSecItemImportÚargtypesÚrestypeÚSecCertificateGetTypeIDÚSecIdentityGetTypeIDÚSecKeyGetTypeIDÚSecCertificateCreateWithDataÚSecCertificateCopyDataÚSecCopyErrorMessageStringÚ SecIdentityCreateWithCertificateÚSecKeychainCreateÚSecKeychainDeleteÚSecPKCS12ImportÚSSLReadFuncÚSSLWriteFuncÚSSLSetIOFuncsÚSSLSetPeerIDÚSSLSetCertificateÚSSLSetCertificateAuthoritiesÚSSLSetConnectionÚSSLSetPeerDomainNameÚSSLHandshakeÚSSLReadÚSSLWriteÚSSLCloseÚSSLGetNumberSupportedCiphersÚSSLGetSupportedCiphersÚSSLSetEnabledCiphersÚSSLGetNumberEnabledCiphersÚargtypeÚSSLGetEnabledCiphersÚSSLGetNegotiatedCipherÚSSLGetNegotiatedProtocolVersionÚSSLCopyPeerTrustÚSecTrustSetAnchorCertificatesÚ!SecTrustSetAnchorCertificatesOnlyÚ	argstypesÚSecTrustEvaluateÚSecTrustGetCertificateCountÚSecTrustGetCertificateAtIndexÚSSLCreateContextÚSSLSetSessionOptionÚSSLSetProtocolVersionMinÚSSLSetProtocolVersionMaxÚSSLSetALPNProtocolsÚAttributeErrorÚin_dllr#   r$   ÚCFRetainÚ	CFReleaseÚCFGetTypeIDÚCFStringCreateWithCStringÚCFStringGetCStringPtrÚCFStringGetCStringÚCFDataCreateÚCFDataGetLengthÚCFDataGetBytePtrÚCFDictionaryCreateÚCFDictionaryGetValueÚCFArrayCreateÚCFArrayCreateMutableÚCFArrayAppendValueÚCFArrayGetCountÚCFArrayGetValueAtIndexr%   r&   r'   r(   r*   r1   r2   r   ú<module>r¥      sÃ  ðñõ@ #ã ÷÷ ÷ ó õ %à€8‡?�?Ó˜Ò Ù
Ð/Ó
0Ð0à
ˆ(×
Ñ
Ó
˜QÑ
€Ù‘S˜˜gŸm™m¨CÓ0Ó1Ó2€Ø�'ÒÙ
Ø
6°|ÀA±Ð6GÀqÈÐVWÉÐHYÐZóð ó
Jñ" ØÐHó€ñ ØØHó€ð €Ø
€ØÐ Ø	€Ø€Ø
€Ø€Ø€Ø
€Ø	€Ø€á�F‹O€	Ø€à€á�F‹O€	Ù�hÓ€Ù�WÓ€
Ù˜NÓ+Ð Ù˜,Ó'€ØÐ Ø#Ð Ø%Ð á˜HÓ%Ð ØÐ ØÐ Ù˜Ó"€Ø#Ð Ø#+Ð  Ù˜Ó"€Ø€Ø€Ù˜Ó!€Ù�hÓ€ØÐ ØÐ ØÐ Ø€ØÐ ØÐ ð]=àØÙÐ!Ó"ÙÐ#Ó$Ø ÙÐ0Ó1ØÙ�
Óð	'€H×ÑÔ#ð &.€H×ÑÔ"à02€H×$Ñ$Ô-Ø/7€H×$Ñ$Ô,à-/€H×!Ñ!Ô*Ø,4€H×!Ñ!Ô)à(*€H×ÑÔ%Ø'/€H×ÑÔ$à6DÀiÐ5P€H×)Ñ)Ô2Ø4E€H×)Ñ)Ô1à0AÐ/B€H×#Ñ#Ô,Ø.7€H×#Ñ#Ô+à3;¸XÐ2F€H×&Ñ&Ô/Ø1<€H×&Ñ&Ô.ð 	ØÙ�Óð:€H×-Ñ-Ô6ð
 9A€H×-Ñ-Ô5ð 	ØØØØÙ�Óð+€H×ÑÔ'ð *2€H×ÑÔ&à+9Ð*:€H×ÑÔ'Ø)1€H×ÑÔ&ð 	ØÙ�
Óð)€H×ÑÔ%ð
 (0€H×ÑÔ$á˜HÐ&6¸Á'È(ÓBSÓT€KÙØÐ"¡G¨F£O±W¸XÓ5Fó€Lð (5°kÀ<Ð&P€H×ÑÔ#Ø%-€H×ÑÔ"à&3°X¸xÐ%H€H×ÑÔ"Ø$,€H×ÑÔ!à+8¸*Ð*E€H×ÑÔ'Ø)1€H×ÑÔ&à6CÀYÐPWÐ5X€H×)Ñ)Ô2Ø4<€H×)Ñ)Ô1à*7Ð9IÐ)J€H×ÑÔ&Ø(0€H×ÑÔ%à.;¸XÀxÐ-P€H×!Ñ!Ô*Ø,4€H×!Ñ!Ô)à&3 _€H×ÑÔ"Ø$,€H×ÑÔ!à!.°¸(ÁGÈHÓDUÐ V€H×ÑÔØ'€H×ÑÔà"/°¸8ÁWÈXÓEVÐ!W€H×ÑÔØ (€H×ÑÔà"/ €H×ÑÔØ (€H×ÑÔà6CÁWÈXÓEVÐ5W€H×)Ñ)Ô2Ø4<€H×)Ñ)Ô1ð 	Ù�ÓÙ�Óð0€H×#Ñ#Ô,ð
 /7€H×#Ñ#Ô+ð 	Ù�ÓØð.€H×!Ñ!Ô*ð
 -5€H×!Ñ!Ô)à3@Á'È(ÓBSÐ2T€H×'Ñ'Ô/Ø2:€H×'Ñ'Ô/ð 	Ù�ÓÙ�Óð.€H×!Ñ!Ô*ð
 -5€H×!Ñ!Ô)à0=¹wÀ~Ó?VÐ/W€H×#Ñ#Ô,Ø.6€H×#Ñ#Ô+ð 	Ù�Óð9€H×,Ñ,Ô5ð 8@€H×,Ñ,Ô4à*7¹ÀÓ9MÐ)N€H×ÑÔ&Ø(0€H×ÑÔ%à7BÀJÐ6O€H×*Ñ*Ô3Ø5=€H×*Ñ*Ô2à<GÈÐ;Q€H×.Ñ.Ô8Ø9A€H×.Ñ.Ô6à*5±wÐ?QÓ7RÐ)S€H×ÑÔ&Ø(0€H×ÑÔ%à5@°M€H×(Ñ(Ô1Ø3:€H×(Ñ(Ô0à7BÀGÐ6L€H×*Ñ*Ô3Ø5F€H×*Ñ*Ô2ð 	ØØð*€H×ÑÔ&ð
 )6€H×ÑÔ%à-:Ð<LÈgÐ,V€H× Ñ Ô)Ø+3€H× Ñ Ô(à2?ÀÐ1M€H×%Ñ%Ô.Ø08€H×%Ñ%Ô-à2?ÀÐ1M€H×%Ñ%Ô.Ø08€H×%Ñ%Ô-ðØ1>À
Ð0Kˆ×$Ñ$Ô-Ø/7ˆ×$Ñ$Ô,ð
 4<¸XÐ2F€H×&Ñ&Ô/Ø1<€H×&Ñ&Ô.à&€HÔØ(€HÔØ*€HÔØ&€HÔØ,€HÔØ,€HÔØ,€HÔØ&€HÔØ"4€HÔØ!2€HÔØ €HÔà*5×*<Ñ*<ØÐ.ó+€HÔ'ð '2×&8Ñ&8ØÐ*ó'€HÔ#ð
 )2 {€N×ÑÔ$Ø&/€N×ÑÔ#à)2¨€N×ÑÔ%Ø'+€N×ÑÔ$à+4¨+€N×ÑÔ'Ø)1€N×ÑÔ&ð 	ØØð9€N×,Ñ,Ô5ð
 8C€N×,Ñ,Ô4à5@ÐBRÐ4S€N×(Ñ(Ô1Ø3;€N×(Ñ(Ô0ð 	ØØØð	2€N×%Ñ%Ô.ð 17€N×%Ñ%Ô-à,:¸HÀgÐ+N€N×ÑÔ(Ø*3€N×ÑÔ'à/8¨k€N×"Ñ"Ô+Ø-4€N×"Ñ"Ô*à09¨{€N×#Ò#Ô,Ø.6€N×#Ò#Ô+ð 	Ù�	ÓÙ�	ÓØØ Ø"ð2€N×%Ò%Ô.ð 1@€N×%Ò%Ô-à4CÀYÐ3O€N×'Ò'Ô0Ø2;€N×'Ò'Ô/ð 	Ù�	ÓØØð	-€N× Ò Ô)ð ,6€N× Ò Ô(ð 	ØØð4€N×'Ò'Ô0ð
 3D€N×'Ò'Ô/à2CÀXÐ1N€N×%Ò%Ô.Ø04€N×%Ò%Ô-à/9¨l€N×"Ò"Ô+Ø-4€N×"Ò"Ô*à6@À'Ð5J€N×)Ò)Ô2Ø4<€N×)Ò)Ô1à)7×)>Ñ)>ØÐ-ó*€NÔ&ð ,;¨8¯?©?ØÐ/ó,€NÔ(ð 4C°8·?±?ØÐ7ó4€NÔ0ð 6E°X·_±_ØÐ9ó6€NÔ2ð  )€NÔØ *€NÔØ!,€NÔØ%4€NÔ"÷9ò 9øðu ò âðûðl ò =Ù
Ð1Ó
2¸Ð<ð=ús2   Ä=Xl  Ý$k4 Ý(Nl  ë4k=ë9l  ë<k=ë=l  ì l