Erwann, I looked around and it seems that there is no simple way to check if a given key is private on the engine. It is possible for some engines but there is no way to do it for all of them. I checked in CVS the slightly modified patch you've sent last time. Hope this would not break too many applications :( Aleksey