GPGME Cannot allocate memory on gpgme_op_decrypt_start

Marco bna.marco at gmail.com
Fri Jun 25 15:26:24 CEST 2021


I've switched 1 to 0 for

>   err = gpgme_data_new_from_file(&in, input.string().c_str(), 1);

as suggested.
The error is:
Failed to set input file with error: 117440567 --> Invalid value




Il giorno ven 25 giu 2021 alle ore 15:15 Marco <bna.marco at gmail.com> ha
scritto:

> After reading the documentation I supposed it was not correct because
> says to be not implemented.
>
> I'll give a try immediately and I'll let you know (but I expect it will
> work!)
>
> Thank you!!!
>
> Il giorno ven 25 giu 2021 alle ore 15:05 Werner Koch <wk at gnupg.org> ha
> scritto:
>
>> On Fri, 25 Jun 2021 09:39, Marco said:
>>
>> >   err = gpgme_data_new_from_file(&in, input.string().c_str(), 1);
>>
>> The 1 means copy the data to an internal buffer.  Use 0 here to stream
>> the data.
>>
>>
>> Salam-Shalom,
>>
>>    Werner
>>
>> --
>> Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210625/a0cc657b/attachment.html>


More information about the Gnupg-users mailing list