get_public_key_sync


Description:

[ Version ( since = "3.50" ) ]
public bool get_public_key_sync (string keyid, uint32 flags, out uint8 out_data, out size_t out_data_size, Cancellable? cancellable = null) throws Error

Returns a public key with keyid.

The keyid can be either key ID or an email address.

The flags argument is currently unused and should be set to 0.

The out_data content should be freed with g_free, when no longer needed.

Parameters:

this

a GpgContext

keyid

a key ID or an email address

flags

flags for the operation

out_data

return location for the public key data, in binary form

out_data_size

return location to store the out_data size to

cancellable

optional Cancellable object, or null

Returns:

whether succeeded