var/opt/nydus/ops/oscrypto/_win/__pycache__/_crypt32.cpython-38.pyc000064400000004141147206031150021223 0ustar00U aðfiã@s˜ddlmZmZmZmZddlmZddlmZddl m Z ddl m Z eƒdkrddd l mZmZndd lmZmZd d d gZd d „ZGdd „d ƒZdS)é)Úunicode_literalsÚdivisionÚabsolute_importÚprint_functioné)Úffié)Ú _try_decode)Úbuffer_from_bytes)Ústr_clsZcffi)Úcrypt32Ú get_errorr Ú Crypt32ConstÚ handle_errorcCs0|rdStƒ\}}t|tƒs$t|ƒ}t|ƒ‚dS)zÎ Extracts the last Windows error message into a python unicode string :param result: A function result, 0 or None indicates failure :return: A unicode string error message N)r Ú isinstancer r ÚOSError)ÚresultÚ_Z error_string©rúG/opt/nydus/tmp/pip-target-53d1vnqk/lib/python/oscrypto/_win/_crypt32.pyrs   c@sxeZdZdZdZdZdZdZdZdZ dZ dZ dZ dZ d ZdZd Zd Zd Zd ZdZdZdZdZedƒZedƒZedƒZdS)rrézéi €sMemoryi réill`llll ll s1.3.6.1.5.5.7.3.1s1.3.6.1.4.1.311.10.3.3s2.16.840.1.113730.4.1N)Ú__name__Ú __module__Ú __qualname__ZX509_ASN_ENCODINGZERROR_INSUFFICIENT_BUFFERZ%CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAGZCRYPT_E_NOT_FOUNDZCERT_STORE_PROV_MEMORYZCERT_STORE_CREATE_NEW_FLAGZCERT_STORE_ADD_USE_EXISTINGZUSAGE_MATCH_TYPE_ORZCERT_CHAIN_POLICY_SSLZAUTHTYPE_SERVERZ'CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAGZ.CERT_CHAIN_POLICY_IGNORE_ALL_REV_UNKNOWN_FLAGSZCERT_CHAIN_CACHE_END_CERTZ&CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLYZTRUST_E_CERT_SIGNATUREZCERT_E_EXPIREDZ CERT_E_ROLEZCERT_E_PURPOSEZCERT_E_UNTRUSTEDROOTZCERT_E_CN_NO_MATCHZCRYPT_E_REVOKEDr ZPKIX_KP_SERVER_AUTHZSERVER_GATED_CRYPTOZ SGC_NETSCAPErrrrr,s0N)Ú __future__rrrrÚrÚ_decoder Z_ffir Ú_typesr Z _crypt32_cffir r Z_crypt32_ctypesÚ__all__rrrrrrÚs     ý