get_autocrypt_gossip_headers


Description:

public AutocryptHeaderList? get_autocrypt_gossip_headers (DateTime now, DecryptFlags flags, string session_key) throws Error

Creates a new AutocryptHeaderList of relevant headers of the given type based on the recipient(s) of an e-mail message.

Returns the same object as g_mime_message_get_autocrypt_gossip_headers_with_inner_part , but handles decryption and cleanup automatically.

flags and session_key are passed through to decrypt, as needed.

If the message is not actually an encrypted message, returns null: it should be ignored for purposes of evaluating gossip.

If decryption fails, returns null. In this case, an exception will be set on err to provide information about the decryption failure.

Parameters:

this

a Message object, which is expected to be encrypted.

now

a DateTime object, or null

flags

a DecryptFlags, to be used during decryption

session_key

session key to use or null

Returns:

a new AutocryptHeaderList object, or null on error.