Changeset View
Changeset View
Standalone View
Standalone View
doc/gpgme.texi
Context not available. | |||||
and all resources associated to it will be released. | and all resources associated to it will be released. | ||||
@end deftypefun | @end deftypefun | ||||
@c | |||||
@c gpgme_op_set_expire | |||||
@c | |||||
@deftypefun gpgme_error_t gpgme_op_set_expire@ | |||||
(@w{gpgme_ctx_t @var{ctx}}, @ | |||||
@w{const char *@var{fpr}}, @ | |||||
@w{unsigned long @var{expire}}, @ | |||||
@w{const char *@var{subfprs}}); | |||||
@since{1.14.1} | |||||
The function @code{gpgme_op_set_expire} sets the expiry date of | |||||
a key idefntified by the fingerprint fpr. | |||||
This function requires at least version 2.1.22 of GnuPG. | |||||
@var{fpr} specifies the key to operate on. | |||||
@var{expire} specifies the expiration time in seconds from now. | |||||
To be similar to other usages where expire dates are provided | |||||
in unsigned long this is similar to the key creation date | |||||
and so it is in seconds from NOW. | |||||
The common case is to use 0 to not set an expiration date. | |||||
Note that this parameter takes an unsigned long value and not | |||||
a @code{time_t} to avoid problems on systems which use a signed | |||||
32 bit @code{time_t}. Note further that the OpenPGP protocol | |||||
uses 32 bit values for timestamps and thus can | |||||
only encode dates up to the year 2106. | |||||
@var{subfprs} This is an optional parameter to identify subkeys | |||||
for which the expiration should be set. This can be an asterix | |||||
to change the expiry date of all subkeys or a space seperated | |||||
list of fingerprints. If this parameter is ommited only the | |||||
expiry of the primary key, provided by @var{fpr} is changed. | |||||
@end deftypefun | |||||
@deftypefun gpgme_error_t gpgme_op_revuid_start @ | |||||
(@w{gpgme_ctx_t @var{ctx}}, @ | |||||
@w{gpgme_key_t @var{key}}, @ | |||||
@w{const char *@var{userid}}, @ | |||||
@w{unsigned int @var{flags}}); | |||||
@since{1.14.1} | |||||
The function @code{gpgme_op_set_expire_start} initiates a | |||||
@code{gpgme_op_set_expire} operation; see there for details. It must | |||||
be completed by calling @code{gpgme_wait} on the context. | |||||
@xref{Waiting For Completion}. | |||||
@end deftypefun | |||||
@node Generating Keys | @node Generating Keys | ||||
@subsection Generating Keys | @subsection Generating Keys | ||||
Context not available. |