webpg-npapi 0.6.1
std::string webpgPluginAPI::gpgGenKey ( const std::string &  key_type,
const std::string &  key_length,
const std::string &  subkey_type,
const std::string &  subkey_length,
const std::string &  name_real,
const std::string &  name_comment,
const std::string &  name_email,
const std::string &  expire_date,
const std::string &  passphrase 
)

Queues a threaded gpg genkey operation.

Parameters:
key_typeThe key type to genereate.
key_lengthThe size of the key to generate.
subkey_typeThe subkey type to generate.
subkey_lengthThe size of the subkey to genereate.
name_realThe name to assign the UID.
name_commentThe comment to assign to the UID.
name_emailThe email address to assign to the UID.
expire_dateThe expiration date to assign to the generated key.
passphraseThe passphrase to assign the to the key.

Definition at line 2179 of file webpgPluginAPI.cpp.

Referenced by webpgPluginAPI().

{

    genKeyParams params;

    params.key_type = key_type;
    params.key_length = key_length;
    params.subkey_type = subkey_type;
    params.subkey_length = subkey_length;
    params.name_real = name_real;
    params.name_comment = name_comment;
    params.name_email = name_email;
    params.expire_date = expire_date;
    params.passphrase = passphrase;

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

    return "queued";
}
 All Classes Functions