CryptoContext.exportKeys

int exportKeys(string[] keys, gmime.stream.Stream ostream)

Exports the keys/certificates in keys to the stream ostream from the key/certificate database controlled by ctx.

If keys is null or contains only a null element, then all keys will be exported.

Parameters

keysan array of key ids, terminated by a null element
ostreamoutput stream

Returns

0 on success or %-1 on fail.

Throws

[ErrorWrap]