diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2019-07-08 12:09:13 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-07-08 12:09:13 +0200 |
commit | b97a28b19d606d6782622a14ae06831b231c94a4 (patch) | |
tree | f536664254f88a14255a36d713850a0e73d4ca5c | |
parent | iOS build: Replace %20 with space in config script (diff) | |
download | openssl-b97a28b19d606d6782622a14ae06831b231c94a4.tar.xz openssl-b97a28b19d606d6782622a14ae06831b231c94a4.zip |
A very brief explanation of how to add custom functions to OpenSSL.
Inspired by Rich Salz's letter to openssl-users@
[edited to remove non-ASCII characters and end of line white space]
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9267)
-rw-r--r-- | HACKING | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/HACKING b/HACKING new file mode 100644 index 0000000000..a9e39d0258 --- /dev/null +++ b/HACKING @@ -0,0 +1,26 @@ + MODIFYING OPENSSL SOURCE + ------------------------ + This document describes the way to add custom modifications to OpenSSL sources. + + If you are adding new public functions to the custom library build, you need to + either add a prototype in one of the existing OpenSSL header files; + or provide a new header file and edit Configurations/unix-Makefile.tmpl to pick up that file. + + After that perform the following steps: + + ./config -Werror --strict-warnings [your-options] + make update + make + make test + + "make update" ensures that your functions declarations are added to util/libcrypto.num or util/libssl.num + If you plan to submit the changes you made to OpenSSL (see CONTRIBUTING), it's worth running: + + make doc-nits + + after running "make update" to ensure that documentation has correct format. + + "make update" also generates files related to OIDs (in the crypto/objects/ folder) and errors. + If a merge error occurs in one of these generated files then the generated files need to be removed + and regenerated using "make update". + To aid in this process the generated files can be committed separately so they can be removed easily. |