build-openssl-ios icon indicating copy to clipboard operation
build-openssl-ios copied to clipboard

What is the purpose of the patch-include.patch file?

Open skuskusku opened this issue 7 years ago • 1 comments

Hello Sinofool,

can you please elaborate what the purpose of the patch-include.patch file is? It is used to patch opensslconf.h and removes the following lines from it:

`# define NO_SSL_TRACE

endif

if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)

define NO_STORE

endif

if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)

define NO_UNIT_TEST

` What strikes me is that this is done after the build has completed. Can you please explain what the reason is for removing these preprocessor statements from the header file?

TIA,

-- Stefan

skuskusku avatar Feb 08 '19 19:02 skuskusku

Sorry, I garbled the formatting, code removed from the header file should look like this:

#  define NO_SSL_TRACE
# endif
# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
#  define NO_STORE
# endif
# if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
#  define NO_UNIT_TEST

Thanks,

-- Stefan

skuskusku avatar Feb 08 '19 19:02 skuskusku