gmssl 中命令的實現(xiàn)方式
typedef struct function_st { FUNC_TYPE type; const char *name; int (*func)(int argc, char *argv[]); const OPTIONS *help; } FUNCTION; static FUNCTION functions[] = { { FT_general, "asn1parse", asn1parse_main, asn1parse_options }, #ifndef OPENSSL_NO_CA { FT_general, "ca", ca_main, ca_options }, #endif #ifndef OPENSSL_NO_SOCK { FT_general, "ciphers", ciphers_main, ciphers_options }, #endif #ifndef OPENSSL_NO_CMS { FT_general, "cms", cms_main, cms_options }, #endif #ifndef OPENSSL_NO_CPK { FT_general, "cpk", cpk_main, cpk_options }, #endif { FT_general, "crl", crl_main, crl_options }, { FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options }, { FT_general, "dgst", dgst_main, dgst_options }, #ifndef OPENSSL_NO_DH { FT_general, "dhparam", dhparam_main, dhparam_options }, #endif #ifndef OPENSSL_NO_DSA { FT_general, "dsa", dsa_main, dsa_options }, #endif
*博客內(nèi)容為網(wǎng)友個人發(fā)布,僅代表博主個人觀點,如有侵權(quán)請聯(lián)系工作人員刪除。