A local copy of OpenSSL from GitHub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.2 KiB

  1. MODIFYING OPENSSL SOURCE
  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
  7. [Configurations/unix-Makefile.tmpl](Configurations/unix-Makefile.tmpl)
  8. to pick up that file.
  9. After that perform the following steps:
  10. ./Configure -Werror --strict-warnings [your-options]
  11. make update
  12. make
  13. make test
  14. `make update` ensures that your functions declarations are added to
  15. `util/libcrypto.num` or `util/libssl.num`.
  16. If you plan to submit the changes you made to OpenSSL
  17. (see [CONTRIBUTING.md](CONTRIBUTING.md)), it's worth running:
  18. make doc-nits
  19. after running `make update` to ensure that documentation has correct format.
  20. `make update` also generates files related to OIDs (in the `crypto/objects/`
  21. folder) and errors.
  22. If a merge error occurs in one of these generated files then the
  23. generated files need to be removed and regenerated using `make update`.
  24. To aid in this process the generated files can be committed separately
  25. so they can be removed easily.