Invalid ref coiunt for an openssl engine

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

 



I'm trying to create a dynamic openssl engine, activate it from a client's code and then de-activate to do some important cleanup through the engine's "finish" function, when it's not needed anymore.
I use ENGINE_finish(e) call from a client's side to do that, but that function will call engine's "finish" only if ref count to the engine's object is equal to 1. In my case the ref count is 3 and I don't understand why it's happening since the mentioned client was the only one who has used the engine.
I've stripped out the client's and engine's code and put it here: http://stackoverflow.com/questions/34079310/why-ref-count-for-an-openssl-engine-is-so-high
As a work around I use the code below on the client's side:
   while (e->funct_ref) {
    ENGINE_finish(e);
}

I got a feeling that this code could be unsafe and want to understand what the right way of fixing the problem is.
Thanks,Oleg




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20151204/6d2c4450/attachment.html>


[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