opencryptoki / openssl-ibmca

OpenSSL engine and provider for libica.
Apache License 2.0
7 stars 15 forks source link

Fix engine initialization to set funtion pointers only once. #8

Closed pvital closed 7 years ago

pvital commented 7 years ago

The engine initialization, ibmca_init() function, can be called more than once causing the code to jump to a exit label where all internal function pointers are set to NULL, which can cause a SIGSEGV.

This patch guarantees that the internal pointers will be set only once, by exiting the ibmca_init() if already executed.

This patch fixes Ubuntu's LP#1443455

Signed-off-by: Harald Freudenberger freude@linux.vnet.ibm.com Signed-off-by: Paulo Vital pvital@linux.vnet.ibm.com