2. ------------------------
  3. This document describes the way to add custom modifications to OpenSSL sources.
  4. If you are adding new public functions to the custom library build, you need to
  5. either add a prototype in one of the existing OpenSSL header files;
  6. or provide a new header file and edit Configurations/unix-Makefile.tmpl to pick up that file.
  7. After that perform the following steps:
  8. ./config -Werror --strict-warnings [your-options]
  9. make update
  10. make
  11. make test
  12. "make update" ensures that your functions declarations are added to util/libcrypto.num or util/libssl.num
  13. If you plan to submit the changes you made to OpenSSL (see CONTRIBUTING), it's worth running:
  14. make doc-nits
  15. after running "make update" to ensure that documentation has correct format.
  16. "make update" also generates files related to OIDs (in the crypto/objects/ folder) and errors.
  17. If a merge error occurs in one of these generated files then the generated files need to be removed
  18. and regenerated using "make update".
  19. To aid in this process the generated files can be committed separately so they can be removed easily.