def _load_libcrypto():
 if sys.platform.startswith('win'):
  return cdll.LoadLibrary('libeay32')
 elif (getattr(sys, 'frozen', False) and salt.utils.is_smartos()):
  return cdll.LoadLibrary(glob.glob(os.path.join(os.path.dirname(sys.executable), 'libcrypto.so*'))[0])
 else:
  lib = find_library('crypto')
  if ((not lib) and salt.utils.is_sunos()):
   lib = glob.glob(os.path.join('/opt/local/lib', 'libcrypto.so*'))
   lib = (lib[0] if (len(lib) > 0) else None)
  if lib:
   return cdll.LoadLibrary(lib)
  raise OSError('Cannot locate OpenSSL libcrypto')

def _load_libcrypto ( ) : if sys . platform . startswith ( 'win' ) : return cdll . LoadLibrary ( 'libeay32' ) elif ( getattr ( sys , 'frozen' , False ) and salt . utils . is_smartos ( ) ) : return cdll . LoadLibrary ( glob . glob ( os . path . join ( os . path . dirname ( sys . executable ) , 'libcrypto.so*' ) ) [ 0 ] ) else : lib = find_library ( 'crypto' ) if ( ( not lib ) and salt . utils . is_sunos ( ) ) : lib = glob . glob ( os . path . join ( '/opt/local/lib' , 'libcrypto.so*' ) ) lib = ( lib [ 0 ] if ( len ( lib ) > 0 ) else None ) if lib : return cdll . LoadLibrary ( lib ) raise OSError ( 'Cannot locate OpenSSL libcrypto' )
load openssl libcrypto .