GPGME Cannot allocate memory on gpgme_op_decrypt_start

Marco bna.marco at gmail.com
Fri Jun 25 16:21:42 CEST 2021


I've found a  workaround using gpgme_data_cbs implementing my own read and
write functions.

If any other way is available or you have any suggestions please let me
know!

Thanks,
Marco

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

> 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/be88eab1/attachment.html>


More information about the Gnupg-users mailing list