]> git.pld-linux.org Git - packages/w3c-libwww.git/blame - openssl.patch
add static_libs bcond
[packages/w3c-libwww.git] / openssl.patch
CommitLineData
7eac908d
AM
1--- w3c-libwww-5.4.2/configure.ac~ 2018-09-19 09:56:26.000000000 +0200
2+++ w3c-libwww-5.4.2/configure.ac 2018-09-19 09:57:49.538058686 +0200
3@@ -748,7 +748,7 @@ AC_ARG_WITH(ssl,
4 SSLINC=$sslinc
5 fi
6 LIBS="$LIBS $withval"
7- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ SSL_library_init(); ]])],[],[ AC_MSG_ERROR(Could not find the $withval libraries. You must first install openSSL.) ])
8+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ SSL_accept(); ]])],[],[ AC_MSG_ERROR(Could not find the $withval libraries. You must first install openSSL.) ])
9 AC_MSG_RESULT(yes)
10 WWWSSL="libwwwssl.la"
11 LWWWSSL="-lwwwssl"
12--- w3c-libwww-5.4.2/Library/src/SSL/HTSSL.c~ 2018-09-19 10:02:47.000000000 +0200
13+++ w3c-libwww-5.4.2/Library/src/SSL/HTSSL.c 2018-09-19 10:05:45.208749659 +0200
14@@ -214,6 +214,7 @@ PUBLIC BOOL HTSSL_init (void)
15
16 /* select the protocol method */
17 switch (ssl_prot_method) {
18+#if 0
19 #ifndef OPENSSL_NO_SSL2
20 case HTSSL_V2:
21 meth = SSLv2_client_method();
22@@ -222,6 +223,7 @@ PUBLIC BOOL HTSSL_init (void)
23 case HTSSL_V3:
24 meth = SSLv3_client_method();
25 break;
26+#endif
27 case HTSSL_V23:
28 meth = SSLv23_client_method();
29 break;
30--- w3c-libwww-5.4.2/Library/src/SSL/HTSSL.c~ 2018-09-19 10:06:14.000000000 +0200
31+++ w3c-libwww-5.4.2/Library/src/SSL/HTSSL.c 2018-09-19 10:08:36.147130194 +0200
32@@ -115,7 +115,7 @@ PRIVATE int verify_callback (int ok, X50
33 verify_error=X509_V_ERR_CERT_CHAIN_TOO_LONG;
34 }
35 }
36- switch (ctx->error) {
37+ switch (X509_STORE_CTX_get_error(ctx)) {
38
39 case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
40 X509_NAME_oneline(X509_get_issuer_name(ctx->current_cert), buf, 256);
41--- w3c-libwww-5.4.2/Library/src/SSL/HTSSL.c~ 2018-09-19 10:08:46.000000000 +0200
42+++ w3c-libwww-5.4.2/Library/src/SSL/HTSSL.c 2018-09-19 10:10:52.584492036 +0200
43@@ -118,7 +118,7 @@ PRIVATE int verify_callback (int ok, X50
44 switch (X509_STORE_CTX_get_error(ctx)) {
45
46 case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
47- X509_NAME_oneline(X509_get_issuer_name(ctx->current_cert), buf, 256);
48+ X509_NAME_oneline(X509_get_issuer_name(X509_STORE_CTX_get_current_cert(ctx)), buf, 256);
49 HTTRACE(PROT_TRACE, "issuer= %s\n" _ buf);
50 break;
51
This page took 0.026582 seconds and 4 git commands to generate.