summaryrefslogtreecommitdiff
path: root/tests/diff/patchid.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-04-07 13:02:50 +0200
committerPatrick Steinhardt <ps@pks.im>2017-04-10 11:29:07 +0200
commit88520151fd7b7f814ce2ffeb5bd484e48da4f6d9 (patch)
tree806a0f2968e9ba6d1700fa4827c8dd11db8764b7 /tests/diff/patchid.c
parent29081c2fd4c951b2c166f327b145dca5212c9fca (diff)
downloadlibgit2-88520151fd7b7f814ce2ffeb5bd484e48da4f6d9.tar.gz
openssl_stream: use new initialization function on OpenSSL version >=1.1
Previous to OpenSSL version 1.1, the user had to initialize at least the error strings as well as the SSL algorithms by himself. OpenSSL version 1.1 instead provides a new function `OPENSSL_init_ssl`, which handles initialization of all subsystems. As the new API call will by default load error strings and initialize the SSL algorithms, we can safely replace these calls when compiling against version 1.1 or later. This fixes a compiler error when compiling against OpenSSL version 1.1 which has been built without stubs for deprecated syntax.
Diffstat (limited to 'tests/diff/patchid.c')
0 files changed, 0 insertions, 0 deletions