本文整理匯總了Python中cryptography.hazmat.bindings.openssl._conditional.CONDITIONAL_NAMES屬性的典型用法代碼示例。如果您正苦於以下問題:Python _conditional.CONDITIONAL_NAMES屬性的具體用法?Python _conditional.CONDITIONAL_NAMES怎麽用?Python _conditional.CONDITIONAL_NAMES使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類cryptography.hazmat.bindings.openssl._conditional
的用法示例。
在下文中一共展示了_conditional.CONDITIONAL_NAMES屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _ensure_ffi_initialized
# 需要導入模塊: from cryptography.hazmat.bindings.openssl import _conditional [as 別名]
# 或者: from cryptography.hazmat.bindings.openssl._conditional import CONDITIONAL_NAMES [as 別名]
def _ensure_ffi_initialized(cls):
with cls._init_lock:
if not cls._lib_loaded:
cls.lib = build_conditional_library(lib, CONDITIONAL_NAMES)
cls._lib_loaded = True
# initialize the SSL library
cls.lib.SSL_library_init()
# adds all ciphers/digests for EVP
cls.lib.OpenSSL_add_all_algorithms()
# loads error strings for libcrypto and libssl functions
cls.lib.SSL_load_error_strings()
cls._register_osrandom_engine()