]> granicus.if.org Git - libevent/commitdiff
le-proxy: fix building under openssl 1.1 (init functions has been deprecated)
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 13 Nov 2016 23:17:38 +0000 (02:17 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 6 Dec 2016 22:14:16 +0000 (01:14 +0300)
Refs: #397

sample/le-proxy.c

index 30e0a5f6b9c6ebde9111bc5c000471ba4c3f08e5..4a5177f727c0d40e64a4be3265b9df3695a30777 100644 (file)
@@ -258,10 +258,12 @@ main(int argc, char **argv)
 
        if (use_ssl) {
                int r;
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
                SSL_library_init();
                ERR_load_crypto_strings();
                SSL_load_error_strings();
                OpenSSL_add_all_algorithms();
+#endif
                r = RAND_poll();
                if (r == 0) {
                        fprintf(stderr, "RAND_poll() failed.\n");