]> git.ipfire.org Git - thirdparty/bind9.git/commit
Stop leaking OpenSSL types and defines in the isc/hmac.h
authorOndřej Surý <ondrej@isc.org>
Thu, 12 Mar 2020 08:45:58 +0000 (09:45 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 12 Mar 2020 21:22:03 +0000 (22:22 +0100)
commit70100c664a06bef484326c651b9fd29ec453a5fc
tree3585e8fe256111e83999b276a414b3d49323b9a4
parentb04eda7212849146b02e4d410a09416f5565aa5c
Stop leaking OpenSSL types and defines in the isc/hmac.h

The <isc/md.h> header directly included <openssl/hmac.h> header which
enforced all users of the libisc library to explicitly list the include
path to OpenSSL and link with -lcrypto.  By hiding the specific
implementation into the private namespace, we no longer enforce this.
In the long run, this might also allow us to switch cryptographic
library implementation without affecting the downstream users.
lib/isc/hmac.c
lib/isc/include/isc/hmac.h