Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Call NameLoad Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Num GeneratorExp Call NameLoad Call AttributeLoad NameLoad attr Num comprehension NameStore NameLoad decorator_list TryExcept body Import alias ImportFrom alias ImportFrom alias TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body FunctionDef arguments args defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore CompareNotEq AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Return BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body AugAssignAdd NameStore Str If Call NameLoad NameLoad body Return NameLoad For NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad With Call NameLoad NameStore body Print NameLoad NameLoad Print NameLoad NameLoad Expr Call AttributeLoad NameLoad attr With Call NameLoad NameStore body For NameStore NameLoad body Print NameLoad NameLoad Expr Call AttributeLoad NameLoad attr With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad TupleLoad NameLoad Str Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Str Str AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad Call NameLoad TupleLoad NameLoad Str attr handlers ExceptHandler type NameLoad body Assign NameStore NameStore NameLoad TryExcept body Import alias identifier Import alias identifier Import alias identifier ImportFrom alias identifier ImportFrom alias identifier FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad NameStore body With Call NameLoad NameLoad body With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr CompareEq Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr body Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Raise Call NameLoad Str Raise Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore BoolOpOr NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str
N/A __future__ with_statement N/A os N/A re N/A warnings context StreamPositionRestore N/A RE_KEY N/A N/A re compile -----BEGIN ((ENCRYPTED|RSA) )?PRIVATE KEY-----.+?-----END ((ENCRYPTED|RSA) )?PRIVATE KEY----- N/A re S N/A RE_CERTS N/A N/A re compile -----BEGIN CERTIFICATE-----.+?-----END CERTIFICATE----- N/A re S N/A __all__ N/A sign_m2 sign_openssl sign parse_keyfile N/A N/A keyfile N/A N/A N/A 
    Parse a keyfile into private key, signing cert and CA stack
     N/A N/A StreamPositionRestore keyfile N/A N/A kf N/A N/A keyfile read N/A key N/A N/A RE_KEY search kf N/A certs N/A N/A RE_CERTS finditer kf N/A N/A N/A str N/A N/A key group 0 N/A str N/A N/A N/A N/A certs next group 0 N/A N/A str N/A N/A c group 0 N/A c certs N/A N/A N/A N/A subprocess tempfile NamedTemporaryFile functools wraps N/A N/A N/A check_output N/A subprocess check_output N/A N/A N/A AttributeError N/A check_output N/A N/A N/A args kw N/A N/A N/A kw N/A stdout N/A subprocess PIPE N/A N/A N/A N/A N/A N/A subprocess Popen args kw communicate N/A 0 N/A find_executable N/A N/A name N/A N/A N/A 
        Find an executable in path
        See which(1)
         N/A is_windows N/A N/A os name nt check N/A N/A path N/A N/A N/A N/A N/A N/A N/A os path isfile path N/A N/A is_windows N/A N/A os access path N/A os X_OK N/A N/A N/A N/A is_windows N/A N/A N/A N/A N/A name lower endswith .exe N/A N/A name .exe N/A N/A check name N/A N/A name N/A cand N/A N/A N/A N/A os environ N/A PATH split N/A os pathsep N/A N/A cand N/A N/A N/A os path join cand name N/A N/A check cand N/A N/A cand N/A None N/A N/A openssl N/A find_executable openssl N/A N/A openssl N/A N/A N/A ImportError Failed to find openssl executable sign_openssl N/A N/A keyfile content N/A N/A N/A 
        Sign content with a keyfile using OpenSSL (and various tmp files :p)
         N/A N/A key cs stack N/A parse_keyfile keyfile N/A N/A NamedTemporaryFile signer N/A N/A signer key N/A signer cs N/A N/A N/A signer flush N/A N/A NamedTemporaryFile certfile N/A N/A c stack N/A N/A certfile c N/A N/A N/A certfile flush N/A N/A NamedTemporaryFile infile N/A N/A N/A N/A infile write content N/A N/A N/A infile flush N/A N/A check_output N/A openssl smime -sign -binary -signer N/A signer name -certfile N/A certfile name -outform DER -in N/A infile name bufsize 0 N/A sign_openssl_warn N/A N/A N/A args kw N/A N/A N/A N/A warnings warn N/A Using openssl (%s) compatibilty layer due to lack of M2Crypto. This will produce slightly larger signatures, as the CA root certificate will be included. N/A openssl RuntimeWarning N/A N/A sign_openssl args kw N/A N/A wraps sign_openssl N/A N/A sign_openssl_warn generator N/A sign_openssl generator N/A N/A N/A check_output N/A openssl version strip N/A N/A N/A ImportError N/A N/A sign_openssl_warn sign_openssl None N/A N/A N/A M2Crypto M2 N/A M2Crypto.SMIME M2S N/A M2Crypto.X509 M2X509 M2Crypto.BIO MemoryBuffer M2Buffer M2Crypto.EVP EVPError M2EVPError sign_m2 N/A N/A keyfile content N/A N/A N/A 
        Sign content with a keyfile using M2Crypto
         N/A N/A N/A hasattr keyfile name N/A N/A N/A N/A warnings warn Rewrapping keyfile into a temporary file. This may case the file to be written to insecure storage! N/A N/A NamedTemporaryFile kp N/A N/A N/A StreamPositionRestore kp N/A N/A N/A StreamPositionRestore keyfile N/A N/A N/A N/A kp write N/A N/A keyfile read N/A N/A sign_m2 kp content N/A N/A N/A stack N/A N/A M2X509 X509_Stack N/A N/A _ _ certificates N/A parse_keyfile keyfile N/A c certificates N/A N/A cert N/A N/A M2X509 load_cert_string c N/A N/A N/A N/A cert check_ca N/A N/A str N/A N/A cert get_issuer N/A str N/A N/A cert get_subject N/A N/A N/A N/A N/A stack push cert N/A smime N/A N/A M2S SMIME N/A N/A N/A smime load_key N/A keyfile name N/A N/A N/A smime set_x509_stack stack N/A pkcs7 N/A M2Buffer N/A N/A N/A N/A N/A smime sign N/A M2Buffer content N/A N/A M2S PKCS7_DETACHED N/A M2S PKCS7_BINARY write_der pkcs7 N/A N/A N/A pkcs7 read N/A N/A N/A M2EVPError N/A ex N/A N/A N/A N/A re search ANY PRIVATE KEY N/A ex message N/A N/A N/A ValueError Key file does not contain a private key N/A N/A ValueError Signing failed. Wrong password? N/A N/A N/A sign_m2 generator N/A M2Crypto %s N/A M2 version N/A N/A N/A ImportError N/A N/A sign_m2 None N/A sign N/A sign_m2 sign_openssl_warn N/A N/A sign N/A N/A N/A ImportError No signing implementation available! Either install M2Crypto or add openssl to your $PATH