Re: On reference counting keydata returned from keymgmt_load()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Replying to self..

On Mon, Sep 13, 2021 at 10:08 PM Selva Nair <selva.nair@xxxxxxxxx> wrote:
Hi,

When an EVP_PKEY is created with some custom data, provider's keymgmt_load() gets called. I want to keep a reference count on the keydata returned from it. But there is no call to keymgmt_free() or anything similar when the EVP_PKEY is freed. How does one keep track of references to keydata? I have something like:

Please ignore the noise. OSSL_STORE_INFO_free(info) was missing and that was holding the key. Indeed keymgmt_load() is paired with keymgmt_free().

Should have checked twice before posting.

Selva

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux