-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Running the code on the native mac example app works perfectly.
Running the example app for iOS performs an EXC_BAD_ACCESS on both device and simulator.
Problem seems to be in the TISSLCertificateMaker::_extractAndSaveDataType:aType...
RSA_print_fp(filePointer,_privateKey->pkey.rsa,0);
The method first creates an NSPipe object, then calls the RSA_print_fp() method to write the private key to the pipe, then reads the data from the pipe. I am not an expert in openssl (I find the lack of documentation creates a high barrier to entry) and have reached the end of my ability to debug any further.
One thing I have seen online is that the buffer for the NSPipe might be getting filled. In which case the call to RSA_print_fp must be called on a background thread, and its output consumed continuously until EOF. However I am not able to get this working as yet.
Thank you.