diff --git a/gnupg.c b/gnupg.c index 69532a9..14f2be1 100644 --- a/gnupg.c +++ b/gnupg.c @@ -249,31 +249,34 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_gnupg_decryptverify_method, 0, 0, 2) ZEND_END_ARG_INFO() /* }}} */ +#define PHP_GNUPG_FALIAS(_name, _arginfo) \ + PHP_FALIAS(_name, gnupg_ ## _name, _arginfo) + /* {{{ methodlist gnupg */ phpc_function_entry gnupg_methods[] = { - PHP_FALIAS(keyinfo, gnupg_keyinfo, arginfo_gnupg_pattern_method) - PHP_FALIAS(verify, gnupg_verify, arginfo_gnupg_verify_method) - PHP_FALIAS(geterror, gnupg_geterror, NULL) - PHP_FALIAS(clearsignkeys, gnupg_clearsignkeys, NULL) - PHP_FALIAS(clearencryptkeys, gnupg_clearencryptkeys, NULL) - PHP_FALIAS(cleardecryptkeys, gnupg_cleardecryptkeys, NULL) - PHP_FALIAS(setarmor, gnupg_setarmor, arginfo_gnupg_armor_method) - PHP_FALIAS(encrypt, gnupg_encrypt, arginfo_gnupg_text_method) - PHP_FALIAS(decrypt, gnupg_decrypt, arginfo_gnupg_enctext_method) - PHP_FALIAS(export, gnupg_export, arginfo_gnupg_pattern_method) - PHP_FALIAS(import, gnupg_import, arginfo_gnupg_key_method) - PHP_FALIAS(getprotocol, gnupg_getprotocol, NULL) - PHP_FALIAS(setsignmode, gnupg_setsignmode, arginfo_gnupg_signmode_method) - PHP_FALIAS(sign, gnupg_sign, arginfo_gnupg_text_method) - PHP_FALIAS(encryptsign, gnupg_encryptsign, arginfo_gnupg_text_method) - PHP_FALIAS(decryptverify, gnupg_decryptverify, arginfo_gnupg_decryptverify_method) - PHP_FALIAS(addsignkey, gnupg_addsignkey, arginfo_gnupg_key_method) - PHP_FALIAS(addencryptkey, gnupg_addencryptkey, arginfo_gnupg_key_method) - PHP_FALIAS(adddecryptkey, gnupg_adddecryptkey, arginfo_gnupg_key_method) - PHP_FALIAS(deletekey, gnupg_deletekey, arginfo_gnupg_key_method) - PHP_FALIAS(gettrustlist, gnupg_gettrustlist, arginfo_gnupg_pattern_method) - PHP_FALIAS(listsignatures, gnupg_listsignatures, arginfo_gnupg_keyid_method) - PHP_FALIAS(seterrormode, gnupg_seterrormode, arginfo_gnupg_errmode_method) + PHP_GNUPG_FALIAS(keyinfo, arginfo_gnupg_pattern_method) + PHP_GNUPG_FALIAS(verify, arginfo_gnupg_verify_method) + PHP_GNUPG_FALIAS(geterror, NULL) + PHP_GNUPG_FALIAS(clearsignkeys, NULL) + PHP_GNUPG_FALIAS(clearencryptkeys, NULL) + PHP_GNUPG_FALIAS(cleardecryptkeys, NULL) + PHP_GNUPG_FALIAS(setarmor, arginfo_gnupg_armor_method) + PHP_GNUPG_FALIAS(encrypt, arginfo_gnupg_text_method) + PHP_GNUPG_FALIAS(decrypt, arginfo_gnupg_enctext_method) + PHP_GNUPG_FALIAS(export, arginfo_gnupg_pattern_method) + PHP_GNUPG_FALIAS(import, arginfo_gnupg_key_method) + PHP_GNUPG_FALIAS(getprotocol, NULL) + PHP_GNUPG_FALIAS(setsignmode, arginfo_gnupg_signmode_method) + PHP_GNUPG_FALIAS(sign, arginfo_gnupg_text_method) + PHP_GNUPG_FALIAS(encryptsign, arginfo_gnupg_text_method) + PHP_GNUPG_FALIAS(decryptverify, arginfo_gnupg_decryptverify_method) + PHP_GNUPG_FALIAS(addsignkey, arginfo_gnupg_key_method) + PHP_GNUPG_FALIAS(addencryptkey, arginfo_gnupg_key_method) + PHP_GNUPG_FALIAS(adddecryptkey, arginfo_gnupg_key_method) + PHP_GNUPG_FALIAS(deletekey, arginfo_gnupg_key_method) + PHP_GNUPG_FALIAS(gettrustlist, arginfo_gnupg_pattern_method) + PHP_GNUPG_FALIAS(listsignatures, arginfo_gnupg_keyid_method) + PHP_GNUPG_FALIAS(seterrormode, arginfo_gnupg_errmode_method) PHPC_FE_END }; /* }}} */