webpg-npapi 0.6.1
FB::variant webpgPluginAPI::gpgGenSubKey ( const std::string &  keyid,
const std::string &  subkey_type,
const std::string &  subkey_length,
const std::string &  subkey_expire,
bool  sign_flag,
bool  enc_flag,
bool  auth_flag 
)

Queues a threaded gpg gensubkey operation.

Parameters:
keyidThe key to generate the subkey on.
subkey_typeThe subkey type to generate.
subkey_lengthThe size of the subkey to genereate.
subkey_expireThe expiration date to assign to the generated subkey.
sign_flagSet the sign capabilities flag.
enc_flagSet the encrypt capabilities flag.
auth_flagSet the auth capabilities flag.

Definition at line 2400 of file webpgPluginAPI.cpp.

Referenced by webpgPluginAPI().

{

    genSubKeyParams params;

    params.keyid = keyid;
    params.subkey_type = subkey_type;
    params.subkey_length = subkey_length;
    params.subkey_expire = subkey_expire;
    params.sign_flag = sign_flag;
    params.enc_flag = enc_flag;
    params.auth_flag = auth_flag;

    boost::thread genkey_thread(
        boost::bind(
            &webpgPluginAPI::genSubKeyThreadCaller,
            this, params)
    );

    return "queued";
}
 All Classes Functions